guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch core-updates updated: gnu: cryptsetup: Only use ruby-asciidoctor


From: guix-commits
Subject: branch core-updates updated: gnu: cryptsetup: Only use ruby-asciidoctor on supported systems.
Date: Sun, 10 Mar 2024 06:02:08 -0400

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch core-updates
in repository guix.

The following commit(s) were added to refs/heads/core-updates by this push:
     new 14eb819f7f gnu: cryptsetup: Only use ruby-asciidoctor on supported 
systems.
14eb819f7f is described below

commit 14eb819f7f42304bde924890797ddaaa9dfd7732
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Mar 10 10:46:31 2024 +0200

    gnu: cryptsetup: Only use ruby-asciidoctor on supported systems.
    
    * gnu/packages/cryptsetup.scm (cryptsetup)[native-inputs]: Only use
    ruby-asciidoctor on supported systems.
    [arguments]: When building without ruby-asciidoctor adjust the
    configure-flags.
    
    Change-Id: If4551833de3c5b5a28424c059644e9fa7fda5abd
---
 gnu/packages/cryptsetup.scm | 40 ++++++++++++++++++++++++----------------
 1 file changed, 24 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/cryptsetup.scm b/gnu/packages/cryptsetup.scm
index 6765fed726..44f9c77984 100644
--- a/gnu/packages/cryptsetup.scm
+++ b/gnu/packages/cryptsetup.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2019–2021 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2024 Efraim Flashner <efraim@flashner.co.il>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -49,23 +50,30 @@
    (build-system gnu-build-system)
    (arguments
     `(#:configure-flags
-      (list
-       ;; Argon2 is always enabled, this just selects the (faster) full 
version.
-       "--enable-libargon2"
-       ;; The default is OpenSSL which provides better PBKDF performance.
-       "--with-crypto_backend=gcrypt"
-       ;; GRUB 2.06 supports LUKS2, but does it reliably support all set-ups…?
-       "--with-default-luks-format=LUKS1"
-       ;; External tokens would need an env variable to work on Guix, and we
-       ;; don't have users for it yet.
-       "--disable-external-tokens"
-       "--disable-ssh-token"
-       ;; libgcrypt is not found otherwise when cross-compiling.
-       ;; <https://issues.guix.gnu.org/63864>
-       (string-append "--with-libgcrypt-prefix="
-                      (assoc-ref %build-inputs "libgcrypt")))))
+      (append
+        (if (assoc-ref %build-inputs "ruby-asciidoctor")
+            '()
+            (list "--disable-asciidoc"))
+        (list
+          ;; Argon2 is always enabled, this just selects the (faster) full 
version.
+          "--enable-libargon2"
+          ;; The default is OpenSSL which provides better PBKDF performance.
+          "--with-crypto_backend=gcrypt"
+          ;; GRUB 2.06 supports LUKS2, but does it reliably support all 
set-ups…?
+          "--with-default-luks-format=LUKS1"
+          ;; External tokens would need an env variable to work on Guix, and we
+          ;; don't have users for it yet.
+          "--disable-external-tokens"
+          "--disable-ssh-token"
+          ;; libgcrypt is not found otherwise when cross-compiling.
+          ;; <https://issues.guix.gnu.org/63864>
+          (string-append "--with-libgcrypt-prefix="
+                         (assoc-ref %build-inputs "libgcrypt"))))))
    (native-inputs
-    (list pkg-config ruby-asciidoctor))
+    (append (list pkg-config)
+            (if (supported-package? ruby-asciidoctor)
+                (list ruby-asciidoctor)
+                '())))
    (inputs
     (list argon2
           json-c



reply via email to

[Prev in Thread] Current Thread [Next in Thread]