Package: gearhead
Version: 1.302-1
Severity: important
Usertags: ftbfs

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 <>
 dpkg-source --before-build gearhead-1.302
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
rm -f build-arch-stamp build-arch-console-stamp build-arch-sdl-stamp 
rm -rf debian/build
 debian/rules build
mkdir -p debian/build/console
cp *.pas *.pp *.inc debian/build/console
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

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.

                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:                             : :'  :
Launchpad user:                  `. `'`
Debian QA page:  `-

Attachment: signature.asc
Description: PGP signature

Reproducible-builds mailing list

Reply via email to