diff mbox series

[meta-oe] xdg-desktop-portal: fix bwrap path

Message ID 20230325092639.2725097-1-f_l_k@t-online.de
State Under Review
Headers show
Series [meta-oe] xdg-desktop-portal: fix bwrap path | expand

Commit Message

Markus Volk March 25, 2023, 9:26 a.m. UTC
bwrap path is read from STAGING_BINDIR_NATIVE. This commit fixes reproducibility and runtime

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 .../xdg-desktop-portal/xdg-desktop-portal_1.16.0.bb    | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.16.0.bb b/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.16.0.bb
index e16f9f372..0b3a93ab3 100644
--- a/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.16.0.bb
+++ b/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.16.0.bb
@@ -13,7 +13,6 @@  DEPENDS = " \
     pipewire \
     dbus-native \
     fuse3 \
-    bubblewrap-native \
     xmlto-native \
     flatpak \
     python3-dbus-native \
@@ -37,3 +36,12 @@  S = "${WORKDIR}/git"
 SRCREV = "88af6c8ca4106fcf70925355350a669848e9fd5a"
 
 FILES:${PN} += "${libdir}/systemd ${datadir}/dbus-1"
+
+EXTRA_OEMESON += "--cross-file=${WORKDIR}/meson-${PN}.cross"
+
+do_write_config:append() {
+    cat >${WORKDIR}/meson-${PN}.cross <<EOF
+[binaries]
+bwrap = '${bindir}/bwrap'
+EOF
+}