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

commit fa807242da31e7c343c29dca311a10e9f937b9cf
Author: Janneke Nieuwenhuizen <[email protected]>
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 | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 47e1f68095..f35d937d2f 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -12,7 +12,7 @@
 ;;; Copyright © 2016 Dmitry Nikolaev <[email protected]>
 ;;; Copyright © 2016, 2017 Nikita <[email protected]>
 ;;; Copyright © 2016, 2018, 2019, 2020, 2021 Eric Bavier <[email protected]>
-;;; Copyright © 2016, 2024 Janneke Nieuwenhuizen <[email protected]>
+;;; Copyright © 2016, 2024, 2025 Janneke Nieuwenhuizen <[email protected]>
 ;;; Copyright © 2017 Feng Shu <[email protected]>
 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <[email protected]>
 ;;; Copyright © 2017 Chris Marusich <[email protected]>
@@ -2623,7 +2623,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