summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog8
-rwxr-xr-xdebian/rules14
2 files changed, 21 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 803fc9e42..9ea7a0a8b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+strongswan (5.1.2-2) UNRELEASED; urgency=medium
+
+ * debian/rules:
+ - use reduced keylengths in testsuite on various arches, hopefully fixing
+ FTBFS when the genrsa test runs.
+
+ -- Yves-Alexis Perez <corsac@debian.org> Tue, 25 Mar 2014 11:56:11 +0100
+
strongswan (5.1.2-1) unstable; urgency=medium
* New upstream release.
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