From owner-freebsd-ports@freebsd.org Thu Dec 14 22:05:46 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 67451E9159E for ; Thu, 14 Dec 2017 22:05:46 +0000 (UTC) (envelope-from portmaster@BSDforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2EEF57B9E4; Thu, 14 Dec 2017 22:05:45 +0000 (UTC) (envelope-from portmaster@BSDforge.com) Received: from udns.ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id vBEM7BJH049719; Thu, 14 Dec 2017 14:07:18 -0800 (PST) (envelope-from portmaster@BSDforge.com) X-Mailer: UDNSMS MIME-Version: 1.0 Cc: "FreeBSD Ports" , "blubee blubeeme" In-Reply-To: From: "Chris H" Reply-To: portmaster@BSDforge.com To: "Pedro Giffuni" Subject: Re: Linux ports tutorial? WPS Office Date: Thu, 14 Dec 2017 14:07:17 -0800 Message-Id: <333d5b8d0ae7910702b50aa3bd975907@udns.ultimatedns.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable 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 22:05:46 -0000 On Thu, 14 Dec 2017 09:15:35 -0500 "Pedro Giffuni" said > On 12/13/17 22:31, blubee blubeeme wrote: >> On Thu, Dec 14, 2017 at 11:17 AM, Pedro Giffuni > > wrote: >>=20 >> Hello; >> On 13/12/2017 21:11, Chris H wrote: >> On Wed, 13 Dec 2017 19:56:24 -0500 "Pedro Giffuni" >> said >>=20 >> On 12/10/17 14:55, Eugene Grosbein wrote: >>> 11=2E12=2E2017 2:22, Pedro Giffuni =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>>> Hello guys; >>>>=20 >>>> I would like to attempt a port for WPS Office (AKA >> Kingsoft Office): >>>>=20 >>>> http://wps-community=2Eorg/ >>>>=20 >>>> Are there guidelines for linux ports? I couldn't find >> much details in the >>> handbook=2E >>>>=20 >>>> In particular, how do you handle when the pkg-plist is >> different for i386 >>> and amd64? >>>>=20 >>>> Some ports use pkg-plist=2E${ARCH} but I don't know how >> those work=2E >>> Just have "USES=3Dlinux", "USE_LINUX_RPM=3Dyes" and make >> these two files >>> pkg-plist=2Ei386 and pkg-plist=2Eamd64 >>> and they are used automatically=2E Or you could duplicate >> a magic from >>> /ports/Mk/Uses/linux=2Emk in your Makefile: >>>=20 >>> PLIST?=3D ${PKGDIR}/pkg-plist=2E${LINUX_ARCH:S/x86_64/amd64/} >>>=20 >>> For details, read Porter's Handbook: >>>=20 >> https://www=2Efreebsd=2Eorg/doc/en_US=2EISO8859-1/books/porters-handbook/ >> >>>=20 >>=20 >> The handbook has no information about "USE_LINUX_RPM=3Dyes"=2E >> If I set that it appears the ports framework will ignore >> MASTER_SITES=2E >>=20 >> Should I dig into the MK framework to see how to change >> the repository or should I use the =2Etar=2Exz distribution >> instead? :(=2E >>=20 >> I'm not sure=2E But would having a look at the way >> emulators/linux_base-c(6|7) >> provide some clues? >>=20 >>=20 >> Not really but I think I found something in Mk/Uses/linux=2Emk >> : >>=20 >> 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}=2E Any port that uses RPM >> but not the Centos repositories? >>=20 >> Just a thought, and hope it helps! >>=20 >> Thanks, I just have to keep digging :(=2E >>=20 >> Pedro=2E >>=20 >> The linux packaging is okay but I'd recommend learning how the porting= =20 >> process and not just wrapping up a linux binary in FreeBSD=2E >> >=20 > Well =2E=2E=2E of course if I had the source code I would not be dealing RPMs= =20 > for the linuxulator=2E >=20 > Software can be free but not include source code=2E It can still be=20 > desirable for FreeBSD=2E >=20 >> The main reason for that is you can port your way into a corner that=20 >> relies on very Linux specific stuff that there's just no solution for=20 >> yet nor will there be one unless you port the entire Linux kernel to=20 >> FreeBSD=2E >> >=20 >Which is why we have a linuxulator=2E OK Pedro, just so I know I understand your intentions correctly; You need a way to unpack all the =2Erpm's, and separate them by $arch -- 32bit -vs- 64bit, so that you can create the correct pkg-plist(s) for each of them=2E Is that correct? I'll await your response before a solution for that=2E --Chris >=20 >Pedro=2E