From e9915d6cfeee2084d24f5bf4703c245e82e2c559 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Sat, 26 Jul 2025 22:15:25 +0200 Subject: [PATCH] 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 --- gnu/packages/version-control.scm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 3b96d4f15e042fb9c5158e60a31620bd00480780..434dc4f4738936c7d8eb8b916ee11257f262ffca 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -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")