gnu: nvi: Fix build with gcc-14.

* gnu/packages/nvi.scm (nvi)[arguments]: Add CFLAGS to #:make-flags to relax
gcc-14's strictness.

Change-Id: I8572a13360c1571c5afe29789061d6277d1fb977
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-01 11:46:51 +01:00
parent 121312b2fa
commit a9c116d41e
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Marek Benc <merkur32@gmail.com>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@ -71,6 +72,13 @@ (define-public nvi
,@(if (%current-target-system)
'("vi_cv_sprintf_count=yes")
'()))
#:make-flags
(list
;; nvi's configure chokes on passing CFLAGS and ignores
;; CFLAGS set in the environment
(string-append "CFLAGS=-g -O2"
" -Wno-error=implicit-function-declaration"
" -Wno-error=incompatible-pointer-types"))
#:phases
(modify-phases %standard-phases
(add-before 'configure 'fix-configure
@ -87,8 +95,7 @@ (define-public nvi
,(version-major+minor
(package-version automake))
"/" file) "."))
'("config.sub")))
#t)))))
'("config.sub"))))))))
(inputs
(list bdb ncurses))
(native-inputs