unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Leo Nikkilä via Guix-patches via" <guix-patches@gnu.org>
To: 70328@debbugs.gnu.org
Cc: "Leo Nikkilä" <hello@lnikki.la>
Subject: [bug#70328] [PATCH] gnu: audit: Build with aarch64 and arm support.
Date: Thu, 11 Apr 2024 02:55:03 +0300	[thread overview]
Message-ID: <20240410235555.21183-1-hello@lnikki.la> (raw)

* 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





                 reply	other threads:[~2024-04-10 23:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240410235555.21183-1-hello@lnikki.la \
    --to=guix-patches@gnu.org \
    --cc=70328@debbugs.gnu.org \
    --cc=hello@lnikki.la \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).