From owner-freebsd-ports@freebsd.org Tue Dec 20 08:42:58 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 2706BC86FE1 for ; Tue, 20 Dec 2016 08:42:58 +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 1396C106B for ; Tue, 20 Dec 2016 08:42:58 +0000 (UTC) (envelope-from franco@lastsummer.de) Received: by mailman.ysv.freebsd.org (Postfix) id 0FF23C86FE0; Tue, 20 Dec 2016 08:42:58 +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 0F9A5C86FDF for ; Tue, 20 Dec 2016 08:42:58 +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 CE929106A; Tue, 20 Dec 2016 08:42:57 +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 64C9B827E2; Tue, 20 Dec 2016 09:42:56 +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: <8BED9138-6754-455B-9829-4B9476B795ED@lastsummer.de> Date: Tue, 20 Dec 2016 09:42:55 +0100 Cc: ports@FreeBSD.org Content-Transfer-Encoding: quoted-printable Message-Id: <7B257BA4-DE6C-4726-8CD7-6BC99D856E08@lastsummer.de> References: <20161219003143.c2qo5wn3a5kiua3m@ivaldir.etoilebsd.net> <8BED9138-6754-455B-9829-4B9476B795ED@lastsummer.de> 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:42:58 -0000 > On 20 Dec 2016, at 9:27 AM, Franco Fichtner = wrote: >=20 > We shouldn't use "-" or "/" anyway, should we? Please no fancy things > like "~" or so. No arbitrary package names... To emphasise on this: A flavour should act as a full replacement of its unflavoured package, = that means the package name must be kept. Only one flavour (or unflavoured) package can be installed at all times. As an example: A weird package "foo" requires "vim", but the user doesn't want to deal = with X11, the user should be able to: # pkg install vim:lite foo This should not try to change "vim:lite" to "vim". # pkg install vim This should be perfectly fine afterwards, too. Every "vim" should act as "vim", not revoking the integrity of the = package dependency on vim during e.g. pkg upgrade. No forced install should be needed to do this as long as the shared libraries and dependencies are = still satisfied. And maybe the moral of the story is that flavours should not be depended on by default, although it could be a possibility for = special cases. This is something that is really really needed. An very good example = would be Suricata package with Hyperscan right now, where Hyperscan does not = work on all amd64 architectures, so we need to have a replacement package. = But if that replacement package without Hyperscan needs to be a separate = port, any package depending on Suricata (e.g. a distribution or GUI package) = will complain about the missing dependency and try to undo a = Suricata-No-Hyperscan package[1] as it conflicts and changes back to the defunct package on = upgrade. Cheers, Franco [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210490=