[Pkg-sssd-devel] Bug#940693: nss-wrapper FTCBFS: does not pass cross flags to cmake
Helmut Grohne
helmut at subdivi.de
Thu Sep 19 05:17:48 BST 2019
Source: nss-wrapper
Version: 1.1.3-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
nss-wrapper fails to cross build from source, because it does not pass
the various cross compilation flags to cmake. The easiest way of doing
so - using dh_auto_configure - makes nss-wrapper cross buildable. Please
consider applying the attached patch.
Helmut
-------------- next part --------------
diff --minimal -Nru nss-wrapper-1.1.3/debian/changelog nss-wrapper-1.1.3/debian/changelog
--- nss-wrapper-1.1.3/debian/changelog 2016-12-03 00:43:26.000000000 +0100
+++ nss-wrapper-1.1.3/debian/changelog 2019-09-19 06:15:12.000000000 +0200
@@ -1,3 +1,10 @@
+nss-wrapper (1.1.3-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, 19 Sep 2019 06:15:12 +0200
+
nss-wrapper (1.1.3-1) unstable; urgency=medium
* New upstream release.
diff --minimal -Nru nss-wrapper-1.1.3/debian/rules nss-wrapper-1.1.3/debian/rules
--- nss-wrapper-1.1.3/debian/rules 2016-12-03 00:32:05.000000000 +0100
+++ nss-wrapper-1.1.3/debian/rules 2019-09-19 06:15:00.000000000 +0200
@@ -4,9 +4,6 @@
ldflags = $(shell dpkg-buildflags --get LDFLAGS)
cmake_options = \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_VERBOSE_MAKEFILE=ON \
- -DCMAKE_BUILD_TYPE=None \
-DCMAKE_C_FLAGS="$(cflags)" \
-DCMAKE_SHARED_LINKER_FLAGS="$(ldflags)" \
-DCMAKE_EXE_LINKER_FLAGS="$(ldflags)" \
@@ -28,8 +25,7 @@
build-arch: obj/stamp
obj/stamp: CMakeLists.txt
- mkdir -p obj
- cd obj && cmake $(cmake_options) ..
+ dh_auto_configure --builddirectory=obj -- $(cmake_options)
$(MAKE) $(parallel) -C obj/
ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
$(MAKE) -C obj/ test ARGS="-V"
More information about the Pkg-sssd-devel
mailing list