From owner-freebsd-ports@freebsd.org Tue Dec 20 08:27:50 2016 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 06411C86A5D for ; Tue, 20 Dec 2016 08:27:50 +0000 (UTC) (envelope-from franco@lastsummer.de) 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 E7B0518FB for ; Tue, 20 Dec 2016 08:27:49 +0000 (UTC) (envelope-from franco@lastsummer.de) Received: by mailman.ysv.freebsd.org (Postfix) id E4148C86A5C; Tue, 20 Dec 2016 08:27:49 +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 E3B90C86A5A for ; Tue, 20 Dec 2016 08:27:49 +0000 (UTC) (envelope-from franco@lastsummer.de) Received: from host64.shmhost.net (unknown [IPv6:2a01:4f8:a0:51d6::108:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 784C618FA; Tue, 20 Dec 2016 08:27:49 +0000 (UTC) (envelope-from franco@lastsummer.de) Received: from francos-mbp.homeoffice.local (ipservice-092-217-062-255.092.217.pools.vodafone-ip.de [92.217.62.255]) by host64.shmhost.net (Postfix) with ESMTPSA id 5052883205; Tue, 20 Dec 2016 09:27:46 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: HEADSUP: FLAVORS (initial version) and subpackages proposals From: Franco Fichtner In-Reply-To: <20161219003143.c2qo5wn3a5kiua3m@ivaldir.etoilebsd.net> Date: Tue, 20 Dec 2016 09:27:45 +0100 Cc: ports@FreeBSD.org Content-Transfer-Encoding: quoted-printable Message-Id: <8BED9138-6754-455B-9829-4B9476B795ED@lastsummer.de> References: <20161219003143.c2qo5wn3a5kiua3m@ivaldir.etoilebsd.net> To: Baptiste Daroussin X-Mailer: Apple Mail (2.3259) X-Virus-Scanned: clamav-milter 0.99.2 at host64.shmhost.net X-Virus-Status: Clean 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: Tue, 20 Dec 2016 08:27:50 -0000 Hi, > On 19 Dec 2016, at 1:31 AM, Baptiste Daroussin = wrote: >=20 > For flavors I would like to propose a simple approach first which is = more like a > rework of the slave ports for now: This progression sure is nice to see! I like = "category/portname/flavour" origin a lot, but how is it handled in terms of packages names? Are we going to see something like: # pkg install myport:flavour We shouldn't use "-" or "/" anyway, should we? Please no fancy things like "~" or so. No arbitrary package names... In OpenBSD, installing flavoured packages has been hard to script in the past, offering a prompt whenever the main package is going to be = installed. The thing to think about here is that # pkg install myport Should *only* install the default port, especially with -y option. # pkg install myport: This *could* prompt for flavours, then. The nice thing should be the user doesn't have to care about flavours if that is so. Flavours as you showed can be very simple. Why not go the extra mile here: FLAVOURS=3D sub1 sub2 OPTIONS_sub1=3D EXPLICIT LIST OF OPTIONS OPTIONS_sub2=3D ANOTHER LIST OF OPTIONS And keep everything as is. No need for sub-packages? No implied OPTIONS_DEFAULT, no nothing. A single line to grep and change. :) =46rom this perspective, nothing changes for users of the ports tree, = options are defined by the main port and all of its flavours are neatly stored = in the Makefile. People can still use all options during rebuild, even the ones only used in flavours. Cheers, Franco=