Bug#554343: libtasn1-3: don't run tests when cross-compiling

Colin Watson cjwatson at ubuntu.com
Wed Nov 4 01:14:05 UTC 2009


Package: libtasn1-3
Version: 2.2-1
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch karmic

Running tests when cross-compiling doesn't work here, since it requires
executing binaries for the host architecture. This patch disables tests
in this case.

  * Don't run tests when cross-compiling.

diff -u libtasn1-3-2.2/debian/rules libtasn1-3-2.2/debian/rules
--- libtasn1-3-2.2/debian/rules
+++ libtasn1-3-2.2/debian/rules
@@ -8,7 +8,9 @@
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
 DEB_CONFIGURE_EXTRA_FLAGS = --enable-ld-version-script
+ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
 DEB_MAKE_CHECK_TARGET = check
+endif
 DEB_DH_STRIP_ARGS = --dbg-package libtasn1-3-dbg
 DEB_DH_INSTALL_SOURCEDIR = debian/tmp
 DEB_DH_MAKESHLIBS_ARGS_ALL := -V 'libtasn1-3 (>=1.6-0)'

Thanks,

-- 
Colin Watson                                       [cjwatson at ubuntu.com]





More information about the Pkg-gnutls-maint mailing list