Summary: | dev-libs/glib-2.80.5-r1: g-ir-compiler: error while loading shared libraries: libgirepository-1.0.so.1: cannot open shared object file: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexander Tsoy <alexander> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander, anton.wd, gabifalk, mingdao, razamatan, sam |
Priority: | Normal | Keywords: | PATCH, PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/39807 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
glib-2.80.5-r1:20241221-092821.log.gz
glib-2.80.5-r1.patch glib-2.80.5-r1.patch |
Description
Alexander Tsoy
2024-12-21 09:46:12 UTC
This is during update from glib-2.78.6 to 2.80.5-r1. If I manually install dev-libs/gobject-introspection-1.78.1-r2, then build succeeds. So there is probably a circular dependency between dev-libs/glib[introspection] and dev-libs/gobject-introspection. I can't see how dev-libs/glib-2.80.5-r1[introspection] can be installed on a fresh system. Same here. Seems like because of new default use flag "introspection" and missing dependency from dev-libs/gobject-introspection (cant open file libgirepository-1.0.so which is part of dev-libs/gobject-introspection). Workaround: emerge -1 "<dev-libs/gobject-introspection-common-1.80" "<dev-libs/gobject-introspection-1.80" emerge -1 dev-libs/gobject-introspection-common dev-libs/gobject-introspection-common dev-libs/glib (In reply to Alexander Tsoy from comment #1) > So there is probably a circular dependency between > dev-libs/glib[introspection] and dev-libs/gobject-introspection. I can't see > how dev-libs/glib-2.80.5-r1[introspection] can be installed on a fresh > system. Ah, I'm wrong. Without gobject-introspection installed glib builds and installs it's own copy of it in a temp dir. But for some reason dynamic linking is broken. Created attachment 914591 [details]
glib-2.80.5-r1.patch
This fixes this issue for me
Created attachment 914592 [details]
glib-2.80.5-r1.patch
*** Bug 946781 has been marked as a duplicate of this bug. *** also had issues with upgrading from 2.78.6 to 2.80.5-r1 but without the nice compilation error message (had lots of symbol reference issues, see attached log). i tried this b/c i also saw the introspection use flag being enabled, so i tried the patch suggested by alexander. it fixes it for me. (In reply to razamatan from comment #7) > also had issues with upgrading from 2.78.6 to 2.80.5-r1 but without the nice > compilation error message (had lots of symbol reference issues, see attached > log). i tried this b/c i also saw the introspection use flag being enabled, > so i tried the patch suggested by alexander. it fixes it for me. looking at the saved build log carefully, it actually did have the same failure: [626/638] /var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../bin/g-ir-compiler girepository/introspection/GLib-2.0.gir --output girepository/introspection/GLib-2.0.typelib --includedir=/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/glib-2.80.5-abi_x86_64.amd64/girepository/introspection --includedir=/var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../share/gir-1.0 FAILED: girepository/introspection/GLib-2.0.typelib /var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../bin/g-ir-compiler girepository/introspection/GLib-2.0.gir --output girepository/introspection/GLib-2.0.typelib --includedir=/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/glib-2.80.5-abi_x86_64.amd64/girepository/introspection --includedir=/var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../share/gir-1.0/var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../bin/g-ir-compiler: error while loading shared libraries: libgirepository-1.0.so.1: cannot open shared object file: No such file or directory The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ed35622d333954fedc11ed080bfa3dd29c74f3a commit 6ed35622d333954fedc11ed080bfa3dd29c74f3a Author: Gabi Falk <gabifalk@gmx.com> AuthorDate: 2024-12-21 13:39:00 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-21 16:21:22 +0000 dev-libs/glib: 2.80.5-r1: Fix gobject-introspection bootstrap Closes: https://bugs.gentoo.org/946735 Signed-off-by: Gabi Falk <gabifalk@gmx.com> Closes: https://github.com/gentoo/gentoo/pull/39807 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/glib/glib-2.80.5-r1.ebuild | 3 +++ 1 file changed, 3 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc389de277b47284868470abf7539e7fdf04c80d commit cc389de277b47284868470abf7539e7fdf04c80d Author: Sam James <sam@gentoo.org> AuthorDate: 2024-12-21 16:22:27 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-21 16:22:27 +0000 dev-libs/glib: forward-port LD_LIBRARY_PATH fix to 2.82.4-r1 too Bug: https://bugs.gentoo.org/946735 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/glib/glib-2.82.4-r1.ebuild | 3 +++ 1 file changed, 3 insertions(+) |