[Buildroot] [PATCH 08/12] package/polkit: add host variant
aduskett at gmail.com
aduskett at gmail.com
Thu Jul 23 01:08:06 UTC 2020
From: Adam Duskett <Aduskett at gmail.com>
Building a host variant of polkit ensures that building the new version of the
udisks package succeeds on distributions that do not provide a new enough
version of Polkit.
Signed-off-by: Adam Duskett <Aduskett at gmail.com>
---
package/polkit/polkit.mk | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk
index 3ae42b2312..5f9914482a 100644
--- a/package/polkit/polkit.mk
+++ b/package/polkit/polkit.mk
@@ -14,6 +14,9 @@ POLKIT_INSTALL_STAGING = YES
POLKIT_DEPENDENCIES = \
libglib2 host-intltool expat spidermonkey $(TARGET_NLS_DEPENDENCIES)
+HOST_POLKIT_DEPENDENCIES = \
+ host-libglib2 host-intltool host-expat host-spidermonkey
+
# spidermonkey needs C++11
POLKIT_CONF_ENV = \
CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" \
@@ -26,6 +29,17 @@ POLKIT_CONF_OPTS = \
--disable-libelogind \
--disable-libsystemd-login
+# The only reason for building the host polkit is to build udisks.
+# As such, only the bare minimum is enabled.
+HOST_POLKIT_CONF_OPTS = \
+ --with-os-type=unknown \
+ --disable-man-pages \
+ --disable-examples \
+ --disable-libelogind \
+ --disable-libsystemd-login \
+ --disable-introspection \
+ --with-authfw=shadow
+
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
POLKIT_CONF_OPTS += --enable-introspection
POLKIT_DEPENDENCIES += gobject-introspection
@@ -57,3 +71,4 @@ define POLKIT_INSTALL_INIT_SYSTEMD
endef
$(eval $(autotools-package))
+$(eval $(host-autotools-package))
--
2.26.2
More information about the buildroot
mailing list