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

commit 427441eae22e4b2196d7b36965e99a6f7ccd70b3
Author: Janneke Nieuwenhuizen <jann...@gnu.org>
AuthorDate: Sun Jan 5 15:21:23 2025 +0100

    gnu: cheese: Fix build with gcc-14.
    
    * gnu/packages/gnome.scm (cheese)[arguments]: Add stage
    "relax-gcc-14-strictness".
    
    Change-Id: Idaf34cfe9f91f055a1ab570c003bc15394f7021f
---
 gnu/packages/gnome.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 86d368ba8f..ef50503e16 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11828,6 +11828,10 @@ photo-booth-like software, such as Cheese.")
                    (substitute* "meson.build"
                      (("gtk_update_icon_cache: true")
                       "gtk_update_icon_cache: false"))))
+               (add-before 'configure 'relax-gcc-14-strictness
+                 (lambda _
+                   (setenv "CFLAGS"
+                           "-g -O2 -Wno-error=incompatible-pointer-types")))
                (add-after 'install 'wrap-cheese
                  (lambda* (#:key inputs outputs #:allow-other-keys)
                    (wrap-program (search-input-file outputs "bin/cheese")

Reply via email to