guix-commits
[Top][All Lists]
Advanced

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

03/03: gnu: idutils: Fix building with address@hidden


From: Efraim Flashner
Subject: 03/03: gnu: idutils: Fix building with address@hidden
Date: Sat, 10 Nov 2018 13:19:12 -0500 (EST)

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

commit 1de2937283b3f19abf50af77f955a5dc4313755a
Author: Efraim Flashner <address@hidden>
Date:   Sat Nov 10 20:18:08 2018 +0200

    gnu: idutils: Fix building with address@hidden
    
    * gnu/packages/idutils.scm (idutils)[source]: Add snippet to patch
    bundled gnulib for address@hidden
---
 gnu/packages/idutils.scm | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/idutils.scm b/gnu/packages/idutils.scm
index abab0c1..8171559 100644
--- a/gnu/packages/idutils.scm
+++ b/gnu/packages/idutils.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2012, 2013, 2015 Ludovic Courtès <address@hidden>
+;;; Copyright © 208 Efraim Flashner <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -35,7 +36,20 @@
              (sha256
               (base32
                "1hmai3422iaqnp34kkzxdnywl7n7pvlxp11vrw66ybxn9wxg90c1"))
-             (patches (search-patches "diffutils-gets-undeclared.patch"))))
+             (patches (search-patches "diffutils-gets-undeclared.patch"))
+             (modules '((guix build utils)))
+             (snippet
+              '(begin
+                 (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)
     (native-inputs `(("emacs" ,emacs-minimal)))
     (home-page "https://www.gnu.org/software/idutils/";)



reply via email to

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