janneke pushed a commit to branch core-packages-team
in repository guix.

commit a1dd9ba55fe8b9703519c1af2b520790bffd1531
Author: Janneke Nieuwenhuizen <jann...@gnu.org>
AuthorDate: Sat Jan 4 16:26:39 2025 +0100

    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
---
 gnu/packages/mp3.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index 9dfce6313f..2735599a9d 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2022 John Kehayias <john.kehay...@protonmail.com>
 ;;; Copyright © 2022 Joeke de Graaf <jo...@posteo.net>
 ;;; Copyright © 2023 Zheng Junjie <873216...@qq.com>
+;;; Copyright © 2025 Janneke Nieuwenhuizen <jann...@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,14 @@ 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
+              #$(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)

Reply via email to