summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Junjie <z572@z572.online>2025-07-06 13:32:41 +0800
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:41 +0200
commita65aff9c9572ead0ef4a4a32c888e003975a476a (patch)
tree652a4ffbae061cf9aae9f4b59d0ce72202303a97
parent155ec6bc4fc2fb85d93ec41c0abba567f5bbdacd (diff)
gnu: xdg-desktop-portal: Fix build with gcc-14.
* gnu/packages/freedesktop.scm (xdg-desktop-portal): [arguments]: Add relax-gcc-14-strictness phase. Change-Id: I3f0f632d0ac60f36c3544c1cae000a0c96200a53 Signed-off-by: Andreas Enge <andreas@enge.fr>
-rw-r--r--gnu/packages/freedesktop.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index e729d0c66e..0d2dc5ce40 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -34,7 +34,7 @@
;;; Copyright © 2022 muradm <mail@muradm.net>
;;; Copyright © 2023 Alex Devaure <ajadevaure@gmail.com>
;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
-;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2024-2025 Zheng Junjie <z572@z572.online>
;;; Copyright © 2022 Samuel Culpepper <sculpepper@newstore.com>
;;; Copyright © 2024 aurtzy <aurtzy@gmail.com>
;;; Copyright © 2024 Dariqq <dariqq@posteo.net>
@@ -3329,6 +3329,10 @@ compatible with the well-known scripts of the same name.")
(for-each (lambda (po)
(chmod po #o666))
(find-files "po" "\\.po$"))))
+ (add-before 'configure 'relax-gcc-14-strictness
+ (lambda _
+ (setenv "CFLAGS"
+ "-g -O2 -Wno-error=incompatible-pointer-types")))
(add-after 'unpack 'set-home-directory
(lambda _ (setenv "HOME" "/tmp"))))))
(native-inputs