I tried to reproduce the reported errors utilizing cowbuilder.

Therefore I created a cowbuilder chroot environment containing the gcc-5
and g++-5 packages. I used the Debian Stretch ("testing") distribution
as basis.

sudo cowbuilder --create --distribution stretch --basepath
/var/cache/pbuilder/base-stretch.cow

sudo cowbuilder --login --distribution stretch --basepath
/var/cache/pbuilder/base-stretch.cow --save-after-login

# aptitude install g++-5
# cd /usr/bin
# ln -sf gcc-5 gcc
# ln -sf g++-5 g++
# exit

I patched the debian/rules Makefile of the nsis (2.46-10) package in
order to output the deployed compilers.

diff --git a/debian/rules b/debian/rules
index a2ab168..1aef7f1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -127,6 +127,8 @@ $(BUILDDIR)/NEWS:
        sed -e '0,/^\*\*\*\*\*/c\NSIS Release Notes (automatically
converted from AppendixF.html)' -e 's/F\.[.0-9]* //g' -e 's/^\*\*\*\**
*\([^*]*\)  *\**\*\*\*/\n\1\n/g' -e '/Changelog/d' -e
'/^NSIS_1.x_version_history/,/^=/c\
http://nsis.sourceforge.net/download/nsis1/' -e 's/^\(Released.*\)/
\1\n/g' | cat -s > "$@"

 override_dh_auto_build-arch: $(BUILDDIR)/NEWS
+       gcc -v
+       g++ -v
        scons $(SCONSOPTS_HOST) utils makensis
        xmlto -o $(BUILDDIR) man debian/makensis.xml
        xmlto -o $(BUILDDIR) man debian/GenPat.xml

Thereafter I issued git-buildpackage:

git-buildpackage --git-verbose --git-pbuilder --git-dist=stretch
--git-cleaner=/bin/true --git-export-dir=../build-area/
--git-tarball-dir=../tarballs/ --git-compression=bzip2 --git-overlay

git-buildpackage succeeded and produced the expected nsis Debian
packages. gcc -v and g++ -v both indicated the following version:
gcc version 5.1.1 20150602 (Debian 5.1.1-9)

Please let me know if I missed some important detail causing a different
result.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to