janneke pushed a commit to branch core-packages-team
in repository guix.
commit c38ffc28c71b0cf92f41d3dc8525be3fbe059eaf
Author: Janneke Nieuwenhuizen <[email protected]>
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 28f8c758b8..5acd3f997f 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11992,6 +11992,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")