From owner-freebsd-questions@freebsd.org Tue Feb 9 15:05:13 2016 Return-Path: Delivered-To: freebsd-questions@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 2551EAA3A57 for ; Tue, 9 Feb 2016 15:05:13 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (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 BB3DE1DA2 for ; Tue, 9 Feb 2016 15:05:12 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from zero-gravitas.local (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 6B174CFCE for ; Tue, 9 Feb 2016 15:05:04 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/6B174CFCE; dkim=none; dkim-atps=neutral Subject: Re: poudriere options To: freebsd-questions@freebsd.org References: <20160209143332.GB78608@pcjas.obspm.fr> From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <56BA0017.5060106@FreeBSD.org> Date: Tue, 9 Feb 2016 15:04:55 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160209143332.GB78608@pcjas.obspm.fr> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ih8tgXNxuoAtNqEPQ14hrm8fvN4bjujiL" X-Virus-Scanned: clamav-milter 0.99 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=2.2 required=5.0 tests=RDNS_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2016 15:05:13 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ih8tgXNxuoAtNqEPQ14hrm8fvN4bjujiL Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016/02/09 14:33, Albert Shih wrote: > Hi everyone. >=20 > Some basic question about make.conf and poudriere. >=20 > I currently use poudriere with different kind of make.conf. >=20 > But how can I have the standard configuration of make.conf. For example= > I got a poudriere with >=20 > DEFAULT_VERSIONS=3D ruby=3D2.1 perl5=3D5.20 python=3D2.7 php=3D5.6 pg= sql=3D9.4 apache=3D2.4 >=20 > that's fine for some special use. But sometime I would like to use the > standard version, meanning when pgsql go to 95 I don't have to make a > another poudriere jail. >=20 > How can I have the standard version of all DEFAULT_VERSIONS, should I > change it when /usr/ports/UPDATING change, or I create a poudriere jail= > with empty DEFAULT_VERSION. Hi Albert, With poudriere you have three different knobs to twiddle to generate different pkg sets: - jail (ie. which version of FreeBSD to build packages for) - ports (ie. choose a different version or a possibly locally modified copy of the ports) - package set It's this last one that you want. You can load specific options or make.conf bits for each named set. Suppose you call your package set 'special', then: -- ${POUDRIEREDIR}/special-make.conf will be read in /after/ the default ${POUDRIEREDIR}/make.conf (so, put generic settings in plain make.conf and override things you want different in special-make.conf) -- Port options will be stored in ${POUDRIEREDIR}/special-options/ Poudriere will only refer to this directory for port options when doing a 'special' bulk build. If you want to start off with your usual settings for most ports and then only change a few things, just copy the generic options/ directory one time, and then use poudriere options -z special -c some/port to change just the options for the ports you're interested in. To run a bulk using these special settings, simply add '-z special' to your usual 'poudriere bulk ....' command line. Or you can also have an alternate list of 'special' ports to build. The way I usually use this is to build overlay repos, so eg. I build a standard set of packages with postgresql92-{client,server,contrib} plus I build a smaller set of packages that includes postgresql95-{client,server,contrib} plus any packages that depend directly on one of those postgresql pkgs. You can then overlay the much smaller postgresql95 repo on top of the usual repo containing postgresql92 by having two repo.conf files with appropriate priority: settings. Any postgresql related port should get the postgresql95 variant, anything else unrelated to postgresql will just get the generic version from the main repo. Works pretty well in general. Cheers, Matthew --ih8tgXNxuoAtNqEPQ14hrm8fvN4bjujiL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJWugAeXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnVHEQAKZH0PaUbPVsbnVGBKBdhbR0 p6iBGehZ94wfxngjTfwiKAc6weY+rDHn6Grin6LpyVW2wN7AMFqd5tNqJrpXmUQ6 InhIoO705Jh6nUPNJuKbY8B2hFVQL5KRIt/gfO5wxcG3WIkx1qmVIH5fQy7vP/fN t3nQ8tbBuX3CA+bPOuYreJzvCSIuYEMfSyLadM8ozZaOGhfADr9toqlQJ4uGBVjX 7Qi3vdrQZazG6Xw9PHOm9nVPJbi2OUvMP1tQ5V6sVv8XmXt5x5eBwXMDN4DQ2WIR IhzE+srj6dnZmH5T1Sg2X8hMnlgCyIPFp5pTCiLodz/wk6GU2AAEfBxoDSACvJwv oN/u7KnE0d2NULq52EKKDZYdJfJbrEOPSH6TvVCLoqXycwsC5pcXKgTzJC2t30H2 NWoEggGskg+xTHKpm762kxXxtHqA0mKT+EwIX+QNx6ZKRi5yXhDrb7tbGwsu1DL+ 7VjUuXFHE6t+NIVo7VaQqzwejbuxJ/LN3rSBMG0omp9x2nznidV4pLhtFn5AoVfs iHWnEGi8MN+EpOUS5Q5hX8R5CA6WVjfB8h1VHfEeVwMCoi57QJBxGXM316KiDTr/ IlsSMsa3mjSnqCZV4g+izsYn2OkTAmuWUiPZgMlw404A4nxji0YJFXdUgUm1sWux fJU7expZHmUXaJOT+nxH =8e1S -----END PGP SIGNATURE----- --ih8tgXNxuoAtNqEPQ14hrm8fvN4bjujiL--