Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832141 - app-misc/tracker-3.2.1 fails to compile: meson.build:83:0: ERROR: python3 is missing modules: gi
Summary: app-misc/tracker-3.2.1 fails to compile: meson.build:83:0: ERROR: python3 is ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://gitlab.gnome.org/GNOME/tracke...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-27 07:10 UTC by Agostino Sarubbo
Modified: 2022-02-20 18:39 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,57.05 KB, text/plain)
2022-01-27 07:10 UTC, Agostino Sarubbo
Details
1-meson-log.txt (1-meson-log.txt,32.99 KB, text/plain)
2022-01-27 07:10 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-27 07:10:25 UTC
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.
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-27 07:10:28 UTC
Created attachment 763712 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-27 07:10:29 UTC
Created attachment 763713 [details]
1-meson-log.txt

1-meson-log.txt
Comment 3 Agostino Sarubbo gentoo-dev 2022-01-27 07:10:30 UTC
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
Comment 4 Matt Turner gentoo-dev 2022-01-27 20:26:22 UTC
Looks like $URL is responsible.
Comment 5 Matt Turner gentoo-dev 2022-01-27 20:28:55 UTC
FWIW: You can work around this by installing dev-python/pygobject.
Comment 6 Andy Pettinger 2022-01-28 04:49:18 UTC
(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.
Comment 7 Alexandra Parker 2022-01-28 04:54:54 UTC
(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
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-28 07:34:01 UTC
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
```
Comment 9 HougeLangley 2022-01-28 23:12:38 UTC
 * 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
Comment 10 Alexandra Parker 2022-01-29 01:24:16 UTC
(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
Comment 11 HougeLangley 2022-02-01 12:15:02 UTC
(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.
Comment 12 Patrick Fourniols 2022-02-02 00:17:58 UTC
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...
Comment 13 Linas 2022-02-12 12:03:24 UTC
I do not know whats wrong  but for me helped:
mkdir /usr/lib/python3.10/site-packages/gi
Comment 14 Parke 2022-02-12 21:28:17 UTC
(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.
Comment 15 Drake Donahue 2022-02-17 19:24:09 UTC
mkdir /usr/lib/python3.10/site-packages/gi
worked here also
nice find
Comment 16 Jay Faulkner gentoo-dev 2022-02-18 05:08:54 UTC
I can confirm that setting

dev-python/pygobject python_targets_python3_10

in package.use (and dependencies as demanded by portage) resolves this issue.
Comment 17 Victor Orozco 2022-02-19 05:30:52 UTC
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.
Comment 18 Larry the Git Cow gentoo-dev 2022-02-20 18:39:22 UTC
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(+)