Severity 831797 serious
tags 831797 +patch
thanks
Dear maintainer, your package FTBFS when dpkg enables the build flag
-fdebug-prefix-map from the reproducible/fixdebugpath feature area:
The recent binnmu of the package on powerpc ( see bug 836530 ) has revealed that this issue now affects sid. Raising the severity.

The real problem here is that you are passing CFLAGS to fpc, and CFLAGS
are definitely not meant to be passed to fpc.
Attatched is a debdiff that fixes this and makes debian/rules now pass appropriate flags for fpc.


diff -Nru gearhead-1.302/debian/changelog gearhead-1.302/debian/changelog
--- gearhead-1.302/debian/changelog     2016-07-05 18:36:18.000000000 +0000
+++ gearhead-1.302/debian/changelog     2016-09-06 22:09:58.000000000 +0000
@@ -1,3 +1,12 @@
+gearhead (1.302-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Don't use Debian CFLAGS for fpc. fpc is not a C compiler and doesn't
+    recognise many gcc options. Also don't specify -O0, it's not a valid fpc
+    option. Do continue to pass -g and if appropriate -O2. (Closes: 831797) 
+
+ -- Peter Michael Green <plugw...@debian.org>  Tue, 06 Sep 2016 22:09:58 +0000
+
 gearhead (1.302-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru gearhead-1.302/debian/rules gearhead-1.302/debian/rules
--- gearhead-1.302/debian/rules 2016-04-06 19:38:26.000000000 +0000
+++ gearhead-1.302/debian/rules 2016-09-06 22:09:58.000000000 +0000
@@ -18,10 +18,12 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=-all
 
+FPCFLAGS := -g
+
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-       CFLAGS += -O0
+
 else
-       CFLAGS += -O2
+       FPCFLAGS += -O2
 endif
 
 -include /usr/share/dpkg/buildflags.mk
@@ -36,12 +38,12 @@
 
 build-arch-console-stamp: debian/build/console
        dh_testdir
-       cd debian/build/console; fpc $(CFLAGS) -g -XD gharena
+       cd debian/build/console; fpc $(FPCFLAGS) -g -XD gharena
        touch build-arch-console-stamp
 
 build-arch-sdl-stamp: debian/build/sdl
        dh_testdir
-       cd debian/build/sdl; fpc $(CFLAGS) -dSDLMODE -g -XD gharena
+       cd debian/build/sdl; fpc $(FPCFLAGS) -dSDLMODE -g -XD gharena
        touch build-arch-sdl-stamp
 
 debian/build/console:

Reply via email to