Poudriere Build of pkg_* repos?

Rick Miller vmiller at hostileadmin.com
Thu Sep 25 12:56:36 UTC 2014


On Wed, Sep 24, 2014 at 5:32 PM, Bryan Drewery <bdrewery at freebsd.org> wrote:

> On 9/24/2014 3:35 PM, Rick Miller wrote:
> > Hi all,
> >
> > Does the EOL of legacy pkg_* tools in FreeBSD Ports affect Poudriere's
> > ability to build legacy package repos?
>
> No. Poudriere still supports it as long as you're using an older ports
> tree.
>

Given that, is the expectation that the below workflow would produce an 8.4
package repo?  Unfortunately, it did not.

After creating an 8.4-RELEASE jail and an older, equivalent Ports tree as
follows...

# poudriere jail -c -j 8_4-amd64 -v 8.4-RELEASE -a amd64
# poudriere ports -c -p 8_4-amd64 -m svn+http -B branches/RELEASE_8_4_0

/usr/local/etc/poudriere.d/8_4-amd64-make.conf:

WITHOUT_PKGNG=yes
PERL_VERSION=5.14.4
OPTIONS_UNSET="X11 GTK2"

.if ${.CURDIR:M*/shells/bash}
EXTRA_PATCHES+= /distfiles/local-patches/8_4-amd64/bash.patch
.endif

note: above .if added to the make.conf according to the link provided below

Executing poudriere bulk, as follows, results in no packages built due to
numerous stage failures subsequently resulting in a bunch of skipped builds
due to these failures.

# poudriere bulk -j 8_4-amd64 -f $package_file -p 8_4-amd64

=======================<phase: stage          >============================
make: don't know how to make stage. Stop



>
> >
> > Poudriere was able to build a legacy pkg_* repo from a snapshot of Ports
> > from around the time releng/10.0 received the patch for -p7, but it
> failed
> > to build a legacy repo from a snapshot taken today and instead built a
> > pkg(8) repo despite make.conf having WITHOUT_PKGNG=yes.
> >
> > Aside:  Actually, it seemed to ignore the make.conf altogether as it
> > contains PERL_VERSION=5.14.4 and built 5.16 instead.
>
> It must be /usr/local/etc/poudriere.d/make.conf
>
> >
> > Provided this is the case, what suggestions are there for patching
> today's
> > bash remote execution vulnerability[1] in a version of Ports that can be
> > built into a legacy repo?
>
> Just apply the patch via files/ and use EXTRA_PATCHES:
>
> http://dan.langille.org/2014/06/10/freebsd-custom-port-patches-when-using-poudriere/



-- 
Take care
Rick Miller


More information about the freebsd-ports mailing list