gnu: polkit: Fix cross-compilation.

This is a follow-up to commit e8f4e18085.

* gnu/packages/polkit.scm (polkit)[arguments]: Pass -Dintrospection instead of
-Dos-type when cross-compiling.
This commit is contained in:
Marius Bakke 2022-08-29 15:58:44 +02:00
parent f3938c9155
commit d54e537390
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -82,11 +82,14 @@ (define-public polkit
#~(list "--sysconfdir=/etc"
"-Dman=true"
"-Dtests=true"
;; ERROR: Pkg-config binary for machine
;; MachineChoice.BUILD not found, giving up. Just
;; disable introspection for now.
;; Work around cross-compilation failure. The build system
;; probes for the _target_ gobject-introspection, but if we
;; change it to native, Meson fails with:
;; ERROR: Pkg-config binary for machine
;; MachineChoice.BUILD not found, giving up.
;; Just disable introspection for now.
#$@(if (%current-target-system)
'("-Dos-type=unknown")
'("-Dintrospection=false")
'()))
#:phases
#~(modify-phases %standard-phases