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>
This commit is contained in:
Maxime Devos 2021-07-14 13:12:55 +02:00 committed by Mathieu Othacehe
parent deb4f0a595
commit ad7c6d290e
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -100,6 +100,13 @@ (define-public libgpg-error
(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