1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-30 22:35:57 +02:00

gnu: cvs: Fix build with gcc-14.

* gnu/packages/version-control.scm (cvs)[arguments]: Use gexps.
<#:configure-flags>: Add CFLAGS/
<#:phases>: Add phase to fix header inclusion.

Change-Id: Ic6540c94e337f22ec2c574f58d734de76886654f
This commit is contained in:
Andreas Enge
2025-07-26 22:15:25 +02:00
parent 73a361bfb1
commit e9915d6cfe
+13 -2
View File
@@ -3185,8 +3185,19 @@ patch associated with a particular revision of an RCS file.")
(build-system gnu-build-system)
(arguments
;; XXX: The test suite looks flawed, and the package is obsolete anyway.
'(#:tests? #f
#:configure-flags (list "--with-external-zlib")))
(list
#:tests? #f
#:configure-flags
#~(list
"--with-external-zlib"
"CFLAGS=-g -O2 -Wno-error=implicit-function-declaration")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-include
(lambda _
(substitute* "lib/sighandle.c"
(("#ifdef STDC_HEADERS" all)
(string-append "#define STDC_HEADERS 1\n" all))))))))
(inputs (list zlib nano)) ; the default editor
(home-page "https://cvs.nongnu.org")
(synopsis "Historical centralized version control system")