Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2014 01:48:45 -0700 (PDT)
From:      Anton Shterenlikht <mexas@bris.ac.uk>
To:        dnewman@networktest.com, freebsd-questions@freebsd.org
Subject:   Re: Using pkg with build options
Message-ID:  <201403250848.s2P8mgBH064877@mech-cluster241.men.bris.ac.uk>
In-Reply-To: <5330C120.40905@networktest.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>
>I'm still quite confused over the migration to pkg.
>
>I have a mix of 9.2 and 10.0 machines. Most run at least one port
>compiled with options.
>
>Is there a guide to moving these machines to pkg and poudriere?

These are two unrelated issues.
You can move to pkg any time,
and still use the same process to
build ports that you are using now.
All that will change is that instead
of pkg_* commands you'll need to use
pkg commands. There are many things
happening under the cover, but as a
user I don't need to worry about them.
All works as before, i.e. I still use
portmaster occasionally to update ports.

If you want to build packages yourself
with poudriere, then this is also easy
to do. I found this guide halpful:

https://www.glenbarber.us/2012/06/11/Maintaining-Your-Own-pkgng-Repository.html

together with other poudriere pages.

However, if you need to build packages
with several sets of options, things
get a bit more complex. Essentially,
as far as I understand, the easiest is
to have a jail built for each set of
options. In the limit, if each of your
boxes has ports with unique set of options,
you might have as many jails as boxes.
Then it's easy: you run
"poudriere options -j <name of a particular jail> <portname>".
This is likely to be an overkill,
as you'll have to build many times ports
which do not have options, of the same
set of options, but this will work.
Then from each box you choose which
jail to pull the packages from.

After the packages are pulled and
installed, again things are as before,
i.e. you can mix portmaster with pkg,
although there might be possible issues
if you local ports tree revision differs
from that used to build the packages
with poudriere.

I don't have this complexity. I have
several ia64 boxes, for which I build
a single set of packages with options
with poudriere. This is very good and
easy (after some learning time, of course).

Anton



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