Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865635 - portage-3.0.34: emerge --metadata no longer generates data in /var/cache/edb/dep
Summary: portage-3.0.34: emerge --metadata no longer generates data in /var/cache/edb/dep
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, PullRequest, REGRESSION
Depends on:
Blocks: 859439
  Show dependency tree
 
Reported: 2022-08-18 05:28 UTC by Martin Väth
Modified: 2023-12-28 03:15 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2022-08-18 05:28:35 UTC
portage-3.0.34: When calling emerge --metadata, it needs less than a second and only generates empty directories under /var/cache/edb/dep.

Similarly, if /etc/portage/modules contains the lines

portdbapi.auxdbmodule = cache.sqlite.database
eclass_cache.dbmodule = cache.sqlite.database

apparently only empty (size 16384) sqlite files are created in that directory.

I did not investigate with which portage version the behavior changed.

Note that some cache methods of eix are intended to use that data, so currently for users of e.g. cache method sqlite eix is broken, see e.g.
https://forums.gentoo.org/viewtopic-p-8738363.html
Comment 1 Mike Gilbert gentoo-dev 2022-08-18 14:58:13 UTC
Bisected to 9e24d0143450628f334cdb62e579efafd1bfd2ba.

https://gitweb.gentoo.org/proj/portage.git/commit/?id=9e24d0143450628f334cdb62e579efafd1bfd2ba
Comment 2 Larry the Git Cow gentoo-dev 2022-08-18 19:00:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=57ce385e32e79b9d332fe1fdb3be50bdb07e7838

commit 57ce385e32e79b9d332fe1fdb3be50bdb07e7838
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-08-18 17:59:03 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-08-18 18:11:25 +0000

    dbapi: avoid iterating porttrees twice in _set_porttrees()
    
    If porttrees is a generator object, the second pass will fail.
    
    Bug: https://bugs.gentoo.org/865635
    Fixes: 9e24d0143450628f334cdb62e579efafd1bfd2ba
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 lib/portage/dbapi/porttree.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2022-08-23 00:39:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=328977ffff1aa2d13cd3d8f7b5cb01eea6d634f5

commit 328977ffff1aa2d13cd3d8f7b5cb01eea6d634f5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-23 00:38:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-23 00:39:03 +0000

    sys-apps/portage: add 3.0.35
    
    Closes: https://bugs.gentoo.org/859439
    Closes: https://bugs.gentoo.org/672916
    Closes: https://bugs.gentoo.org/858791
    Closes: https://bugs.gentoo.org/862600
    Closes: https://bugs.gentoo.org/862606
    Closes: https://bugs.gentoo.org/863422
    Closes: https://bugs.gentoo.org/864382
    Closes: https://bugs.gentoo.org/865635
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.35.ebuild | 273 +++++++++++++++++++++++++++++++++
 2 files changed, 274 insertions(+)