From owner-freebsd-ports@freebsd.org Mon Dec 19 07:47:03 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 ABDE3C873F0 for ; Mon, 19 Dec 2016 07:47:03 +0000 (UTC) (envelope-from demelier.david@gmail.com) 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 8D1C687E for ; Mon, 19 Dec 2016 07:47:03 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 897C6C873EF; Mon, 19 Dec 2016 07:47:03 +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 8926DC873EE for ; Mon, 19 Dec 2016 07:47:03 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) (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 45A2987C for ; Mon, 19 Dec 2016 07:47:03 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: by mail-vk0-x230.google.com with SMTP id 137so116453694vkl.0 for ; Sun, 18 Dec 2016 23:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=x+BsxXKOFDhPGoBQXVGBA4ulku0HQRhroAXUa/rjrSI=; b=Zv3L9R7iBmc0WU5NCaQcCNv1Qi00WX11VU2SRJP5xr2MDupVxSs2y9c82CvTuLYTUe wZmQgp7YTfjqK4ADQ2IWTcPL+4ON97NHH0j0ucWJSMxHicvgfZ+tgdNJJcRmbl09d0CE sFUEIrVQQLVOQ3rQAWU73WcTY6HUV1+KzGp+CO7vi7o2zhDIFztJA6BpIFH4UZFXCVMP 2H5CURhcFngq9FUnvVWaqyd3owis/Lwea31W588WEKQ1xco2nmsEW9iLRctHf9+doEtQ m3OMaK6+Fth5XgrRva9sblNZRRV2KQDaRFcxsffxWYwn99FB4rsxrbyrJ3jB58AK+R91 lGJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=x+BsxXKOFDhPGoBQXVGBA4ulku0HQRhroAXUa/rjrSI=; b=A0ovQaWBqcQYiBwFVJ7V7rhB9LTafQ+2o1eVKEwPqOcLFHkT07sO94qOP9jG1C6HsF 5aR001E20LqWedIAZZcZTyZ5DxsHkVN4RfziR1SzcUau5BqxC3YwBj9G8cyQas1OeqPW hXivfTT2Th4OuAay8UUm31oUtbyhPyfPMqjMFIGMeg54U/AA/TSqrtlJJ9cY+Fk6klAe zjw7r3qnWFU0HYmgqGARa02SPcnxSmnYNxwS1WNlnRyLNbsJ9JOJWXLF3aYeZfvlnEu1 paVO6tMJWJqQ0d0MhFZ5NfvEq8v8XPyN3+Tr+Tql1Fo9dNzlg1T6ZL5NG3a9IHNa3kUF tXuw== X-Gm-Message-State: AIkVDXIE2m+N5/jZ5E2GZ3U2WwJXaHAxh/FQZsZeyslmHcrYKtACVSpLoiyQZHNpItOpofzZfkiWPNVULHLr9g== X-Received: by 10.31.84.135 with SMTP id i129mr4716853vkb.23.1482133622321; Sun, 18 Dec 2016 23:47:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.47.83 with HTTP; Sun, 18 Dec 2016 23:47:01 -0800 (PST) In-Reply-To: <20161219003143.c2qo5wn3a5kiua3m@ivaldir.etoilebsd.net> References: <20161219003143.c2qo5wn3a5kiua3m@ivaldir.etoilebsd.net> From: David Demelier Date: Mon, 19 Dec 2016 08:47:01 +0100 Message-ID: Subject: Re: HEADSUP: FLAVORS (initial version) and subpackages proposals To: ports@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Mon, 19 Dec 2016 07:47:03 -0000 2016-12-19 1:31 GMT+01:00 Baptiste Daroussin : > Hi all, > > I have been working for a while on 2 long standing feature request for the ports > tree: flavors and subpackages. > > For flavors I would like to propose a simple approach first which is more like a > rework of the slave ports for now: > > Examples available here: > https://reviews.freebsd.org/D8840 (with the implementation) > and > https://reviews.freebsd.org/D8843 > > Design: introduce a 3rd level in the hierarchy and make it work a bit like slave > ports > > pros: > - all slave ports are self hosted under the same directory: easier for > maintenance > - should work with all existing tools > This is what I really wanted for years especially for ports like spell checker. Some are in dedicated categories such as french/aspell while other are in textproc/-aspell and that's a big mess. OpenBSD ports has something like textproc/aspell/ and that is very nice and clean. If the plan is to do the same, that is definitely a major improvement. > cons: > - hackish: it is not really much more than a slave port > - it adds plenty of new Makefiles :( > > I think anyway this is an improvement > > Next step after that is in would be to extend it to allow some dependency on "I > depend on whatever flavor if port X" > > Subpackages: > Design: > Add a new macro MULTI_PACKAGES > flag plist with an @pkg{suffixofthesubpackage} file > the framework will split the plist into small plist and create all the packages > All variables like COMMENT can be overridden with a COMMENT_${suffixofthesubpackage} > > pros: > - simple and working almost now > - allow to simplify lots of ports > - options friendly (_PACKAGE automatically appends a new entry to > MULTI_PACKAGES) > Also lovely as it will probably remove some packages that duplicate a lot the ports tree (-nox11 for example). If I understood correctly that one. > Any comment? Yes, make it real :) And again, thanks for your amazing and regular good work bapt! -- Demelier David