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

Bug#956551: ibus-chewing FTCBFS: does not pass cross flags to cmake



Source: ibus-chewing
Version: 1.6.1-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

ibus-chewing fails to cross build from source, because it does not pass
cross flags to cmake. The easiest way of doing so - using
dh_auto_configure - makes the cmake invocation succeed, but the actual
build still fails with an Exec format error. Using dh_auto_configure
also makes DEB_BUILD_OPTIONS=terse work. Please consider applying the
attached patch anyway and close this bug when doing so.

Helmut
diff --minimal -Nru ibus-chewing-1.6.1/debian/changelog ibus-chewing-1.6.1/debian/changelog
--- ibus-chewing-1.6.1/debian/changelog	2019-01-05 03:35:14.000000000 +0100
+++ ibus-chewing-1.6.1/debian/changelog	2020-04-12 17:18:24.000000000 +0200
@@ -1,3 +1,11 @@
+ibus-chewing (1.6.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross compilation: Let dh_auto_configure pass cross flags to
+    cmake. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sun, 12 Apr 2020 17:18:24 +0200
+
 ibus-chewing (1.6.1-1) unstable; urgency=medium
 
   * New upstream release.
diff --minimal -Nru ibus-chewing-1.6.1/debian/rules ibus-chewing-1.6.1/debian/rules
--- ibus-chewing-1.6.1/debian/rules	2019-01-05 02:57:36.000000000 +0100
+++ ibus-chewing-1.6.1/debian/rules	2020-04-12 17:18:23.000000000 +0200
@@ -26,8 +26,7 @@
 	cp $(CURDIR)/po/zanata.xml $(CURDIR)/debian/bak/po
 	cp $(CURDIR)/ChangeLog $(CURDIR)/debian/bak
 
-	cmake -DCMAKE_INSTALL_PREFIX="/usr" \
-		-DCMAKE_VERBOSE_MAKEFILE=ON \
+	dh_auto_configure -- \
 		-DCMAKE_SKIP_RPATH=ON \
 		-DLIBEXEC_DIR=/usr/lib/ibus \
 		-DSYSCONF_INSTALL_DIR=/usr/share \

Reply to: