From d41f5a188787e40bfcc36f68bce349562e5beacf Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Sat, 4 Jan 2025 16:26:39 +0100 Subject: [PATCH] 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 --- gnu/packages/mp3.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm index 9dfce6313fb..a435620e347 100644 --- a/gnu/packages/mp3.scm +++ b/gnu/packages/mp3.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2022 John Kehayias ;;; Copyright © 2022 Joeke de Graaf ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2025 Janneke Nieuwenhuizen ;;; ;;; 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)