[Debian-med-packaging] Bug#832012: clonalframe: FTBFS with -fdebug-prefix-map

Mattia Rizzolo mattia at debian.org
Thu Jul 21 10:40:20 UTC 2016


Source: clonalframe
Version: 1.2-4
Severity: important
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

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

 debian/rules build
dh build
   dh_testdir
   dh_update_autotools_config
   dh_auto_configure
	qmake -makefile -nocache "QMAKE_CFLAGS_RELEASE=-g -O2 -fdebug-prefix-map=/build/clonalframe-1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CFLAGS_DEBUG=-g -O2 -fdebug-prefix-map=/build/clonalframe-1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_RELEASE=-g -O2 -fdebug-prefix-map=/build/clonalframe-1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_DEBUG=-g -O2 -fdebug-prefix-map=/build/clonalframe-1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" QMAKE_LFLAGS_RELEASE=-Wl,-z,relro QMAKE_LFLAGS_DEBUG=-Wl,-z,relro QMAKE_STRIP=: PREFIX=/usr
   debian/rules override_dh_auto_build
make[1]: Entering directory '/build/clonalframe-1.2'
qmake
# did not found a better way to push hardening flags into Makefile
sed -i -e "s/CFLAGS *= .*/& -g -O2 -fdebug-prefix-map=/build/clonalframe-1.2=. -fstack-protector-strong -Wformat -Werror=format-security/" \
       -e "s/CXXFLAGS *= .*/& -g -O2 -fdebug-prefix-map=/build/clonalframe-1.2=. -fstack-protector-strong -Wformat -Werror=format-security/" \
       -e "s/LFLAGS *= .*/& -Wl,-z,relro/" Makefile
sed: -e expression #1, char 45: unknown option to `s'
debian/rules:17: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory '/build/clonalframe-1.2'
debian/rules:10: recipe for target 'build' failed
make: *** [build] Error 2
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.GI7462@chase.mapreri.org


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

A possibly more proper fix would be to use a different separator than /,
for example : or #.

-- 
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  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20160721/8e73505d/attachment.sig>


More information about the Debian-med-packaging mailing list