Package: gearhead
Version: 1.302-1
Severity: important
User: reproducible-bui...@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Dear maintainer, your package FTBFS when dpkg enables the build flag
-fdebug-prefix-map from the reproducible/fixdebugpath feature area:

dpkg-buildpackage: info: source package gearhead
dpkg-buildpackage: info: source version 1.302-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Kari Pahula <k...@debian.org>
 dpkg-source --before-build gearhead-1.302
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-arch-stamp build-arch-console-stamp build-arch-sdl-stamp 
build-indep-stamp
rm -rf debian/build
dh_clean
 debian/rules build
dh_testdir
mkdir -p debian/build/console
cp *.pas *.pp *.inc debian/build/console
dh_testdir
cd debian/build/console; fpc -g -O2 -fdebug-prefix-map=/build/gearhead-1.302=. 
-g -XD gharena
Error: Illegal parameter: -fdebug-prefix-map=/build/gearhead-1.302=.
Error: /usr/bin/ppcx64 returned an error exitcode
debian/rules:38: recipe for target 'build-arch-console-stamp' failed
make: *** [build-arch-console-stamp] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2


Please note that the intention is to enable this build flag RSN
https://lists.debian.org/msgid-search/20160718085659.gi7...@chase.mapreri.org


A quick workaround would be to disable the reproducible/fixdebugpath
buildflags with
    export DEB_BUILD_MAINT_OPTIONS=reproducible=-fixdebugpath

The real problem here is that you are passing CFLAGS to fpc, and CFLAGS
are definitely not meant to be passed to fpc.  If I were you I'd revise
such choice (I also suppose that's the reason you disabled the hardening
buildflags, also those enabled by default (which I consider a pretty bad
thing)?).  I can't really figre what you'd gain, what CFLAGS contains
in your case is only '-g -O2', and apparently the build system is
alraedy putting -g; you can probably live by either adding -O2 yourself
in d/rules or leaving it to whatever default fpc has.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature

Reply via email to