Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 816033 - app-portage/portage-utils-0.92: qmerge fails to match packages with SUBSLOT, due to bug in atom.c atom_clone() method
Summary: app-portage/portage-utils-0.92: qmerge fails to match packages with SUBSLOT, ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Fabian Groffen
URL: https://gitweb.gentoo.org/proj/portag...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-03 10:36 UTC by Barnabás Virágh
Modified: 2021-12-21 10:25 UTC (History)
1 user (show)

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


Attachments
Patch to fix atom.c clone function, to include SUBSLOT (atom.c-clone-fix.patch,1.53 KB, patch)
2021-10-03 10:39 UTC, Barnabás Virágh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Barnabás Virágh 2021-10-03 10:36:36 UTC
The cache build finds and splits SLOT correctly to SLOT + SUBSLOT, but after when it is about to use, a clone of the atom to match, the clone function didn't copy SUBSLOT to the new cloned atom.

This also prevented scenarios, during dependency resolving, to resolve such RDEPENDs: virtual/libudev:0/1=, and failing with error messages:
qmerge: cannot resolve virtual/libudev:0/1= from rdepend(media-libs/libglvnd[X] dev-li...

Reproducible: Always

Steps to Reproduce:
1. qmerge -pv app-arch/bzip2:0/1

Actual Results:  
qmerge: nothing found for app-arch/bzip2:0/1

Expected Results:  
[R] app-arch/bzip2-1.0.8-r1
*** unmerging app-arch/bzip2-1.0.8-r1
>>> app-arch/bzip2-1.0.8-r1
Comment 1 Barnabás Virágh 2021-10-03 10:39:44 UTC
Created attachment 742626 [details, diff]
Patch to fix atom.c clone function, to include SUBSLOT
Comment 2 Fabian Groffen gentoo-dev 2021-10-03 10:50:07 UTC
Thanks, pushed in c7e7502
Comment 3 Fabian Groffen gentoo-dev 2021-10-03 10:50:44 UTC
nothing to wrangle here, sorry for the noise
Comment 4 Larry the Git Cow gentoo-dev 2021-12-21 10:25:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e74e1d6c4bf1db571db1cec13356ffbe10ba56f

commit 7e74e1d6c4bf1db571db1cec13356ffbe10ba56f
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-12-21 10:23:54 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-12-21 10:25:33 +0000

    app-portage/portage-utils-0.93: version bump
    
    Closes: https://bugs.gentoo.org/815622
    Closes: https://bugs.gentoo.org/816033
    Closes: https://bugs.gentoo.org/816060
    Closes: https://bugs.gentoo.org/829579
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 app-portage/portage-utils/Manifest                 |  1 +
 .../portage-utils/portage-utils-0.93.ebuild        | 67 ++++++++++++++++++++++
 2 files changed, 68 insertions(+)