From 2f825efc95b280c748a46d3fd11a0facb77f1131 Mon Sep 17 00:00:00 2001 From: Yves-Alexis Perez Date: Tue, 25 Mar 2014 12:09:47 +0100 Subject: export TESTS_REDUCED_KEYLENGTHS for non linux/x86 arches * debian/rules: - use reduced keylengths in testsuite on various arches, hopefully fixing FTBFS when the genrsa test runs. --- debian/rules | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index cc42d931e..51ab054e7 100755 --- a/debian/rules +++ b/debian/rules @@ -30,9 +30,21 @@ CONFIGUREARGS := --libdir=/usr/lib --libexecdir=/usr/lib \ # (most notably the Phion one) have problems connecting when pluto # sends these Cisco options. +# get the various DEB_BUILD/DEB_HOST variables +include /usr/share/dpkg/architecture.mk + +# use reduced keylength in testsuite for !linux and !x86 +ifneq ($(DEB_BUILD_ARCH_OS),linux) + export TESTS_REDUCED_KEYLENGTHS=true +endif +ifneq ($(DEB_BUILD_ARCH_CPU),i386) +ifneq ($(DEB_BUILD_ARCH_CPU),amd64) + export TESTS_REDUCED_KEYLENGTHS=true +endif +endif + # the padlock plugin only makes sense on i386 # RdRand only makes sense on i386 and amd64 -DEB_BUILD_ARCH_CPU ?=$(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU) ifeq ($(DEB_BUILD_ARCH_CPU),i386) CONFIGUREARGS += --enable-padlock --enable-rdrand endif -- cgit v1.2.3