Subject: [bug#70328] [PATCH] gnu: audit: Build with aarch64 and arm support.

From: Leo Nikkilä <[email-masked]>
Date: Thu, 11 Apr 2024 02:55:03 +0300

* gnu/packages/admin.scm (audit)[arguments]<#:configure-flags>: Add
`--with-aarch64' when building for aarch64. Likewise for arm.
---
 gnu/packages/admin.scm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 2b94b1e17a..d8b2c25af4 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -3355,9 +3355,18 @@ (define-public audit
                 "0y5w8pl91xapi49ih1pw7h48lac201cj7fm89hkklmzi9m2715gx"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:configure-flags (list "--with-python=no"
-                               "--disable-static")))
+     (list #:configure-flags
+           #~(list #$@(let ((system (or (%current-target-system)
+                                        (%current-system))))
+                        (cond ((string-prefix? "aarch64-" system)
+                               '("--with-aarch64"))
+                              ((string-prefix? "arm-" system)
+                               '("--with-arm"))
+                              (else
+                               '())))
+                   "--with-python=no"
+                   "--disable-static")))
     (inputs
      (list openldap gnutls cyrus-sasl))
     (synopsis "User-space component to the Linux auditing system")

-- 
2.41.0