diff options
author | Marius Bakke <marius@gnu.org> | 2022-08-29 15:58:44 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-08-30 20:11:18 +0200 |
commit | d54e53739004daf7eec0629fedadf054fb7f010d (patch) | |
tree | a11086ecd4ea94bb9b0d7e37be64726297947cc4 /gnu | |
parent | f3938c91556904c9462f242089fafe3a36e657fb (diff) |
gnu: polkit: Fix cross-compilation.
This is a follow-up to commit e8f4e1808563eb3c1cd28d419a1f349412af4a0d.
* gnu/packages/polkit.scm (polkit)[arguments]: Pass -Dintrospection instead of
-Dos-type when cross-compiling.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/polkit.scm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gnu/packages/polkit.scm b/gnu/packages/polkit.scm index abbe878b79..620c22022f 100644 --- a/gnu/packages/polkit.scm +++ b/gnu/packages/polkit.scm @@ -82,11 +82,14 @@ #~(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 |