Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Feb 2016 15:04:55 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: poudriere options
Message-ID:  <56BA0017.5060106@FreeBSD.org>
In-Reply-To: <20160209143332.GB78608@pcjas.obspm.fr>
References:  <20160209143332.GB78608@pcjas.obspm.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56BA0017.5060106>