From owner-freebsd-ports@freebsd.org Thu Dec 14 03:31:20 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AA2AFE91A08 for ; Thu, 14 Dec 2017 03:31:20 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x233.google.com (mail-it0-x233.google.com [IPv6:2607:f8b0:4001:c0b::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 67FF47029F; Thu, 14 Dec 2017 03:31:20 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x233.google.com with SMTP id f190so7760802ita.5; Wed, 13 Dec 2017 19:31:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=f+wwvBvIQQg5iOyRGvT+TmI/UX8lA4Yua0oJfhn/QFA=; b=t3iks41/8lZNAiNJvCsFqVIz7mM3o5wIIEw7TbBo+IJXbFvBt/iV+Vrm3ljDMqTScJ q0uKW7/Mhl14iP7MSgLNNquTzmVsocK7zFP60g8dtr3Iwf+q/2Bj9UjPr/CD4K6O30zA gJQV0V6I/QHkpGIlBjZFjqJBB3z6MxphuOx3CHOST9H3kgPYbh87ilyjlzv3YW2KMMgE mz/B+JXjTlqpy0HEA+bEz705RyB/KEgm8LJjRtXQACaH/5HohJScH5zboMSOB4kEEBQv bHN3EogOejBiAdccWVIwXBx7ecqk6yNUJZ9Bvp8hIwtj7Amj1OVfqIeIpL2bUG14/D7N N7vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=f+wwvBvIQQg5iOyRGvT+TmI/UX8lA4Yua0oJfhn/QFA=; b=RFIiCOD81pE7YKfq8po6Nyt1mxziZBgp2Bazc9qsrpHBeYbDaPYYQqd7S8tJPhkMUo 4AbQ1cXjOGEeK802tVu49yVjjkZY74yjPabRKrFOXpGXQVaGPa0BHBnMvnSRdbK0dcpr 0oYPnjCaVUxaKu994On/kYuE6fnSqaM7i8YkbZpljQ4Fbbd4uRO0KPMvNWtFL87SAWtz EOJ+0W3MmnPOnm9okoHyaZyfzyRx9T89XgQQZB+CzvDP0QdaEOoUYnLiayd6AnEvMNAG an36dvpxghqszesjcC94TVbQ0WwF5zizecPucB1GLYFmDkK2yapQYX50OeaOhcvCNNdQ sGDQ== X-Gm-Message-State: AKGB3mKFvQCWnku5tVgwievclGo7WdYs65cPUllFYNyJzpzKyV5luE5g WUpepE5AHxU84nK06OHRlVvHOb+8QABA5Iw28Gf3eg== X-Google-Smtp-Source: ACJfBot3aaPgNShJpQixMfvkYG/N8/mBvnta1PCIQsXXeU7HqIFdNWyv4AFAw26AB4Hx4oh6JZjrsiRqmnCE6fenoA0= X-Received: by 10.107.52.140 with SMTP id b134mr2608630ioa.291.1513222279436; Wed, 13 Dec 2017 19:31:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.11.31 with HTTP; Wed, 13 Dec 2017 19:31:18 -0800 (PST) In-Reply-To: <2ca3551a-db23-1c17-2035-c67494f8f542@FreeBSD.org> References: <73820d5ad4436c73fe47d0b35a112cf5@udns.ultimatedns.net> <2ca3551a-db23-1c17-2035-c67494f8f542@FreeBSD.org> From: blubee blubeeme Date: Thu, 14 Dec 2017 11:31:18 +0800 Message-ID: Subject: Re: Linux ports tutorial? WPS Office To: Pedro Giffuni Cc: Chris H , FreeBSD Ports , Eugene Grosbein Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2017 03:31:20 -0000 On Thu, Dec 14, 2017 at 11:17 AM, Pedro Giffuni wrote: > Hello; > > > On 13/12/2017 21:11, Chris H wrote: > >> On Wed, 13 Dec 2017 19:56:24 -0500 "Pedro Giffuni" sai= d >> >> On 12/10/17 14:55, Eugene Grosbein wrote: >>> > 11.12.2017 2:22, Pedro Giffuni =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>> >> Hello guys; >>> >> >>> >> I would like to attempt a port for WPS Office (AKA Kingsoft Office): >>> >> >>> >> http://wps-community.org/ >>> >> >>> >> Are there guidelines for linux ports? I couldn't find much details i= n >>> the >>> > handbook. >>> >> >>> >> In particular, how do you handle when the pkg-plist is different for >>> i386 >>> > and amd64? >>> >> >>> >> Some ports use pkg-plist.${ARCH} but I don't know how those work. >>> > Just have "USES=3Dlinux", "USE_LINUX_RPM=3Dyes" and make these two fi= les >>> > pkg-plist.i386 and pkg-plist.amd64 >>> > and they are used automatically. Or you could duplicate a magic from >>> > /ports/Mk/Uses/linux.mk in your Makefile: >>> > >>> > PLIST?=3D ${PKGDIR}/pkg-plist.${LINUX_ARCH:S/x86_64/amd64/} >>> > >>> > For details, read Porter's Handbook: >>> > https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ >>> > >>> >>> The handbook has no information about "USE_LINUX_RPM=3Dyes". >>> If I set that it appears the ports framework will ignore MASTER_SITES. >>> >>> Should I dig into the MK framework to see how to change the repository >>> or should I use the .tar.xz distribution instead? :(. >>> >> I'm not sure. But would having a look at the way >> emulators/linux_base-c(6|7) >> provide some clues? >> >> > Not really but I think I found something in Mk/Uses/linux.mk: > > For the case of USE_LINUX_RPM it is supposed to not do anything when > MASTER_SITES is defined but it is somewhat messy, and somehow it always > uses ${MASTER_SITE_CENTOS_LINUX}. Any port that uses RPM but not the Cent= os > repositories? > > Just a thought, and hope it helps! >> >> Thanks, I just have to keep digging :(. > > Pedro. > > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > The linux packaging is okay but I'd recommend learning how the porting process and not just wrapping up a linux binary in FreeBSD. The main reason for that is you can port your way into a corner that relies on very Linux specific stuff that there's just no solution for yet nor will there be one unless you port the entire Linux kernel to FreeBSD. If you go look at the source files and read the building and or install docs they'll give you a list of dependencies. Once you have that list dependencies, see if they are available in FreeBSD, if they are GREAT a lot of work has already been done. If not, start trying to port those dependencies to FreeBSD, once you have the full list of dependencies needed, writing a FreeBSD makefile is relatively trivial process. That would be my recommended route. Best