guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: grub: Fix build failure with recent flex.


From: Leo Famulari
Subject: 01/01: gnu: grub: Fix build failure with recent flex.
Date: Wed, 12 Jul 2017 18:25:26 -0400 (EDT)

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

commit 0a3aca47d9baed5f3cd25c6a6489a625776fd26e
Author: Leo Famulari <address@hidden>
Date:   Tue Mar 7 22:38:35 2017 -0500

    gnu: grub: Fix build failure with recent flex.
    
    * gnu/packages/flex.scm (flex-2.6.1): New variable.
    * gnu/packages/bootloaders.scm (grub)[native-inputs]: Use flex-2.6.1.
---
 gnu/packages/bootloaders.scm |  5 ++++-
 gnu/packages/flex.scm        | 13 +++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 2d8d89f..76dad29 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -118,7 +118,10 @@
     (native-inputs
      `(("unifont" ,unifont)
        ("bison" ,bison)
-       ("flex" ,flex)
+       ;; Due to a bug in flex >= 2.6.2, GRUB must be built with an older flex:
+       ;; <http://lists.gnu.org/archive/html/grub-devel/2017-02/msg00133.html>
+       ;; TODO Try building with flex > 2.6.4.
+       ("flex" ,flex-2.6.1)
        ("texinfo" ,texinfo)
        ("help2man" ,help2man)
 
diff --git a/gnu/packages/flex.scm b/gnu/packages/flex.scm
index fdda5f3..b09ac0b 100644
--- a/gnu/packages/flex.scm
+++ b/gnu/packages/flex.scm
@@ -85,3 +85,16 @@ regular expressions for each rule.  Whenever it finds a 
match, it
 executes the corresponding C code.")
     (license (non-copyleft "file://COPYING"
                            "See COPYING in the distribution."))))
+
+(define-public flex-2.6.1
+  (package
+    (inherit flex)
+    (version "2.6.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/westes/flex";
+                                  "/releases/download/v" version "/"
+                                  "flex-" version ".tar.xz"))
+             (sha256
+              (base32
+               "0gqhk4vkwy4gl9xbpgkljph8c0a5kpijz6wd0p5r9q202qn42yic"))))))



reply via email to

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