guix-commits
[Top][All Lists]
Advanced

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

08/20: libgpg-error: Fix cross-compilation error.


From: guix-commits
Subject: 08/20: libgpg-error: Fix cross-compilation error.
Date: Mon, 12 Jul 2021 11:15:42 -0400 (EDT)

mothacehe pushed a commit to branch wip-meson
in repository guix.

commit dcd51e1aa3a77e138fc7b88af6d7f8ba10b8bf2a
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sun Jul 11 13:47:11 2021 +0200

    libgpg-error: Fix cross-compilation error.
    
    TODO: inform upstream about the cross-compilation error.
    
    * gnu/packages/gnupg.scm
      (libgpg-error)[arguments]{fix-gen-lock-obj.sh}: Prevent generated
      header files from being sprinkled with ā€˜\cā€™.
    
    Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 gnu/packages/gnupg.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index 1a7c682..bb6fa46 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -100,6 +100,13 @@
                       (guix build utils))
            #:phases
            (modify-phases %standard-phases
+             ;; If this is left out, some generated header
+             ;; files will be sprinkled with ā€˜\cā€™, which
+             ;; the compiler won't like.
+             (add-after 'unpack 'fix-gen-lock-obj.sh
+               (lambda _
+                 (substitute* "src/gen-lock-obj.sh"
+                   (("if test -n `echo -n`") "if ! test -n `echo -n`"))))
              ;; When cross-compiling, some platform specific properties cannot
              ;; be detected. Create a symlink to the appropriate platform
              ;; file if required. Note that these platform files depend on



reply via email to

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