From d54e53739004daf7eec0629fedadf054fb7f010d Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Mon, 29 Aug 2022 15:58:44 +0200 Subject: 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. --- gnu/packages/polkit.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'gnu') 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 -- cgit v1.2.3