andreas pushed a commit to branch core-packages-team
in repository guix.
commit 9098551efc4ac506be27ecf010e8a8ec175d7852
Author: Janneke Nieuwenhuizen <[email protected]>
AuthorDate: Mon Dec 30 21:30:12 2024 +0100
gnu: accountsservice: Fix build with gcc-14.
* gnu/packages/freedesktop.scm (accountsservice)[arguments]: Add phase
"relax-gcc-14-strictness".
Change-Id: I19ceb499479911041d88e375d8989861713133d2
---
gnu/packages/freedesktop.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 0e61149875..07cc4a4886 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -1988,6 +1988,10 @@ message bus.")
(search-input-file inputs "bin/passwd"))
(("/usr/bin/chage")
(search-input-file inputs "bin/chage")))))
+ (add-before 'configure 'relax-gcc-14-strictness
+ (lambda _
+ (setenv "CFLAGS"
+ "-g -O2 -Wno-error=implicit-function-declaration")))
(add-after 'install 'wrap-with-xdg-data-dirs
;; This is to allow accountsservice finding extensions, which
;; should be installed to the system profile.