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


--
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/54d38d48.3070...@zoho.com

Reply via email to