diff options
author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2025-01-04 16:26:39 +0100 |
---|---|---|
committer | Zheng Junjie <z572@z572.online> | 2025-06-22 16:32:55 +0800 |
commit | d41f5a188787e40bfcc36f68bce349562e5beacf (patch) | |
tree | 9881e6801900f25ba9190e7f3d8afe0970902b93 | |
parent | bde3623f5395074a97fe01b9d56aaca8f2efee70 (diff) |
gnu: mpg321: Fix build with gcc-14.
* gnu/packages/mp3.scm (mpg321)[arguments]: Use G-Expressions. Add CFLAGS
to #:configure-flags to relax gcc-14's strictness.
Change-Id: I1911c96df438c0b65905468201d759904e11a08f
Modified-by: Zheng Junjie <z572@z572.online>
-rw-r--r-- | gnu/packages/mp3.scm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm index 9dfce6313f..a435620e34 100644 --- a/gnu/packages/mp3.scm +++ b/gnu/packages/mp3.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com> ;;; Copyright © 2022 Joeke de Graaf <joeke@posteo.net> ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -62,6 +63,7 @@ #:use-module (gnu packages video) ;ffmpeg #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system copy) @@ -474,7 +476,15 @@ command-line tool as well as a C library, libmpg123.") (search-patches "mpg321-CVE-2019-14247.patch" "mpg321-gcc-10.patch")))) (build-system gnu-build-system) - (arguments '(#:configure-flags '("--disable-alsa"))) + (arguments + (list #:configure-flags + #~(list + ;; Relax gcc-14's strictness. + #$(string-append "CFLAGS=-g -O2" + " -Wno-error=implicit-function-declaration" + " -Wno-error=implicit-int" + " -Wno-error=int-conversion") + "--disable-alsa"))) (inputs `(("zlib" ,zlib) ("libmad" ,libmad) |