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>
This commit is contained in:
Zheng Junjie 2025-07-06 13:32:41 +08:00 committed by Andreas Enge
parent 155ec6bc4f
commit a65aff9c95
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -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