From 6ee4a15ce28b7f09fa80aad05276ad347a182cbd Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Sun, 8 Oct 2023 05:03:57 +0200 Subject: [PATCH] gnome-control-center: Fix polkit gettext issue polkit.its and polkit.loc are taken from host. This should be fine as long as the host provides these files. At least on fedora 38 they are not installed by default and configure fails with: | ../gnome-control-center-45.0/meson.build:205:6: ERROR: Command `/home/flk/poky/build/tmp/work/corei7-64-poky-linux/gnome-control-center/45.0/recipe-sysroot-native/usr/bin/nativepython3 /home/flk/poky/build/tmp/work/corei7-64-poky-linux/gnome-control-center/45.0/gnome-control-center-45.0/build-aux/meson/find_xdg_file.py gettext/its/polkit.its` failed with status 1. | | A full log can be found at /home/flk/poky/build/tmp/work/corei7-64-poky-linux/gnome-control-center/45.0/build/meson-logs/meson-log.txt | ERROR: meson failed | WARNING: /home/flk/poky/build/tmp/work/corei7-64-poky-linux/gnome-control-center/45.0/temp/run.do_configure.6974:182 exit 1 from 'exit 1' export XDG_DATA_DIRS to avoid this issue https://gitlab.gnome.org/GNOME/gnome-control-center/-/blob/main/meson.build?ref_type=heads#L203 https://gitlab.gnome.org/GNOME/gnome-control-center/-/blob/main/build-aux/meson/find_xdg_file.py?ref_type=heads Signed-off-by: Markus Volk Signed-off-by: Khem Raj --- .../gnome-control-center/gnome-control-center_45.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_45.0.bb b/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_45.0.bb index 1122ee5ea0..29c9f3c48c 100644 --- a/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_45.0.bb +++ b/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_45.0.bb @@ -48,6 +48,8 @@ PACKAGECONFIG[wayland] = "-Dwayland=true, -Dwayland=false, wayland" EXTRA_OEMESON += "-Doe_sysroot=${STAGING_DIR_HOST}" +export XDG_DATA_DIRS = "${STAGING_DATADIR}" + USERADD_PACKAGES = "${PN}" USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd"