diff options
author | Andreas Enge <andreas@enge.fr> | 2025-07-26 12:32:26 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-07-26 12:32:26 +0200 |
commit | 3a9f4e15adbe2551fecd15daf391b0478876a22b (patch) | |
tree | 83cb37550d21c2cfef8f0d2e1dc56f16878bb316 | |
parent | d5124a4fbb562fe5922139d2fd2d7e74b54e4b8c (diff) |
gnu: uniutils: Fix build with gcc-14.
* gnu/packages/textutils.scm (uniutils)[arguments]
<#:configure-flags>: Add CFLAGS.
<#:phases>{gcc14}: New phase.
Change-Id: I7f8eddf584d5006b9be1a07ec5a48197b54884fe
-rw-r--r-- | gnu/packages/textutils.scm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index a54a763610..c693e043c4 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -506,9 +506,23 @@ useful when it is desired to reformat numbers. (base32 "0z4ibnd2zzya489vl84cfh82bmdwdhf0isf1myqwrs3s9s0vqyyn")))) (build-system gnu-build-system) (arguments - (list #:configure-flags #~(list "--disable-dependency-tracking") + (list #:configure-flags + #~(list "--disable-dependency-tracking" + "CFLAGS=-g -O2 -Wno-error=implicit-int") #:phases #~(modify-phases %standard-phases + (add-before 'build 'gcc14 + (lambda _ + (substitute* "uniname.c" + (("#include <unistd.h>" all) + (string-append all "\n#include <ctype.h>"))) + (substitute* "unifuzz.c" + (("#include <unistd.h>" all) + (string-append all "\n#include <time.h>")) + (("^Emit") "void Emit")) + (substitute* "putu8.c" + (("void" all) + (string-append "#include <stdio.h>\n" all))))) (add-after 'build 'fix-paths (lambda* (#:key outputs inputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) |