Summary: | sys-apps/portage-3.0.36 quickpkg fails building dev-libs/glib-2.72.3 pkg in gpkg format | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Frank Krömmelbein <kroemmelbein> |
Component: | Current packages | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gnome, syu.os |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/portage/pull/900 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 871561 |
Description
Frank Krömmelbein
2022-09-15 13:41:08 UTC
That is because /usr/lib/gio/modules/giomodule.cache not exists, but recorded in the package CONTENTS. quickpkg when using xpak use old logic that will ignore files that not exists. New gpkg will give error. So why that file not in there but in CONTENTS. And should we just ignore missing files when do quickpkg? It seems like it should be generated in pkg_preinst: pkg_preinst() { [...] multilib_pkg_preinst() { # Make giomodule.cache belong to glib alone local cache="/usr/$(get_libdir)/gio/modules/giomodule.cache" if [[ -e ${EROOT}${cache} ]]; then cp "${EROOT}"${cache} "${ED}"${cache} || die else touch "${ED}"${cache} || die fi } # Don't run the cache ownership when cross-compiling, as it would end up with an empty cache # file due to inability to create it and GIO might not look at any of the modules there if ! tc-is-cross-compiler ; then multilib_foreach_abi multilib_pkg_preinst fi } That file definitely exists for me, $ file /usr/lib/gio/modules/giomodule.cache /usr/lib/gio/modules/giomodule.cache: ASCII text $ grep giomodule.cache /var/db/pkg/dev-libs/glib-2.72.3/CONTENTS obj /usr/lib64/gio/modules/giomodule.cache 118d963a4b0fcf7a57834e9fa6c93e45 1662915370 obj /usr/lib/gio/modules/giomodule.cache d41d8cd98f00b204e9800998ecf8427e 1662915370 So I too am confused as to how this file isn't created. Was it removed? Does it get succesfully created with a rebuild of glib? I just rebuild dev-libs/glib and only got
/usr/lib64/gio/modules/giomodule.cache
without
/usr/lib/gio/modules/giomodule.cache
No error:
>>> Installing (1 of 1) dev-libs/glib-2.72.3::gentoo
* abi_x86_32.x86: running multilib_pkg_preinst
* abi_x86_64.amd64: running multilib_pkg_preinst
* Updating GSettings schemas ... [ ok ]
* Updating GSettings schemas ... [ ok ]
* abi_x86_32.x86: running multilib_pkg_postinst
* Updating GIO modules cache ... [ ok ]
* abi_x86_64.amd64: running multilib_pkg_postinst
* Updating GIO modules cache ... [ ok ]
* GNU info directory index is up-to-date.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=355b6598225e3ffa921d2fb6646539bcbcc694a7 commit 355b6598225e3ffa921d2fb6646539bcbcc694a7 Author: Sheng Yu <syu.os@protonmail.com> AuthorDate: 2022-09-15 15:52:31 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-20 03:39:23 +0000 GPKG quickpkg allow missing files Bug: https://bugs.gentoo.org/870229 Signed-off-by: Sheng Yu <syu.os@protonmail.com> Closes: https://github.com/gentoo/portage/pull/900 Signed-off-by: Sam James <sam@gentoo.org> lib/portage/gpkg.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=041d1f125384dd935d058b555a0fcb6b260260cb commit 041d1f125384dd935d058b555a0fcb6b260260cb Author: Sam James <sam@gentoo.org> AuthorDate: 2022-09-23 03:27:14 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-23 03:27:14 +0000 sys-apps/portage: add 3.0.37 Closes: https://bugs.gentoo.org/866197 Closes: https://bugs.gentoo.org/869470 Closes: https://bugs.gentoo.org/870229 Closes: https://bugs.gentoo.org/870283 Closes: https://bugs.gentoo.org/870310 Closes: https://bugs.gentoo.org/871561 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-3.0.37.ebuild | 273 +++++++++++++++++++++++++++++++++ 2 files changed, 274 insertions(+) |