Source: klibc
Version: 2.0.6-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

klibc fails to cross build from source, because it fails running tests
in a build with DEB_BUILD_OPTIONS=nocheck. The attached patch makes
klibc honour the option and fixes the cross build. Please consider
applying it.

Helmut
diff --minimal -Nru klibc-2.0.6/debian/changelog klibc-2.0.6/debian/changelog
--- klibc-2.0.6/debian/changelog        2019-02-01 06:00:57.000000000 +0100
+++ klibc-2.0.6/debian/changelog        2019-02-21 05:46:35.000000000 +0100
@@ -1,3 +1,10 @@
+klibc (2.0.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Honour DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 21 Feb 2019 05:46:35 +0100
+
 klibc (2.0.6-1) unstable; urgency=medium
 
   * New upstream version:
diff --minimal -Nru klibc-2.0.6/debian/rules klibc-2.0.6/debian/rules
--- klibc-2.0.6/debian/rules    2019-02-01 06:00:47.000000000 +0100
+++ klibc-2.0.6/debian/rules    2019-02-21 05:46:34.000000000 +0100
@@ -98,6 +98,7 @@
 comma=,
 
 override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
        $(MAKE) test $(DEB_MAKE_ENVVARS)
        $(call run_test_program,microhello)
        $(call run_test_program,minihello)
@@ -118,6 +119,7 @@
        $(call run_test_program,vfork)
        usr/dash/static/sh -c "exit"
        usr/dash/static/sh -c "usr/utils/static/true; exit"
+endif
 
 override_dh_fixperms:
        dh_fixperms -X.so

Reply via email to