~ruther/guix-local

216991afbd642218a3adb1149f41377b09c67442 — Janneke Nieuwenhuizen 1 year, 4 months ago e6d1cad
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
1 files changed, 10 insertions(+), 2 deletions(-)

M gnu/packages/video.scm
M gnu/packages/video.scm => gnu/packages/video.scm +10 -2
@@ 12,7 12,7 @@
;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
;;; Copyright © 2016, 2018, 2019, 2020, 2021 Eric Bavier <bavier@posteo.net>
;;; Copyright © 2016, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2016, 2024, 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2017 Feng Shu <tumashu@163.com>
;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>


@@ 2566,7 2566,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))