From owner-freebsd-ports@freebsd.org Thu Dec 14 15:58:02 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 A7130E84DB3 for ; Thu, 14 Dec 2017 15:58:02 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (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 6C67569C2A; Thu, 14 Dec 2017 15:58:02 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x22a.google.com with SMTP id x28so12541717ita.0; Thu, 14 Dec 2017 07:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Wx2AC7GVsEvQ4R9Ut66Cm7Qba7sqkB2yKiejVmeQFYk=; b=Y+g6oJR/OQymqKNfDAFsIyFG5be35JVh5EjmtDo/qSvuutmnBy1yaYqdD63UpfYKNN Tq+pgNgDAAXWgvJZkivojgQjtAC2dL0tdWA9kXYBVF51YHxcZGjQobIh3egaWe/aYDDp mkXA2pfGnh4+nO6fx6NUsSdkGTjt+seTPDWLQrKH7o2yWBPqKclYDq68wSRaHD8F6NZP reknuEkkk71H+NGB+/lOyGnClfXeAHQOoh9qE5S47yB0gjLGZ2np4108wjLBj50gMuqN Zz+HS4XPRBgKcgg42djm4kzi/8z7LmoYxp8hp1NK2uJb67MPLYzYOJmUyIywMqw/hQdW 5D8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wx2AC7GVsEvQ4R9Ut66Cm7Qba7sqkB2yKiejVmeQFYk=; b=b4yMqBjcTA25gIXfT0wWCkWW6UwBZdmVOlNB7Pi3XbQvDJlY7RsTZbVt9m4lPTS45E DSEMmECfyG6bki0j2KEV475p5FipQ15vnyqAKU8LxHzsmWzbMnGSvUo1yQoOFYtUlyCh uUwe8zQu7BrJnSG5zDRKxHEsaRLHAl/bushBFTm9qqmQlv36xpvEoJqOlf2lZ/a3XOk4 opurOHaPopuFlPVNui4F8VIr1Nemxdbg/oqqkkZaHCUHfCGm0NOUqe1mv1t+lzWvapjA iTb5+4CgO5+vjOTHEThS2s2mZk8ZvVzPeCgZ5qytsXPyKMOol2jlzEhU6DSwca2iUPy9 Nldw== X-Gm-Message-State: AKGB3mJjtZnLlqkxsEKbLOPUGvFpxsR3EPEJ7Ugv4I1ieXpiwuaTRzOH GtQOjocVIvof1sy94mAAcxjt3oaKL1pPgkrYENx7Ng== X-Google-Smtp-Source: ACJfBouO3mgCUE3XCZF3g/4fPqFdnTd2/jP3ApCisxM5ZqgLvDw89wX//g99y7qh8c7G5HeWMLk52vW+RecZIAszL/g= X-Received: by 10.107.24.198 with SMTP id 189mr7736320ioy.213.1513267081429; Thu, 14 Dec 2017 07:58:01 -0800 (PST) MIME-Version: 1.0 References: <73820d5ad4436c73fe47d0b35a112cf5@udns.ultimatedns.net> <2ca3551a-db23-1c17-2035-c67494f8f542@FreeBSD.org> In-Reply-To: From: blubee blubeeme Date: Thu, 14 Dec 2017 15:57:50 +0000 Message-ID: Subject: Re: Linux ports tutorial? WPS Office To: Pedro Giffuni Cc: FreeBSD Ports 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 15:58:02 -0000 On Thu, Dec 14, 2017, 22:15 Pedro Giffuni wrote: > > > On 12/13/17 22:31, blubee blubeeme wrote: > > > > 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" >>> said >>> >>> 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 >>>> in the >>>> > handbook. >>>> >> >>>> >> In particular, how do you handle when the pkg-plist is different fo= r >>>> 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 f= iles >>>> > 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 Cen= tos >> 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. > > > Well ... of course if I had the source code I would not be dealing RPMs > for the linuxulator. > > Software can be free but not include source code. It can still be > desirable for 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. > > > Which is why we have a linuxulator. > > > Pedro. > What's in these tar.gz files here: http://wps-community.org/downloads >