[Pkg-fonts-devel] Bug#951739: fontmatrix FTCBFS: runs cmake for the build architecture

Helmut Grohne helmut at subdivi.de
Thu Feb 20 22:02:20 GMT 2020


Source: fontmatrix
Version: 0.9.99-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

fontmatrix fails to cross build from source, because it does not pass
cross compilation flags to cmake. The easiest way of doing so - using
dh_auto_configure - makes fontmatrix cross buildable. Please consider
applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru fontmatrix-0.9.99/debian/changelog fontmatrix-0.9.99/debian/changelog
--- fontmatrix-0.9.99/debian/changelog	2020-02-17 12:09:08.000000000 +0100
+++ fontmatrix-0.9.99/debian/changelog	2020-02-20 22:53:58.000000000 +0100
@@ -1,3 +1,10 @@
+fontmatrix (0.9.99-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass cross flags to cmake. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Thu, 20 Feb 2020 22:53:58 +0100
+
 fontmatrix (0.9.99-1) unstable; urgency=medium
 
   * Add debian/missing-sources. (Closes: #744698)
diff --minimal -Nru fontmatrix-0.9.99/debian/rules fontmatrix-0.9.99/debian/rules
--- fontmatrix-0.9.99/debian/rules	2019-07-30 09:45:03.000000000 +0200
+++ fontmatrix-0.9.99/debian/rules	2020-02-20 22:53:58.000000000 +0100
@@ -24,11 +24,10 @@
 configure-stamp:
 	dh_testdir
 	mkdir -p $(BUILD_DIR)
-	cd $(BUILD_DIR) && $(CMAKE) \
-		-DCMAKE_INSTALL_PREFIX:PATH=/usr \
+	dh_auto_configure --builddirectory=$(BUILD_DIR) -- \
 		-DCMAKE_SKIP_RPATH:BOOL=1 \
 		-DRPATH_STYLE:STRING=none \
-		-DCMAKE_C_FLAGS:STRING='$(OPT_FLAG)' ../../
+		-DCMAKE_C_FLAGS:STRING='$(OPT_FLAG)'
 #for the future   -DWANT_PODOFO:bool=1
 	touch configure-stamp
 #            -DCMAKE_BUILD_TYPE=Debug


More information about the Pkg-fonts-devel mailing list