From owner-freebsd-ports@freebsd.org Sat Apr 1 17:00:27 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 B640CD29532 for ; Sat, 1 Apr 2017 17:00:27 +0000 (UTC) (envelope-from kami@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A1FB9DBD for ; Sat, 1 Apr 2017 17:00:27 +0000 (UTC) (envelope-from kami@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9C95BD2952F; Sat, 1 Apr 2017 17:00:27 +0000 (UTC) Delivered-To: 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 9C396D2952E for ; Sat, 1 Apr 2017 17:00:27 +0000 (UTC) (envelope-from kami@freebsd.org) Received: from bsdforen.de (bsdforen.de [82.193.243.115]) by mx1.freebsd.org (Postfix) with ESMTP id 64DBDDB8 for ; Sat, 1 Apr 2017 17:00:27 +0000 (UTC) (envelope-from kami@freebsd.org) Received: from localhost (HSI-KBW-046-005-002-034.hsi8.kabel-badenwuerttemberg.de [46.5.2.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by bsdforen.de (Postfix) with ESMTPSA id 4BAA68D868; Sat, 1 Apr 2017 19:00:20 +0200 (CEST) Date: Sat, 1 Apr 2017 19:00:18 +0200 From: Dominic Fandrey To: Ben Woods Cc: FreeBSD Ports Mailing List Subject: Re: [CFT] pkg-plist generator Message-Id: <20170401190018.f5056b8876925acc5320ac98@freebsd.org> In-Reply-To: References: <20170325181408.8feb700e5ed82aa47546e3c7@bsdforen.de> Organization: FreeBSD X-Mailer: Sylpheed 3.5.1 Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA512"; boundary="Signature=_Sat__1_Apr_2017_19_00_19_+0200_0puemMcs66CYxfhG" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2017 17:00:27 -0000 --Signature=_Sat__1_Apr_2017_19_00_19_+0200_0puemMcs66CYxfhG Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 27 Mar 2017 20:33:46 +0800 Ben Woods wrote: > On 26 March 2017 at 01:14, Dominic Fandrey wrote: >=20 > > Since February I have been working on a pkg-plist generator that > > understands and handles options. I believe it is now ready for public > > testing as a part of my bsda2 script collection: > > >=20 > I had a similar idea for adding this functionality to the poudriere > testport command, which I mentioned here: > https://github.com/freebsd/poudriere/issues/303 This is actually a big deal, because you have to obey a lot of rules like OPTIONS_SINGLE, OPTIONS_MULTI ${opt}_IMPLIES, ${opt}_PREVENTS etc. The script itself is about 1.3 kLOC long, if you count the shared code it goes up to 3.6 kLOC. lines words chars 1299 4827 34535 src/makeplist.sh 1206 4378 29901 src/bsda_obj.sh 473 1517 10010 src/bsda_container.sh 154 600 3969 src/pkg_info.sh 312 1088 6984 src/bsda_opts.sh 85 265 1442 src/bsda_util.sh 82 313 1889 src/bsda_bsdmake.sh 3611 12988 88730 total It's not huge, but it's not exactly small either. > I never got around to implementing anything though... it staid just an > idea. Looking forward to trying yours. I'm looking forward to your feedback! --=20 A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?=20 --Signature=_Sat__1_Apr_2017_19_00_19_+0200_0puemMcs66CYxfhG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEEfYhGEP+7uobxe8A3b/BdaakqWdsFAljf3KNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDdE ODg0NjEwRkZCQkJBODZGMTdCQzAzNzZGRjA1RDY5QTkyQTU5REIACgkQb/Bdaakq Wdt/Tgf9Hy1ShkNi4icNpJEOLXjFhgeFywC0vucq3JwICLH7v3gjYg9lx3w6PhoR BXKYPNiEVJsyuh5hQwibmbwkv/9K2E938/eXucSt58J4s2vaLiAtwlrncU2DBllC CCZWTgXD8aUZbOBKyb/nWRJZ9SsWxepK0KeeVJkYSJYV9YyqTpHX//YIbcCFuB0g 20i6wLpDs8ksxKehMpv31twDeqSoRWLSS9b8FCIwKoWtz5yTnxrZM4eh7P6DPMfu rx7BTpX7hb1KOK2frnvvejM5TufbVuLudJedJPwWqE5bR4AFvGuVbEeSsoTHBHyW F+2GU+w7XhnTqxSB985CJVsImeUa8A== =OzZF -----END PGP SIGNATURE----- --Signature=_Sat__1_Apr_2017_19_00_19_+0200_0puemMcs66CYxfhG--