summaryrefslogtreecommitdiff
path: root/gnu/packages/flex.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-10-22 12:34:42 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-10-30 16:13:02 +0900
commit6faa102a045bde3eaedf9b6f9076be70abbe890e (patch)
treef5bbdbf6a2379c2fc6e2a7d0f9117994a0af9a39 /gnu/packages/flex.scm
parent81fcd98bac93c21d5435e521992d31dd32ca8db7 (diff)
gnu: flex: Apply a patch fixing a non-deterministic build failure.
* gnu/packages/patches/flex-fix-make-dependencies.patch: New patch. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/flex.scm (flex) [source]: Apply it, wrapping the origin in a bootstrap-origin call to avoid a circular dependency problem. Change-Id: I7b9994a9239bdafa5c7768b9f954870716c76ad7
Diffstat (limited to 'gnu/packages/flex.scm')
-rw-r--r--gnu/packages/flex.scm21
1 files changed, 12 insertions, 9 deletions
diff --git a/gnu/packages/flex.scm b/gnu/packages/flex.scm
index bc4498b6331..45ee7e7eaf0 100644
--- a/gnu/packages/flex.scm
+++ b/gnu/packages/flex.scm
@@ -26,6 +26,7 @@
#:use-module (guix gexp)
#:use-module (guix utils)
#:use-module (gnu packages)
+ #:use-module (gnu packages bootstrap)
#:use-module (gnu packages m4)
#:use-module (gnu packages man)
#:use-module (gnu packages bison)
@@ -35,15 +36,17 @@
(package
(name "flex")
(version "2.6.4")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "https://github.com/westes/flex"
- "/releases/download/v" version "/"
- "flex-" version ".tar.gz"))
- (sha256
- (base32
- "15g9bv236nzi665p9ggqjlfn4dwck5835vf0bbw2cz7h5c1swyp8"))))
+ (source (bootstrap-origin ;avoid a circular dependency
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/westes/flex"
+ "/releases/download/v" version "/"
+ "flex-" version ".tar.gz"))
+ (sha256
+ (base32
+ "15g9bv236nzi665p9ggqjlfn4dwck5835vf0bbw2cz7h5c1swyp8"))
+ (patches (search-patches "flex-fix-make-dependencies.patch")))))
(build-system gnu-build-system)
(inputs
(let ((bison-for-tests