[Pkg-opt-media-team] Bug#870866: dvd+rw-tools FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Sat Aug 5 20:38:29 UTC 2017


Source: dvd+rw-tools
Version: 7.1-11.1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

dvd+rw-tools fails to cross build from source, because it uses the build
architecture compiler. Indirecting the explicit $(MAKE) invocations
through dh_auto_build fixes that as debhelper knows how to pass cross
compilers to $(MAKE). Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru dvd+rw-tools-7.1/debian/changelog dvd+rw-tools-7.1/debian/changelog
--- dvd+rw-tools-7.1/debian/changelog	2016-11-11 16:11:36.000000000 +0100
+++ dvd+rw-tools-7.1/debian/changelog	2017-08-05 22:35:26.000000000 +0200
@@ -1,3 +1,11 @@
+dvd+rw-tools (7.1-11.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers to $(MAKE). Closes:
+    #-1.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 05 Aug 2017 22:35:26 +0200
+
 dvd+rw-tools (7.1-11.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru dvd+rw-tools-7.1/debian/rules dvd+rw-tools-7.1/debian/rules
--- dvd+rw-tools-7.1/debian/rules	2016-11-11 16:09:42.000000000 +0100
+++ dvd+rw-tools-7.1/debian/rules	2017-08-05 22:35:20.000000000 +0200
@@ -14,9 +14,9 @@
 build-stamp:
 	dh_testdir
 
-	CFLAGS="$(CFLAGS)" $(MAKE) WARN=-DI_KNOW_ALL_ABOUT_SUDO
-	CFLAGS="$(CFLAGS)" $(MAKE) +btcflash
-	CFLAGS="$(CFLAGS)" $(MAKE) rpl8
+	CFLAGS="$(CFLAGS)" dh_auto_build -- WARN=-DI_KNOW_ALL_ABOUT_SUDO
+	CFLAGS="$(CFLAGS)" dh_auto_build -- +btcflash
+	CFLAGS="$(CFLAGS)" dh_auto_build -- rpl8
 	sed -n "/^%changelog$$/,$$ p" dvd+rw-tools.spec > ChangeLog
 
 	touch $@


More information about the Pkg-opt-media-team mailing list