Using pkg with build options

Arthur Chance freebsd at qeng-ho.org
Tue Mar 25 08:58:32 UTC 2014


On 25/03/2014 01:55, Warren Block wrote:
> On Mon, 24 Mar 2014, David Newman wrote:
>
>>> Using Poudriere to build binary packages of your own is not required.
>>> But if you want to do it, there's a short section on setting up
>>> Poudriere in the Handbook:
>>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-poudriere.html
>>>
>>
>> Part of the appeal of pkg is that package binaries install much faster
>> than waiting for 'portmaster -aD' to complete after updating the ports
>> tree.
>>
>> However, if I understand that poudriere link, it would still build my
>> custom packages from ports, and thus there isn't much time savings.
>> Correct?
>
> Yes.  Poudriere is really only helpful if you have multiple machines
> using the same binary packages.  One machine builds all the packages,
> then the rest of them install from it.

It can be useful even if you have only one machine. In the past I've had 
a portmaster update fail half way through due to ports that break when 
using the particular mix of options I set, leaving me with an 
incompatible mix of old and new ports. If you use poudriere the update 
can be an all or nothing operation - only update if all the ports 
compiled OK. But one should always read and act on /usr/ports/UPDATING 
of course. I've been caught out by being too hasty even with poudriere.



More information about the freebsd-questions mailing list