From owner-freebsd-ports@freebsd.org Tue Sep 26 14:11: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 7866EE0C998 for ; Tue, 26 Sep 2017 14:11:02 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1906A671A2 for ; Tue, 26 Sep 2017 14:11:02 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 3B2B9BDD39 for ; Tue, 26 Sep 2017 16:11:00 +0200 (CEST) Received: from ogg.in.absolight.net (ogg.in.absolight.net [79.143.241.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by prod2.absolight.net (Postfix) with ESMTPSA id 1FF99BDD38 for ; Tue, 26 Sep 2017 16:11:00 +0200 (CEST) Subject: Re: [HEADUP] FLAVORS landing. From: Mathieu Arnold To: freebsd-ports@freebsd.org Reply-To: ports-list freebsd References: Organization: Absolight / The FreeBSD Foundation Message-ID: <64b78d72-db31-7c4b-c7de-ba5a3ee6a196@FreeBSD.org> Date: Tue, 26 Sep 2017 16:10:59 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bPXOxACX62KEfhlQ0f2Q5LO256En4cHfB" 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, 26 Sep 2017 14:11:02 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bPXOxACX62KEfhlQ0f2Q5LO256En4cHfB Content-Type: multipart/mixed; boundary="BvPUJUmqr5Sqij5Ua3psub1dP0rImGd7P"; protected-headers="v1" From: Mathieu Arnold Reply-To: ports-list freebsd To: freebsd-ports@freebsd.org Message-ID: <64b78d72-db31-7c4b-c7de-ba5a3ee6a196@FreeBSD.org> Subject: Re: [HEADUP] FLAVORS landing. References: In-Reply-To: --BvPUJUmqr5Sqij5Ua3psub1dP0rImGd7P Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: fr Le 26/09/2017 =C3=A0 16:05, Mathieu Arnold a =C3=A9crit=C2=A0: > Hi, > > **Do not commit FLAVORS to any ports, a hook will prevent it, that bein= g > said, do try it and test what can be done.** > > To test this feature in poudriere, you need > poudriere-devel-3.1.99.20170621 or later. > > This has been a long awaiting feature, most of the work has been done b= y > bapt, bdrewery and antoine, I am just the one actually doing the > announce and commit and all. > > All this information, and more to come are in the first link to our wik= i > in the bottom block. A roadmap is in the second link. Of course, I forgot those two links. https://wiki.freebsd.org/Ports/FlavorsMigration https://wiki.freebsd.org/Ports/FlavorsAndSubPackages > To define a different flavors in a port, before any include, set: > > FLAVORS=3D=C2=A0 flavor1 flavor2 [...] > > The first flavor in the list will be the default. > > You can then check for flavors after includ'ing bsd.port.options.mk wit= h: > > .if ${FLAVOR} =3D=3D flavor2 > [change some stuff] > .endif > > To build flavor2, simply run: > > make FLAVOR=3Dflavor2 > > To depend on a specific flavor, write @ at the end of the depen= d > string, for example, to depend on flavor "foo": > > RUN_DEPENDS=3D=C2=A0=C2=A0=C2=A0 something:origin@foo > --=20 Mathieu Arnold --BvPUJUmqr5Sqij5Ua3psub1dP0rImGd7P-- --bPXOxACX62KEfhlQ0f2Q5LO256En4cHfB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJZyl/zXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85I4fkP/Ath19rKvsXnU0nZzGyaGton D9ToImeSjhbC/9kAGsYNQ6yTjiGvgxeq3n2mRRGvs97AKGyiYa4Ql7gPmdeHsl6T xOyVyroWNMDiou9Y0Yc1QFqfAf68llRLSg41P9ZHwTptLbOumHqlAwwcrAj49QZ9 7ejxDwE7bUoBsokNC7R7CEEgoRWi5ntviBr8nc9rjtIqsZRJkLWZ7UMk5+7cGVk5 41VblgfwQHKFpDrLCW/3G88cw5kiLbE3pbnql801TEZSLhox6bcu9QWKVt8pLh23 EfwkXQbr4Bu978848zcrEFOTjaKX9o74qMiR1pzBLb/dobgoT5lIMR2exnQBeQrF fBZ5iyfks3EPGW+/siYwImwJ4SDapoQyWu4qe6XJKaCAWSehw/YP3nDudXCrs7yP dcxU+iATrO9LN2iC8mASPICC6NZhQVQCXZHMXm68tF1NFpROVhQUrlWCo8wY2o3i MVza0TLyfd30qttuHbKaBL2brCEI9Nq1QjJgLID6f5WHSWOKUvAu4EsyRqd7MIeN TTTtEgUc+TRz2RF/Odk7lFKehCemytsYMMjGn30fMCf2NqN8Hf6Z9TaFYXytt062 05I3zjw23tIQmSS2MkAm8QrrRI54YGn5uYZFpVA94S4C0t+2MibUJB+EhK9riQiL BvGm0aBxJN/NQdtt1XMG =fG7x -----END PGP SIGNATURE----- --bPXOxACX62KEfhlQ0f2Q5LO256En4cHfB--