diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-02-08 15:51:35 +0100 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2026-02-12 13:38:12 +0530 |
| commit | cdde87bb97e3f798fd0ae5bd9bb2fe14d83e07f1 (patch) | |
| tree | e7a2b15dc76694906ef2e2808d90aa9a1265d86f /meta-gnome | |
| parent | fe7623f3bbf20ade64bfaff1ac4e4225e8dc5f35 (diff) | |
| download | meta-openembedded-cdde87bb97e3f798fd0ae5bd9bb2fe14d83e07f1.tar.gz | |
mutter: fix profiler PACKAGECONFIG
In case "profiler" PACKAGECONFIG is enabled, the build fails with
the following error:
| ninja: error: '/usr/share/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml', needed by 'src/meta-dbus-sysprof3-profiler.c', missing and no known rule to make it
meson.build script is looking explicitly for a required file using the
sysroot of the build system instead of ${RECIPE_SYSROOT}. To avoid this,
patch meson.build to prefix this path with ${RECIPE_SYSROOT}.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit ead8f7b3273965f383ec4999bb38e87ba37daf61)
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Diffstat (limited to 'meta-gnome')
| -rw-r--r-- | meta-gnome/recipes-gnome/mutter/files/0001-Dont-use-system-sysprof-dbus-folder.patch | 35 | ||||
| -rw-r--r-- | meta-gnome/recipes-gnome/mutter/mutter_46.9.bb | 2 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/mutter/files/0001-Dont-use-system-sysprof-dbus-folder.patch b/meta-gnome/recipes-gnome/mutter/files/0001-Dont-use-system-sysprof-dbus-folder.patch new file mode 100644 index 0000000000..2f09c32997 --- /dev/null +++ b/meta-gnome/recipes-gnome/mutter/files/0001-Dont-use-system-sysprof-dbus-folder.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 790177e2a89aa0710b570d595223bdb511241c56 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 3 | Date: Tue, 11 Feb 2025 13:39:54 +0100 | ||
| 4 | Subject: [PATCH] Don't use system sysprof dbus folder | ||
| 5 | |||
| 6 | In case Mutter is built with profiler support, it requires | ||
| 7 | org.gnome.Sysprof3.Profiler.xml file to be available - however | ||
| 8 | the meson build file is trying to access it on the build machine's | ||
| 9 | system ($datadir/dbus-1/interfaces) instead of searching for it | ||
| 10 | in the $RECIPE_SYSROOT. | ||
| 11 | |||
| 12 | To ensure that it looks for this file in the correct folder, prefix | ||
| 13 | the search path with the value of the sys_root property, which is set | ||
| 14 | in the meson.cross file (by meson.bbclass). | ||
| 15 | |||
| 16 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 17 | |||
| 18 | Upstream-Status: Inappropriate [oe-specific: only related to cross-compiling] | ||
| 19 | --- | ||
| 20 | meson.build | 2 +- | ||
| 21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 22 | |||
| 23 | diff --git a/meson.build b/meson.build | ||
| 24 | index 551cb23..5199be6 100644 | ||
| 25 | --- a/meson.build | ||
| 26 | +++ b/meson.build | ||
| 27 | @@ -446,7 +446,7 @@ if have_profiler | ||
| 28 | |||
| 29 | if libsysprof_capture_dep.type_name() == 'pkgconfig' | ||
| 30 | sysprof_dep = dependency('sysprof-6', 'sysprof-4') | ||
| 31 | - sysprof_dbus_interfaces_dir = sysprof_dep.get_variable('datadir') / 'dbus-1' / 'interfaces' | ||
| 32 | + sysprof_dbus_interfaces_dir = meson.get_external_property('sys_root') + sysprof_dep.get_variable('datadir') / 'dbus-1' / 'interfaces' | ||
| 33 | else | ||
| 34 | sysprof_dbus_interfaces_dir = mutter_srcdir / 'subprojects' / 'sysprof' / 'src' | ||
| 35 | endif | ||
diff --git a/meta-gnome/recipes-gnome/mutter/mutter_46.9.bb b/meta-gnome/recipes-gnome/mutter/mutter_46.9.bb index 0cf5d4146f..4d55cd5574 100644 --- a/meta-gnome/recipes-gnome/mutter/mutter_46.9.bb +++ b/meta-gnome/recipes-gnome/mutter/mutter_46.9.bb | |||
| @@ -26,6 +26,8 @@ inherit gnomebase gsettings gobject-introspection gettext features_check | |||
| 26 | 26 | ||
| 27 | SRC_URI[archive.sha256sum] = "b5071ff62fc060d3eb39c95fd54ff1accd4600756d7205f747a24d71e0ea6429" | 27 | SRC_URI[archive.sha256sum] = "b5071ff62fc060d3eb39c95fd54ff1accd4600756d7205f747a24d71e0ea6429" |
| 28 | 28 | ||
| 29 | SRC_URI += "file://0001-Dont-use-system-sysprof-dbus-folder.patch" | ||
| 30 | |||
| 29 | # x11 is still manadatory - see meson.build | 31 | # x11 is still manadatory - see meson.build |
| 30 | REQUIRED_DISTRO_FEATURES = "wayland x11 polkit" | 32 | REQUIRED_DISTRO_FEATURES = "wayland x11 polkit" |
| 31 | 33 | ||
