From e33bc081cf4fdc09c46933a9d1b618a50cbe9325 Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Sat, 4 Jan 2025 17:18:05 +0100 Subject: [PATCH] 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 @@ (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))