summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2014-03-25 12:09:47 +0100
committerYves-Alexis Perez <corsac@debian.org>2014-03-25 12:09:47 +0100
commit2f825efc95b280c748a46d3fd11a0facb77f1131 (patch)
tree709663594582656c946c6317ae9db1a347c1efef /debian/rules
parent0a4fbcd0adee83aca74b8b48e97417e4a6a8d382 (diff)
downloadvyos-strongswan-2f825efc95b280c748a46d3fd11a0facb77f1131.tar.gz
vyos-strongswan-2f825efc95b280c748a46d3fd11a0facb77f1131.zip
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.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules14
1 files changed, 13 insertions, 1 deletions
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