guix-commits
[Top][All Lists]
Advanced

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

06/14: gnu: yubikey-personalization: Fix build with GCC 10.


From: guix-commits
Subject: 06/14: gnu: yubikey-personalization: Fix build with GCC 10.
Date: Tue, 18 May 2021 16:25:49 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 57e004053769cfed2aa5d679629cc5528a5bd4f2
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon May 17 20:48:00 2021 +0200

    gnu: yubikey-personalization: Fix build with GCC 10.
    
    * gnu/packages/security-token.scm (yubikey-personalization)[source](modules,
    snippet): New fields.
---
 gnu/packages/security-token.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm
index 06da3e8..dfa43bb 100644
--- a/gnu/packages/security-token.scm
+++ b/gnu/packages/security-token.scm
@@ -370,7 +370,14 @@ and other operations.  It includes a library and a 
command-line tool.")
                     "/Releases/ykpers-" version ".tar.gz"))
               (sha256
                (base32
-                "14wvlwqnwj0gllkpvfqiy8ns938bwvjsz8x1hmymmx32m074vj0f"))))
+                "14wvlwqnwj0gllkpvfqiy8ns938bwvjsz8x1hmymmx32m074vj0f"))
+              (modules '((guix build utils)))
+              (snippet
+               ;; Fix build with GCC 10, remove for versions > 1.20.0.
+               '(begin
+                  (substitute* "ykpers-args.h"
+                    (("^const char")
+                     "extern const char"))))))
     (build-system gnu-build-system)
     (arguments
      '(#:configure-flags (list (string-append "--with-udevrulesdir="



reply via email to

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