From 4f087a608eb7f4778c1c20d7089be83b33e2a625 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 1 Jan 2021 22:06:07 +0100 Subject: [PATCH] polkit: don't build with gobject-introspection when cross-compiling gobject-introspection doesn't currently cross-compile (see https://github.com/NixOS/nixpkgs/pull/88222), but polkit is somewhat essential for many system components. By disabling gobject-introspection when cross-compiling, we get it to build. --- pkgs/development/libraries/polkit/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/polkit/default.nix b/pkgs/development/libraries/polkit/default.nix index 6aea7053014..2ec49a2d3c0 100644 --- a/pkgs/development/libraries/polkit/default.nix +++ b/pkgs/development/libraries/polkit/default.nix @@ -2,7 +2,8 @@ , intltool, spidermonkey_78, gobject-introspection, libxslt, docbook_xsl, dbus , docbook_xml_dtd_412, gtk-doc, coreutils , useSystemd ? (stdenv.isLinux && !stdenv.hostPlatform.isMusl), systemd, elogind -, withIntrospection ? true +# needed until gobject-introspection does cross-compile (https://github.com/NixOS/nixpkgs/pull/88222) +, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform) # A few tests currently fail on musl (polkitunixusertest, polkitunixgrouptest, polkitidentitytest segfault). # Not yet investigated; it may be due to the "Make netgroup support optional" # patch not updating the tests correctly yet, or doing something wrong,