[Pkg-freeipa-devel] Bug#932639: nss-pem FTCBFS: does not pass cross flags to cmake

Helmut Grohne helmut at subdivi.de
Sun Jul 21 15:27:01 BST 2019


Source: nss-pem
Version: 1.0.5-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

nss-pem 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 nss-pem cross buildable. Please consider applying the attached
patch.

Helmut
-------------- next part --------------
diff --minimal -Nru nss-pem-1.0.5/debian/changelog nss-pem-1.0.5/debian/changelog
--- nss-pem-1.0.5/debian/changelog	2019-07-08 15:01:00.000000000 +0200
+++ nss-pem-1.0.5/debian/changelog	2019-07-21 16:11:41.000000000 +0200
@@ -1,3 +1,10 @@
+nss-pem (1.0.5-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>  Sun, 21 Jul 2019 16:11:41 +0200
+
 nss-pem (1.0.5-1) unstable; urgency=medium
 
   * New upstream release.
diff --minimal -Nru nss-pem-1.0.5/debian/rules nss-pem-1.0.5/debian/rules
--- nss-pem-1.0.5/debian/rules	2019-07-08 14:46:29.000000000 +0200
+++ nss-pem-1.0.5/debian/rules	2019-07-21 16:11:34.000000000 +0200
@@ -7,12 +7,10 @@
 	dh $@ --builddirectory=build/
 
 override_dh_auto_configure:
-	mkdir build
-	cd build && cmake \
+	dh_auto_configure --sourcedirectory=src --
 		-DCMAKE_INSTALL_PREFIX=/usr \
 		-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-		-DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)/nss \
-		../src
+		-DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)/nss
 
 override_dh_auto_build:
 	(cd nss; QUILT_PATCHES=debian/patches quilt push -a; debian/rules build)


More information about the Pkg-freeipa-devel mailing list