Bug#905610: nmapsi4 FTCBFS: fails finding the build architecture qt5

Helmut Grohne helmut at subdivi.de
Tue Aug 7 05:23:21 BST 2018


Source: nmapsi4
Version: 0.5~alpha1-2
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

nampsi4 fails to cross build from source. It actually builds nmapsi4
twice. Once via debhelper and once in the build/ folder. It's that
second build that fails configuring for the build architecture as it
fails finding qt5, which is only requested for the host architecture by
Build-Depends. I don't quite understand why nmapsi4 has to be built
twice. The attached patch removes the second, failing build though and
it makes nmapsi4 cross buildable. Please consider applying it.

Helmut
-------------- next part --------------
diff --minimal -Nru nmapsi4-0.5~alpha1/debian/changelog nmapsi4-0.5~alpha1/debian/changelog
--- nmapsi4-0.5~alpha1/debian/changelog	2017-11-07 09:57:54.000000000 +0100
+++ nmapsi4-0.5~alpha1/debian/changelog	2018-08-07 06:18:25.000000000 +0200
@@ -1,3 +1,10 @@
+nmapsi4 (0.5~alpha1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Build once only and let dh do it (Closes: #-1).
+
+ -- Helmut Grohne <helmut at subdivi.de>  Tue, 07 Aug 2018 06:18:25 +0200
+
 nmapsi4 (0.5~alpha1-2) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru nmapsi4-0.5~alpha1/debian/rules nmapsi4-0.5~alpha1/debian/rules
--- nmapsi4-0.5~alpha1/debian/rules	2017-11-06 19:04:28.000000000 +0100
+++ nmapsi4-0.5~alpha1/debian/rules	2018-08-07 06:18:22.000000000 +0200
@@ -3,23 +3,8 @@
 %:
 	dh $@
 	
-override_dh_auto_clean:
-	dh_auto_clean
-	[ ! -f build/Makefile ] || $(MAKE) -C build/ clean
-	rm -rf build/
-	
 override_dh_auto_configure:
-	dh_auto_configure
-	cd tools ; ./cmake_verbose_script.sh
-
-
-override_dh_auto_build:
-	dh_auto_build
-	$(MAKE) -C build/
-	
-override_dh_auto_install:
-	dh_auto_install	
-	$(MAKE) -C build/ DESTDIR=$(CURDIR)/debian/nmapsi4 install
+	dh_auto_configure -- -DCMAKE_SKIP_RPATH=ON
 
 override_dh_installman:
 	dh_installman debian/nmapsi4-logr.1 debian/nmapsi4.1


More information about the Pkg-security-team mailing list