This is an automated email from the git hooks/post-receive script.

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

The following commit(s) were added to refs/heads/core-packages-team by this 
push:
     new e5cf02ca0a gnu: polkit: Fix build with gcc-14.
e5cf02ca0a is described below

commit e5cf02ca0ac4b19cab8e4e14d69b83f1b0aa6065
Author: Janneke Nieuwenhuizen <[email protected]>
AuthorDate: Mon Dec 30 13:40:41 2024 +0100

    gnu: polkit: Fix build with gcc-14.
    
    * gnu/packages/polkit.scm (polkit)[arguments]: Add phase
    "setup-build-environment" to relax gcc-14'-s strictness.
    
    Change-Id: I56f100f416d17a73fe8daae4775251800e713820
---
 gnu/packages/polkit.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/polkit.scm b/gnu/packages/polkit.scm
index 883688a7af..3798492364 100644
--- a/gnu/packages/polkit.scm
+++ b/gnu/packages/polkit.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <[email protected]>
 ;;; Copyright © 2022 Marius Bakke <[email protected]>
 ;;; Copyright © 2021, 2022 Maxim Cournoyer <[email protected]>
+;;; Copyright © 2024 Janneke Nieuwenhuizen <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -114,6 +115,10 @@
                      '()))
       #:phases
       #~(modify-phases %standard-phases
+          (add-before 'configure 'setup-build-environment
+            (lambda _
+              (setenv "CFLAGS"
+                      "-g -O2 -Wno-error=implicit-function-declaration")))
           (add-before 'check 'patch-bash
             (lambda _
               (substitute* (list "subprojects/mocklibc-1.0/bin/mocklibc"

Reply via email to