[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#901348: unalz FTCBFS: uses the build architecture C++ compiler



Source: unalz
Version: 0.65-6
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

unalz fails to cross build from source, because it uses a non-standard
variable (CPP) for the C++ compiler and thus dh_auto_build does not
provide it. After renaming the variable, unalz cross builds
successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru unalz-0.65/debian/changelog unalz-0.65/debian/changelog
--- unalz-0.65/debian/changelog	2017-12-27 09:38:44.000000000 +0100
+++ unalz-0.65/debian/changelog	2018-06-11 20:37:59.000000000 +0200
@@ -1,3 +1,10 @@
+unalz (0.65-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Provide a c++ compiler in $(CPP). (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Mon, 11 Jun 2018 20:37:59 +0200
+
 unalz (0.65-6) unstable; urgency=medium
 
   * debian/{control,copyright,watch}: Correct the upstream URL
diff --minimal -Nru unalz-0.65/debian/rules unalz-0.65/debian/rules
--- unalz-0.65/debian/rules	2017-12-27 09:38:44.000000000 +0100
+++ unalz-0.65/debian/rules	2018-06-11 20:37:59.000000000 +0200
@@ -16,7 +16,7 @@
 	dh $@
 
 override_dh_auto_build:
-	dh_auto_build -- linux-utf8 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
+	dh_auto_build -- linux-utf8 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" 'CPP=$$(CXX)'
 	$(XP) -o debian/unalz.1 $(DB2MAN) debian/unalz.dbk
 	iconv -f EUC-KR -t UTF-8 < readme.txt > debian/readme.txt
 

Reply to: