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
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-04 17:18:05 +01:00
parent 12621b69c2
commit e33bc081cf
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -2624,7 +2624,15 @@ (define-public mplayer
(("#! /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))