Source: videogen
Version: 0.33-7
Tags: patch
User: [email protected]
Usertags: rebootstrap

videogen fails to cross build from source, because debian/rules forces
the build architecture compiler upon make. The attached patch defers the
compiler choice to dh_auto_build and makes videogen cross buildable.
Please consider applying it.

Helmut
diff --minimal -Nru videogen-0.33/debian/changelog 
videogen-0.33/debian/changelog
--- videogen-0.33/debian/changelog      2019-02-12 09:27:19.000000000 +0100
+++ videogen-0.33/debian/changelog      2019-04-27 12:54:24.000000000 +0200
@@ -1,3 +1,12 @@
+videogen (0.33-7.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Don't force a build architecture CC.
+
+ -- Helmut Grohne <[email protected]>  Sat, 27 Apr 2019 12:54:24 +0200
+
 videogen (0.33-7) unstable; urgency=low
 
   * Update packaging
diff --minimal -Nru videogen-0.33/debian/rules videogen-0.33/debian/rules
--- videogen-0.33/debian/rules  2019-02-12 09:27:19.000000000 +0100
+++ videogen-0.33/debian/rules  2019-04-27 12:54:23.000000000 +0200
@@ -3,14 +3,13 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all future=+all qa=+all 
reproducible=+all
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 export DEB_CFLAGS_MAINT_APPEND  = -Wall -Wextra -Wpedantic -DYY_NO_UNPUT 
-DYY_NO_INPUT
-export CC=gcc
 
 
 %:
        dh $@
 
 override_dh_auto_build:
-       make LIBS="${LDFLAGS} -lm" CC="${CC}" CFLAGS="${CPPFLAGS} ${CFLAGS}"
+       dh_auto_build -- LIBS="${LDFLAGS} -lm" CFLAGS="${CPPFLAGS} ${CFLAGS}"
 
 # don't run make install, which is broken; we install required vinaries 
directly using debian/*.install
 override_dh_auto_install:

Reply via email to