[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: recutils: Adjust Gnulib to libc 2.28.
From: |
Ludovic Courtès |
Subject: |
01/01: gnu: recutils: Adjust Gnulib to libc 2.28. |
Date: |
Wed, 3 Oct 2018 09:27:48 -0400 (EDT) |
civodul pushed a commit to branch core-updates
in repository guix.
commit 944a3a8b8e36e1e1b9632a774c9ae4e63647d21c
Author: Ludovic Courtès <address@hidden>
Date: Wed Oct 3 15:22:44 2018 +0200
gnu: recutils: Adjust Gnulib to libc 2.28.
Fixes <https://bugs.gnu.org/32776>.
* gnu/packages/databases.scm (recutils)[modules, snippet]: New fields.
---
gnu/packages/databases.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index b6e5012..fecf661 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -923,7 +923,23 @@ organized in a hash table or B+ tree.")
version ".tar.gz"))
(sha256
(base32
- "0cdwa4094x3yx7vn98xykvnlp9rngvd58d19vs3vh5hrvggccg93"))))
+ "0cdwa4094x3yx7vn98xykvnlp9rngvd58d19vs3vh5hrvggccg93"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Adjust the bundled gnulib to work with glibc 2.28. See
e.g.
+ ;; "m4-gnulib-libio.patch". This is a phase rather than
patch
+ ;; or snippet to work around <https://bugs.gnu.org/32347>.
+ (substitute* (find-files "lib" "\\.c$")
+ (("#if defined _IO_ftrylockfile")
+ "#if defined _IO_EOF_SEEN"))
+ (substitute* "lib/stdio-impl.h"
+ (("^/\\* BSD stdio derived implementations")
+ (string-append "#if !defined _IO_IN_BACKUP && defined
_IO_EOF_SEEN\n"
+ "# define _IO_IN_BACKUP 0x100\n"
+ "#endif\n\n"
+ "/* BSD stdio derived implementations")))
+ #t))))
(build-system gnu-build-system)
;; Running tests in parallel leads to test failures and crashes in