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

Bug#940694: dbus-cpp FTCBFS: forces build architecture compilers



Source: dbus-cpp
Version: 5.0.0+18.04.20171031-2
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

dbus-cpp fails to cross build from source, because debian/rules forces
build architecture compilers upon cmake as make defaults in
debian/rules. dh_auto_configure also supplies a sane compiler choice and
environment variables are also honoured by it. There is no benefit in
assigning them here. After fixing that, the cross build runs into the
same FTBFS as observed by reproducible builds. Please consider applying
the attached patch and close this bug when doing so.

Helmut
diff --minimal -Nru dbus-cpp-5.0.0+18.04.20171031/debian/changelog dbus-cpp-5.0.0+18.04.20171031/debian/changelog
--- dbus-cpp-5.0.0+18.04.20171031/debian/changelog	2018-07-24 10:27:30.000000000 +0200
+++ dbus-cpp-5.0.0+18.04.20171031/debian/changelog	2019-09-19 06:18:18.000000000 +0200
@@ -1,3 +1,9 @@
+dbus-cpp (5.0.0+18.04.20171031-3) UNRELEASED; urgency=medium
+
+  * Improve cross building: Don't override compilers. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Thu, 19 Sep 2019 06:18:18 +0200
+
 dbus-cpp (5.0.0+18.04.20171031-2) unstable; urgency=medium
 
   * Orphan package.
diff --minimal -Nru dbus-cpp-5.0.0+18.04.20171031/debian/rules dbus-cpp-5.0.0+18.04.20171031/debian/rules
--- dbus-cpp-5.0.0+18.04.20171031/debian/rules	2018-07-24 10:27:30.000000000 +0200
+++ dbus-cpp-5.0.0+18.04.20171031/debian/rules	2019-09-19 06:18:17.000000000 +0200
@@ -18,8 +18,6 @@
 override_dh_auto_configure:
 	dh_auto_configure -- \
 		-DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/dbus-cpp \
-		-DCMAKE_C_COMPILER=$(CC) \
-		-DCMAKE_CXX_COMPILER=$(CXX) \
 		-DDBUS_CPP_VERSION_MAJOR=$(MAJOR) \
 		-DDBUS_CPP_VERSION_MINOR=$(MINOR) \
 		-DDBUS_CPP_VERSION_PATCH=$(PATCH)

Reply to: