Date: Tue, 26 Sep 2017 16:10:59 +0200 From: Mathieu Arnold <mat@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: [HEADUP] FLAVORS landing. Message-ID: <64b78d72-db31-7c4b-c7de-ba5a3ee6a196@FreeBSD.org> In-Reply-To: <dcc6fa75-8325-01e9-4a86-e3bc61bb27a2@FreeBSD.org> References: <dcc6fa75-8325-01e9-4a86-e3bc61bb27a2@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bPXOxACX62KEfhlQ0f2Q5LO256En4cHfB Content-Type: multipart/mixed; boundary="BvPUJUmqr5Sqij5Ua3psub1dP0rImGd7P"; protected-headers="v1" From: Mathieu Arnold <mat@FreeBSD.org> Reply-To: ports-list freebsd <freebsd-ports@freebsd.org> To: freebsd-ports@freebsd.org Message-ID: <64b78d72-db31-7c4b-c7de-ba5a3ee6a196@FreeBSD.org> Subject: Re: [HEADUP] FLAVORS landing. References: <dcc6fa75-8325-01e9-4a86-e3bc61bb27a2@FreeBSD.org> In-Reply-To: <dcc6fa75-8325-01e9-4a86-e3bc61bb27a2@FreeBSD.org> --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 @<flavor> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64b78d72-db31-7c4b-c7de-ba5a3ee6a196>