gnu: vpnc-scripts: Fix build with gcc-14.

* gnu/packages/vpn.scm (vpnc-scripts)[arguments]: In phase "build", relax
gcc-14's strictness.

Change-Id: I993326cfd1ed11ad8efaefdd9ca527e67f78c42b
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-02 14:28:33 +01:00
parent d9a0c0769c
commit c2287dfc7a
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -24,6 +24,7 @@
;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me@jeandudey.tech> ;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net> ;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2024 Allan Adair <allan@adair.no> ;;; Copyright © 2024 Allan Adair <allan@adair.no>
;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -669,7 +670,9 @@ (define-public vpnc-scripts
(delete 'configure) ; no configure script (delete 'configure) ; no configure script
(replace 'build (replace 'build
(lambda _ (lambda _
(invoke "gcc" "-o" "netunshare" "netunshare.c"))) (invoke "gcc" "-g" "-O2"
"-Wno-error=implicit-function-declaration"
"-o" "netunshare" "netunshare.c")))
(replace 'install (replace 'install
;; There is no Makefile; manually install the relevant files. ;; There is no Makefile; manually install the relevant files.
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)