From 21e4263207eeb599c48cc047dd9f5bbcbeb703c4 Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Mon, 30 Dec 2024 13:40:41 +0100 Subject: [PATCH] gnu: polkit: Fix build with gcc-14. * gnu/packages/polkit.scm (polkit)[arguments]: Add phase "relax-gcc-14-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 7113832e7ef..1f0388636e7 100644 --- a/gnu/packages/polkit.scm +++ b/gnu/packages/polkit.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2022 Marius Bakke ;;; Copyright © 2021, 2022 Maxim Cournoyer ;;; Copyright © 2025 Josep Bigorra +;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -156,6 +157,10 @@ able to request elevated privileges.") '())) #:phases #~(modify-phases %standard-phases + (add-before 'configure 'relax-gcc-14-strictness + (lambda _ + (setenv "CFLAGS" + "-g -O2 -Wno-error=implicit-function-declaration"))) (add-before 'check 'patch-bash (lambda _ (substitute* (list "subprojects/mocklibc-1.0/bin/mocklibc"