Source: libonig Version: 5.9.1-1 Severity: wishlist Tags: patch User: crossbu...@debian.org Usertags: cross
The libonig package tries to run "make check" even when cross-compiling, resulting in test-suite failures. The attached patch disables the test-suite when cross-compiling or when the DEB_BUILD_OPTIONS=nocheck variable is set (as per Debian Policy). Please consider applying, thanks! Cheers, Kyle Moffett -- Curious about my work on the Debian powerpcspe port? I'm keeping a blog here: http://pureperl.blogspot.com/ -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (700, 'testing'), (700, 'stable'), (600, 'unstable'), (500, 'stable-updates'), (500, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
diff -ruN libonig-5.9.1/debian/rules libonig-5.9.1.new/debian/rules --- libonig-5.9.1/debian/rules 2011-10-19 16:03:21.000000000 -0400 +++ libonig-5.9.1.new/debian/rules 2011-10-19 16:03:36.000000000 -0400 @@ -15,6 +15,14 @@ CFLAGS += -O2 -fno-strict-aliasing endif +MAKE_check = +$(MAKE) check +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +MAKE_check = @echo "Testsuite disabled due to cross-compilation" +endif +ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) +MAKE_check = @echo "Testsuite disabled due to 'nocheck' in DEB_BUILD_OPTIONS" +endif + configure: debian/stamp-configure debian/stamp-configure: dh_testdir @@ -46,7 +54,7 @@ debian/stamp-check: debian/stamp-build dh_testdir - $(MAKE) check + $(MAKE_check) @touch $@