[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Keep built files between pdebuild



If the several hours are spent compiling with gcc (likely), another
option is ccache; this is a little slower, but works across pbuilder
sessions (though deliberately not gcc upgrades, common in sid),
and is less likely to break things by reusing files it shouldn't
(as it requires the compiler options to match as well as the source).
Add this line to /etc/pbuilderrc

EXTRAPACKAGES="${EXTRAPACKAGES} ccache"

then run

sudo pbuilder --update --override-config

on your existing chroot(s).

If your package has a large tree of build-dependencies, you may want
to use eatmydata as well, to speed up the installation phase:

EXTRAPACKAGES="${EXTRAPACKAGES} ccache eatmydata"
export LD_PRELOAD=${LD_PRELOAD:+$LD_PRELOAD:}/usr/lib/`dpkg-architecture -a${ARCH} -qDEB_HOST_MULTIARCH`/libeatmydata.so
#this will complain about the lack of eatmydata outside the chroot, but this appears to be harmless


Reply to: