From 2423b0bb2df182f77aeb89dca9c44e99a0e7a2d2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 5 May 2024 23:05:51 +0300 Subject: gnu: strongswan: Fix building on non-x86 architectures. * gnu/packages/vpn.scm (strongswan)[arguments]: When building for not-x86 architectures disable aesni support. Also adjust the test suite so we skip the RSA tests. Change-Id: Idbc7bb229b83b0f43f3286b94fa4da077711c0ed --- gnu/packages/vpn.scm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm index 7823ef19eb..6a957638e3 100644 --- a/gnu/packages/vpn.scm +++ b/gnu/packages/vpn.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2013, 2016, 2018, 2019, 2020, 2021 Ludovic Courtès ;;; Copyright © 2014 Eric Bavier ;;; Copyright © 2015 Jeff Mickey -;;; Copyright © 2016, 2017, 2019, 2021, 2022 Efraim Flashner +;;; Copyright © 2016, 2017, 2019, 2021, 2022, 2024 Efraim Flashner ;;; Copyright © 2016–2022 Tobias Geerinckx-Rice ;;; Copyright © 2017 Julien Lepiller ;;; Copyright © 2018, 2020 Pierre Langlois @@ -421,7 +421,11 @@ (define-public strongswan (add-before 'check 'set-up-test-environment (lambda* (#:key inputs #:allow-other-keys) (setenv "TZDIR" - (search-input-directory inputs "share/zoneinfo"))))) + (search-input-directory inputs "share/zoneinfo")) + ;; Speed-up the test suite on some of the architectures. + ,@(if (not (target-x86?)) + `((setenv "TESTS_SUITES_EXCLUDE" "rsa")) + '())))) #:configure-flags (list "--disable-ldap" @@ -435,7 +439,10 @@ (define-public strongswan ;; Make it usable. The default configuration is far too minimal to be ;; used with most common VPN set-ups. ;; See . - "--enable-aesni" + ;; AESNI expects on hardware support from x86 systems. + ,@(if (target-x86?) + `("--enable-aesni") + `("--disable-aesni")) "--enable-attr-sql" "--enable-chapoly" "--enable-curl" -- cgit v1.2.3