Re: Dealing with FTBFS with gcc 5
Am Donnerstag, den 12.02.2015, 14:42 +0100 schrieb Julien Puydt:
> quite a number of "FTBFS with gcc 5" bugs are hitting packages under the
> debian-science umbrella ; as I'm part of the team, I'll try to help on
> those, but since I have no clue what the problem(s) exactly is(are) yet,
> I have a few questions :
>
> 1. How can I set up a pbuilder with that compiler ?
Pretty easy. There are two ways to achieve the following: either create
an environment, which contains the sources.list entries for
experimental, or use the sid one and the --othermirror switch of
pbuilder every time you run pbuilder/pdebuild.
Next make sure, sudo doesn't drop the environment variables you want to
keep (probably CC, CXX, CPP, etc.). Maybe this for /etc/sudoers:
Defaults env_keep = "DH_OPTIONS DH_VERBOSE DEB_BUILD_OPTIONS
MAKEFLAGS CC CXX CPP F77 F90"
And then it's a piece of cake:
CC= CXX= CPP=... sudo pdebuild --use-pdebuild-internal \
--debbuildopts "-us -uc -j2" -- \
--buildresult /tmp --extrapackages "g++-5 gcc-5 cpp-5"
Of course you can also add these packages persistently to the pbuilder
chroot via EXTRAPACKAGES in pbuilderrc. The above is more flexible.
I'm pretty sure you can use hooks too :)
HTH and regards, Daniel
Reply to: