https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-misc/tracker-3.2.1 fails to compile. Discovered on: amd64 (internal ref: ci) NOTE: If you think this is a GCC-11 related issue, please block bug 732706.
Created attachment 763712 [details] build.log build log and emerge --info
Created attachment 763713 [details] 1-meson-log.txt 1-meson-log.txt
Error(s) that match a know pattern in addition to what has been reported in the summary: meson.build:83:0: ERROR: python3 is missing modules: gi Program python3 (gi) found: NO
Looks like $URL is responsible.
FWIW: You can work around this by installing dev-python/pygobject.
(In reply to Matt Turner from comment #5) > FWIW: You can work around this by installing dev-python/pygobject. pygobject was already installed and i still got the same tracker installation error message.
(In reply to Andy Pettinger from comment #6) > (In reply to Matt Turner from comment #5) > > FWIW: You can work around this by installing dev-python/pygobject. > > pygobject was already installed and i still got the same tracker > installation error message. it has to be installed for 3.10
FWIW, we're aware of this, and have been discussing it in #gentoo-desktop on IRC, but there's some awkwardness about how to approach it. An excerpt anyway for our options: ``` [20:48:43] <@leio> 1. Unconditionally enable introspection on tracker and require pygobject and whatever stuff in rdep [20:49:48] <@leio> 2. Only check for gi module and build and install trackertestutils with USE=introspection; have anything that actually uses trackertestutils USE-depend as needed [20:49:51] <@leio> and 2 more options [20:51:19] <@leio> 3. Like option 2, but gate the trackertestutils behind some other USE flag that makes more sense, like test-utils or something, which apps that use it can then depend on if tests are enabled [20:51:53] <@leio> 4. Punt the problem and drop the check AND trackertestutils until we actually see some tracker using program use it for their testsuite and we see then [20:52:22] <@leio> (3. would mean a REQUIRED_USE="test-utils? ( introspection )") [20:52:24] <@mattst88> hard to argue against #4 [20:52:45] <+sam_> for 4, the only issue is making sure it's written down in a comment somewhere so that we don't forget [20:53:00] <@mattst88> looks like we even have meson_options for disabling that installation of the trackertestutils [20:53:06] <@mattst88> sam_: definitely [20:53:09] <@leio> but we've been installing this trackertestutils stuff without knowing about it, even tracker-2 has it [20:53:19] <@leio> I'm not sure we don't actually have some programs test suite already using it [20:53:46] <@mattst88> yeah, I suppose you're right ```
* Using python3.10 to build >>> Unpacking source... >>> Unpacking tracker-3.2.1.tar.xz to /var/tmp/portage/app-misc/tracker-3.2.1/work >>> Source unpacked in /var/tmp/portage/app-misc/tracker-3.2.1/work >>> Preparing source in /var/tmp/portage/app-misc/tracker-3.2.1/work/tracker-3.2.1 ... * Applying tracker-3.1.1-Fix-asciidoc-manpage.xsl-location.patch ... [ ok ] * Applying tracker-3.2.1-Add-config-options-for-libsoup.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-misc/tracker-3.2.1/work/tracker-3.2.1 ... meson setup --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /var/tmp/portage/app-misc/tracker-3.2.1/temp/pkgconfig:/var/tmp/portage/app-misc/tracker-3.2.1/temp/python3.10/pkgconfig:/usr/share/pkgconfig --pkg-config-path /var/tmp/portage/app-misc/tracker-3.2.1/temp/pkgconfig:/var/tmp/portage/app-misc/tracker-3.2.1/temp/python3.10/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/app-misc/tracker-3.2.1/temp/meson.x86_64-pc-linux-gnu.amd64.ini --buildtype plain -Ddocs=false -Dman=true -Dstemmer=disabled -Dunicode_support=icu -Dbash_completion_dir=/usr/share/bash-completion/completions -Dsystemd_user_services_dir=/usr/lib/systemd/user -Dintrospection=enabled -Dlibsoup2=enabled -Dlibsoup3=disabled /var/tmp/portage/app-misc/tracker-3.2.1/work/tracker-3.2.1 /var/tmp/portage/app-misc/tracker-3.2.1/work/tracker-3.2.1-build The Meson build system Version: 0.60.3 Source dir: /var/tmp/portage/app-misc/tracker-3.2.1/work/tracker-3.2.1 Build dir: /var/tmp/portage/app-misc/tracker-3.2.1/work/tracker-3.2.1-build Build type: native build Project name: tracker Project version: 3.2.1 C compiler for the host machine: x86_64-pc-linux-gnu-gcc (gcc 11.2.1 "x86_64-pc-linux-gnu-gcc (Gentoo 11.2.1_p20220115 p4) 11.2.1 20220115") C linker for the host machine: x86_64-pc-linux-gnu-gcc ld.bfd 2.37 Vala compiler for the host machine: /usr/bin/valac-0.52 (valac 0.52.10) Host machine cpu family: x86_64 Host machine cpu: x86_64 Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (1.8.0) Run-time dependency gio-2.0 found: YES 2.70.3 Run-time dependency gio-unix-2.0 found: YES 2.70.3 Run-time dependency glib-2.0 found: YES 2.70.3 Run-time dependency gmodule-2.0 found: YES 2.70.3 Run-time dependency gobject-2.0 found: YES 2.70.3 Run-time dependency gobject-introspection-1.0 found: YES 1.70.0 Run-time dependency icu-i18n found: YES 70.1 Run-time dependency icu-uc found: YES 70.1 Run-time dependency json-glib-1.0 found: YES 1.6.6 Run-time dependency libxml-2.0 found: YES 2.9.12 Run-time dependency sqlite3 found: YES 3.37.2 Run-time dependency dbus-1 found: YES 1.12.20 Run-time dependency libsoup-2.4 found: YES 2.74.2 Dependency libsoup-3.0 skipped: feature libsoup3 disabled Library m found: YES Library dl found: YES Program asciidoc found: YES (/usr/bin/asciidoc) Program xsltproc found: YES (/usr/bin/xsltproc) Program python3 (gi) found: NO meson.build:83:0: ERROR: python3 is missing modules: gi
(In reply to HougeLangley from comment #9) > meson.build:83:0: ERROR: python3 is missing modules: gi pygobject itself should be installed for 3.10: $ file /usr/lib/python3.10/site-packages/gi /usr/lib/python3.10/site-packages/gi: directory
(In reply to Alexandra Parker from comment #10) > (In reply to HougeLangley from comment #9) > > > meson.build:83:0: ERROR: python3 is missing modules: gi > > pygobject itself should be installed for 3.10: > > $ file /usr/lib/python3.10/site-packages/gi > /usr/lib/python3.10/site-packages/gi: directory Thanks, problem solved. dev-python/pygobject python_targets_python3_10 reinstall pygobject and upgrade will be fine.
a work around: quickpkg =dev-lang/python-3.10.2-r1 unmerge =dev-lang/python-3.10.2-r1 emerge --oneshot tracker 3.10 don't have gi modules so...
I do not know whats wrong but for me helped: mkdir /usr/lib/python3.10/site-packages/gi
(In reply to Linas from comment #13) > I do not know whats wrong but for me helped: > mkdir /usr/lib/python3.10/site-packages/gi This solved the issue for me. Thank you.
mkdir /usr/lib/python3.10/site-packages/gi worked here also nice find
I can confirm that setting dev-python/pygobject python_targets_python3_10 in package.use (and dependencies as demanded by portage) resolves this issue.
I'm using the default PYTHON_SINGLE_TARGET from profile (hence 3.9). Since I didn't want to enable 3.10 in many packages I tried the mkdir hack, it works.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e7bddcce802a7ec8e3e731592fa18e3ba5ff0a2 commit 9e7bddcce802a7ec8e3e731592fa18e3ba5ff0a2 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2022-02-20 18:38:56 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2022-02-20 18:39:16 +0000 app-misc/tracker: Fix test dependencies Closes: https://bugs.gentoo.org/832141 Signed-off-by: Matt Turner <mattst88@gentoo.org> ...d-Add-an-option-to-control-building-tests.patch | 69 ++++++++++++++++++++++ app-misc/tracker/tracker-3.2.1.ebuild | 3 + 2 files changed, 72 insertions(+)