Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601740 - Package atoms are oversimplified before being added to the world file
Summary: Package atoms are oversimplified before being added to the world file
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-05 22:51 UTC by Mike Gilbert
Modified: 2016-12-05 23:29 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 Mike Gilbert gentoo-dev 2016-12-05 22:51:11 UTC
When I run emerge with a wildcard dependency atom, the atom is converted into a simple package name before being added to he world file.

For example:

# emerge --noreplace '=sys-devel/gcc-4.9*'
Calculating dependencies... done!
>>> Recording sys-devel/gcc in "world" favorites file...


If I manually edit /var/lib/portage/world, I am able to add the desired wildcard dependency atom, and emerge appears to interpret it correctly on subsequent @world updates.
Comment 1 Zac Medico gentoo-dev 2016-12-05 23:29:41 UTC
The thing is, having specific versions in the world file is likely to trigger conflicts or missed updates sooner or later. The existing logic uses some heuristics to decide whether to add a slot to the atom:

https://gitweb.gentoo.org/proj/portage.git/tree/pym/_emerge/create_world_atom.py?h=portage-2.3.2