From owner-freebsd-ports-announce@freebsd.org Tue Sep 26 14:05:16 2017 Return-Path: Delivered-To: freebsd-ports-announce@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 DABCBE0C844; Tue, 26 Sep 2017 14:05:16 +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 A1BA966F8B; Tue, 26 Sep 2017 14:05:13 +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 4D5ABBDD4B; Tue, 26 Sep 2017 16:05:10 +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 187EDBDD3E; Tue, 26 Sep 2017 16:05:10 +0200 (CEST) To: freebsd-ports@freebsd.org Cc: freebsd-ports-announce@FreeBSD.org Reply-To: ports-list freebsd From: Mathieu Arnold Organization: Absolight / The FreeBSD Foundation Message-ID: Date: Tue, 26 Sep 2017 16:05:08 +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 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RCgtuMetXxRQcTwgUPE2D8KG2Pl8cMsQR" X-Mailman-Approved-At: Tue, 26 Sep 2017 17:32:46 +0000 Subject: [FreeBSD-Ports-Announce] [HEADUP] FLAVORS landing. X-BeenThere: freebsd-ports-announce@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Important news and instructions about the FreeBSD " ports collection" \[moderated\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2017 14:05:17 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --RCgtuMetXxRQcTwgUPE2D8KG2Pl8cMsQR Content-Type: multipart/mixed; boundary="XoHc8hw8KrllNsBnqvbSK9uKNiSbPijHN"; protected-headers="v1" From: Mathieu Arnold Reply-To: ports-list freebsd To: freebsd-ports@freebsd.org Cc: freebsd-ports-announce@FreeBSD.org Message-ID: Subject: [HEADUP] FLAVORS landing. --XoHc8hw8KrllNsBnqvbSK9uKNiSbPijHN Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Hi, **Do not commit FLAVORS to any ports, a hook will prevent it, that being 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 by 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 wiki in the bottom block. A roadmap is in the second link. 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 with:= =2Eif ${FLAVOR} =3D=3D flavor2 [change some stuff] =2Eendif To build flavor2, simply run: make FLAVOR=3Dflavor2 To depend on a specific flavor, write @ at the end of the depend string, for example, to depend on flavor "foo": RUN_DEPENDS=3D=C2=A0=C2=A0=C2=A0 something:origin@foo --=20 Mathieu Arnold --XoHc8hw8KrllNsBnqvbSK9uKNiSbPijHN-- --RCgtuMetXxRQcTwgUPE2D8KG2Pl8cMsQR 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 iQJ8BAEBCgBmBQJZyl6UXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85IkLAP/RvcIzQv/2QlZFGwJCy0UNgb tB6M85jhINEviSU4hEQ6DGSPSzqZYAv0ftq9Xf5OTIdnuK68SRfz4NPx38ViDtOc bxv/jWj/c0SmBzE5SdGkL8/UrwtWenj1yNLZiGipFCGllAlBFFLVPOGjUwy7t0my VAUHln5y/zwzJBoTt73ljNwExztuDnfRkEfcjHJZ+94jOfe539mt3dYgKsL4oGwz 7ThBU4CpIyFXUUhtVe5tApFD8bMR3P4rRDsKzFwwY2xoeC/HY3jBswjSHKrevKcb hp2PHIuxYwFR2E+27ImQ+RTgo9tZERsoY0FGtDEiX5QvMqzvmVRmcGw3m0tclzGP IF2pzG2K7y63HuTDe5IDtd5llWqXmDoyvcTvJd3rZ6CGM+F1n2fe6e+bohGKhz+p w1WRsWEvSH8ibPcTFaDKjpC+Wjm6AVKOPF9cQSMEGJsfHGXNzzxxR+y5shafeZ8G XsDpQsFCF35RUaTHlCaAnJGBwGPzmXAglUe/nuWVdO9lQ63igk/YllkMiZ2wJLb2 rVCG4uC3i1k+474xR5YJGf00hc+rs2GzHImZxDbQFLledFsb0SDL81JHCyTk5eyM BJ/61okf/qF7RrxdKGyeFcOwxgkPdhBlT52CZ3PQ/LYx3ZjEMSHv3Pg9LuBlAGrN rq0VtPeBs3Ytv7vZC+xk =wldy -----END PGP SIGNATURE----- --RCgtuMetXxRQcTwgUPE2D8KG2Pl8cMsQR--