[Reproducible-builds] Bug#791409: presage: FTBFS with DEB_CPPFLAGS_APPEND: swig: bash: -D_FORTIFY_SOURCE=2: command not found

Chris West (Faux) solo-debianbugs at goeswhere.com
Sat Jul 4 13:14:03 UTC 2015

Source: presage
Version: 0.9-1
Severity: important
Tags: sid stretch
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs

Dear Maintainer,

The package fails to build if you add extra CPPFLAGS using DEB_CPPFLAGS_APPEND:

$ DEB_CPPFLAGS_APPEND='-D__BROKEN__=1' dpkg-buildpackage
Making all in python
make[4]: Entering directory '/home/faux/presage-0.9/bindings/python'
/usr/bin/swig2.0 -c++ -python -I../../src/lib -o presage_wrap.cpp -outdir . ./../presage.i
make  all-am
make[5]: Entering directory '/home/faux/presage-0.9/bindings/python'
/bin/bash: line 5: -D__BROKEN__=1: command not found
Makefile:592: recipe for target 'all-local' failed
make[5]: *** [all-local] Error 127

This could be a quoting issue; "$(dpkg-buildflags --cppflags)" may be needed somewhere.

Example full build log (the reproducible builder adds extra cppflags):

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.19.0-21-generic (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

More information about the Reproducible-builds mailing list