commit:     687ab630ee2b31b76c7e7477b76443ce69ff24f6
Author:     Lukas Schmelting <lschmelting <AT> posteo <DOT> com>
AuthorDate: Sun Jun  8 11:05:34 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun  9 00:21:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=687ab630

app-misc/localsearch: Fix tests

- Disable 'examples' test suite
- Replace EROOT with ESYSROOT

Signed-off-by: Lukas Schmelting <lschmelting <AT> posteo.com>
Part-of: https://github.com/gentoo/gentoo/pull/42380
Closes: https://github.com/gentoo/gentoo/pull/42380
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/Disable-the-examples-test-suite.patch    | 33 ++++++++++++++++++++++
 app-misc/localsearch/localsearch-3.6.2-r2.ebuild   |  3 +-
 app-misc/localsearch/localsearch-3.6.2.ebuild      |  2 +-
 app-misc/localsearch/localsearch-3.8.2.ebuild      |  6 +++-
 4 files changed, 41 insertions(+), 3 deletions(-)

diff --git a/app-misc/localsearch/files/Disable-the-examples-test-suite.patch 
b/app-misc/localsearch/files/Disable-the-examples-test-suite.patch
new file mode 100644
index 000000000000..c3bd8f9d3776
--- /dev/null
+++ b/app-misc/localsearch/files/Disable-the-examples-test-suite.patch
@@ -0,0 +1,33 @@
+From b81a0c84b9850efa47b4ac136e351225119f659d Mon Sep 17 00:00:00 2001
+From: Lukas Schmelting <[email protected]>
+Date: Sun, 8 Jun 2025 12:19:58 +0200
+Subject: [PATCH] Disable the examples test suite
+
+Signed-off-by: Lukas Schmelting <[email protected]>
+---
+ examples/python/meson.build | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/examples/python/meson.build b/examples/python/meson.build
+index fed90e6..9bb3f3c 100644
+--- a/examples/python/meson.build
++++ b/examples/python/meson.build
+@@ -7,9 +7,9 @@ examples = [
+   'query-sync',
+ ]
+ 
+-foreach example_name: examples
+-  file = meson.current_source_dir() / '@[email protected]'.format(example_name)
+-  test(example_name, python,
+-    args: sandbox_python_args + [file],
+-    suite: 'examples')
+-endforeach
++# foreach example_name: examples
++#   file = meson.current_source_dir() / '@[email protected]'.format(example_name)
++#   test(example_name, python,
++#     args: sandbox_python_args + [file],
++#     suite: 'examples')
++# endforeach
+-- 
+2.49.0
+

diff --git a/app-misc/localsearch/localsearch-3.6.2-r2.ebuild 
b/app-misc/localsearch/localsearch-3.6.2-r2.ebuild
index 698d0edea528..76892af40d31 100644
--- a/app-misc/localsearch/localsearch-3.6.2-r2.ebuild
+++ b/app-misc/localsearch/localsearch-3.6.2-r2.ebuild
@@ -88,6 +88,7 @@ BDEPEND="
 PATCHES=(
        # https://gitlab.gnome.org/GNOME/localsearch/-/merge_requests/511
        "${FILESDIR}/tracker-miners-3.6.2-epoll_wait.patch"
+       "${FILESDIR}/Disable-the-examples-test-suite.patch"
 )
 
 python_check_deps() {
@@ -172,7 +173,7 @@ src_configure() {
 
 src_test() {
        export GSETTINGS_BACKEND="dconf" # Tests require dconf and explicitly 
check for it (env_reset set it to "memory")
-       export PYTHONPATH="${EROOT}"/usr/$(get_libdir)/tracker-3.0
+       export PYTHONPATH="${ESYSROOT}"/usr/$(get_libdir)/tracker-3.0
        dbus-run-session meson test -C "${BUILD_DIR}" || die 'tests failed'
 }
 

diff --git a/app-misc/localsearch/localsearch-3.6.2.ebuild 
b/app-misc/localsearch/localsearch-3.6.2.ebuild
index 0cdaa5354a1a..de358812b042 100644
--- a/app-misc/localsearch/localsearch-3.6.2.ebuild
+++ b/app-misc/localsearch/localsearch-3.6.2.ebuild
@@ -167,7 +167,7 @@ src_configure() {
 
 src_test() {
        export GSETTINGS_BACKEND="dconf" # Tests require dconf and explicitly 
check for it (env_reset set it to "memory")
-       export PYTHONPATH="${EROOT}"/usr/$(get_libdir)/tracker-3.0
+       export PYTHONPATH="${ESYSROOT}"/usr/$(get_libdir)/tracker-3.0
        dbus-run-session meson test -C "${BUILD_DIR}" || die 'tests failed'
 }
 

diff --git a/app-misc/localsearch/localsearch-3.8.2.ebuild 
b/app-misc/localsearch/localsearch-3.8.2.ebuild
index 89dc49105b36..8b8b89df3315 100644
--- a/app-misc/localsearch/localsearch-3.8.2.ebuild
+++ b/app-misc/localsearch/localsearch-3.8.2.ebuild
@@ -17,6 +17,10 @@ IUSE="cue exif ffmpeg gif gsf +gstreamer iptc +iso +jpeg 
networkmanager +pdf +pl
 REQUIRED_USE="cue? ( gstreamer )" # cue is currently only supported via 
gstreamer, not ffmpeg
 RESTRICT="!test? ( test )"
 
+PATCHES=(
+       "${FILESDIR}/Disable-the-examples-test-suite.patch"
+)
+
 # tracker-2.1.7 currently always depends on ICU (theoretically could be 
libunistring instead);
 # so choose ICU over enca always here for the time being (ICU is preferred)
 RDEPEND="
@@ -162,7 +166,7 @@ src_configure() {
 
 src_test() {
        export GSETTINGS_BACKEND="dconf" # Tests require dconf and explicitly 
check for it (env_reset set it to "memory")
-       export PYTHONPATH="${EROOT}"/usr/$(get_libdir)/tracker-3.0
+       export PYTHONPATH="${ESYSROOT}"/usr/$(get_libdir)/tinysparql-3.0
        dbus-run-session meson test -C "${BUILD_DIR}" || die 'tests failed'
 }
 

Reply via email to