guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

203/249: gnu: mplayer: Fix build with gcc-14.


From: guix-commits
Subject: 203/249: gnu: mplayer: Fix build with gcc-14.
Date: Mon, 6 Jan 2025 07:51:50 -0500 (EST)

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

commit e33bc081cf4fdc09c46933a9d1b618a50cbe9325
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sat Jan 4 17:18:05 2025 +0100

    gnu: mplayer: Fix build with gcc-14.
    
    * gnu/packages/video.scm (mplayer)[arguments]: In stage "configure", fixup
    "CFLAGS" in "config.mak" to relax gcc-14's strictness.
    
    Change-Id: I21e66222770182bfdb09092ef04b372d12690710
---
 gnu/packages/video.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 7f10cc330a..97b2b0fc06 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -2624,7 +2624,15 @@ streaming protocols.")
                 (("#! /bin/sh") (string-append "#!" (which "sh"))))
               (setenv "SHELL" (which "bash"))
               (setenv "CONFIG_SHELL" (which "bash"))
-              (apply invoke "./configure" configure-flags))))))
+              (apply invoke "./configure" configure-flags)
+              ;; Adding CFLAGS to #:configure-flags, or setting it in the
+              ;; enviroment does not work.  Adding CFLAGS to #:make-flags
+              ;; breaks the build.
+              (substitute* "config.mak"
+                (("CFLAGS *=" all)
+                 (string-append all
+                                " -Wno-error=incompatible-pointer-types"
+                                " -Wno-error=int-conversion"))))))))
     ;; FIXME: Add additional inputs once available.
     (native-inputs
      (list pkg-config yasm))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]