Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 816237 - app-portage/portage-utils-0.92: qmerge doesn't find user defined sets, where emerge finds
Summary: app-portage/portage-utils-0.92: qmerge doesn't find user defined sets, where ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-04 08:59 UTC by Barnabás Virágh
Modified: 2021-12-27 18:30 UTC (History)
0 users

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


Attachments
Fix SETS folder search path (fix-portage-set-path.patch,591 bytes, patch)
2021-10-04 09:00 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-04 08:59:39 UTC
qmerge - contrast to emerge - looks for user defined sets in [PREFIX]/etc/portage instead of [PREFIX]/etc/portage/sets . If set file is moved to /etc/portage, emerge --list-sets will not find. Let's use the same folder structure for qmerge as well.

Reproducible: Always

Steps to Reproduce:
1. echo "sys-devel/gcc" > /etc/portage/sets/myset
2. qmerge -Kv @myset

Actual Results:  
qmerge: unable to read set file ///etc/portage/myset: No such file or directory

Expected Results:  
reads up the correct file from /etc/portage/sets/myset , and starts to merge sys-devel/gcc.

Possible workaround: duplicate the set file, and put a copy of it in /etc/portage, or possibly symlink to sets/<setname> (not tested).
Comment 1 Barnabás Virágh 2021-10-04 09:00:15 UTC
Created attachment 742902 [details, diff]
Fix SETS folder search path
Comment 2 Fabian Groffen gentoo-dev 2021-12-26 20:28:16 UTC
This looks sensical.
Comment 3 Larry the Git Cow gentoo-dev 2021-12-27 18:13:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=f1c5463c944bb646ac1bdf61dd5a74f64dcaa33b

commit f1c5463c944bb646ac1bdf61dd5a74f64dcaa33b
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-12-27 18:12:06 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-12-27 18:12:06 +0000

    qmerge: resolve user sets from etc/portage/sets
    
    Based on suggested patch from Barnabás Virágh in bug #816237.  Look
    inside sets subdir.  While at it, accept @-prefixed syntax, e.g. @world.
    
    Bug: https://bugs.gentoo.org/816237
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 qmerge.c | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2021-12-27 18:30:03 UTC
The bug has been closed via the following commit(s):

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

commit f8a22f5fb2cd681ffce5a7237fd7d1ec18e86d9b
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-12-27 18:27:41 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-12-27 18:29:59 +0000

    app-portage/portage-utils-0.93.3: bump to fix test failure #830105
    
    Closes: https://bugs.gentoo.org/830105
    Closes: https://bugs.gentoo.org/816237
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 app-portage/portage-utils/Manifest                                      | 2 +-
 .../{portage-utils-0.93.2.ebuild => portage-utils-0.93.3.ebuild}        | 0
 2 files changed, 1 insertion(+), 1 deletion(-)