Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/polkit: fix install of polkit.its
@ 2021-08-10 14:58 Fabrice Fontaine
  2021-08-12 21:19 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-08-10 14:58 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine, Marek Belisko

Install polkit.its in $(HOST_DIR)/share/gettext/its as suggested by
https://gitlab.gnome.org/GNOME/gvfs/-/issues/508 to avoid the following
build failure with gvfs because polkit installs polkit.its in
$(STAGING_DIR)/usr/share/gettext:

FAILED: daemon/org.gtk.vfs.file-operations.policy
/tmp/instance-3/output-1/host/bin/meson --internal msgfmthelper daemon/org.gtk.vfs.file-operations.policy.in daemon/org.gtk.vfs.file-operations.policy xml /tmp/instance-3/output-1/build/gvfs-1.44.1/po
msgfmt: cannot locate ITS rules for daemon/org.gtk.vfs.file-operations.policy.in

Fixes:
 - http://autobuild.buildroot.org/results/ba9a8b31e6e275d4db1905241a9153a0513eb335

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/polkit/polkit.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk
index d5b3955ddb..23adb534d0 100644
--- a/package/polkit/polkit.mk
+++ b/package/polkit/polkit.mk
@@ -41,6 +41,14 @@ else
 POLKIT_CONF_OPTS += --with-authfw=shadow
 endif
 
+# polkit.its is needed for gvfs and must be installed in $(HOST_DIR)
+# and not $(STAGING_DIR)
+define POLKIT_INSTALL_ITS
+	$(INSTALL) -D -m 644 $(@D)/data/polkit.its \
+		$(HOST_DIR)/share/gettext/its
+endef
+POLKIT_POST_INSTALL_TARGET_HOOKS += POLKIT_INSTALL_ITS
+
 define POLKIT_USERS
 	polkitd -1 polkitd -1 * - - - Polkit Daemon
 endef
-- 
2.30.2

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/polkit: fix install of polkit.its
  2021-08-10 14:58 [Buildroot] [PATCH 1/1] package/polkit: fix install of polkit.its Fabrice Fontaine
@ 2021-08-12 21:19 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-08-12 21:19 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Marek Belisko, buildroot

On Tue, 10 Aug 2021 16:58:06 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> +# polkit.its is needed for gvfs and must be installed in $(HOST_DIR)
> +# and not $(STAGING_DIR)
> +define POLKIT_INSTALL_ITS
> +	$(INSTALL) -D -m 644 $(@D)/data/polkit.its \
> +		$(HOST_DIR)/share/gettext/its
> +endef
> +POLKIT_POST_INSTALL_TARGET_HOOKS += POLKIT_INSTALL_ITS

It's never great to see a "post install target" hook install stuff to
HOST_DIR, but that's the perils of this gettext machinery I'm afraid.
So applied to master, thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-12 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-10 14:58 [Buildroot] [PATCH 1/1] package/polkit: fix install of polkit.its Fabrice Fontaine
2021-08-12 21:19 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox