Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 157754

Summary: profile.bashrc should support sourcing ${PN}:${SLOT}
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: EclassesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED UPSTREAM    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to profile.bashrc

Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2006-12-10 11:53:51 UTC
/usr/portage/profiles/base/profile.bashrc should have ${PN}:${SLOT} in the following line:
for conf in ${PN} ${PN}-${PV} ${PN}-${PV}-${PR}; do
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2006-12-10 11:54:58 UTC
Created attachment 103754 [details, diff]
Patch to profile.bashrc
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-10 12:12:09 UTC
Wondering what for exactly, it's not like anyone would be allowed to use ${PN}:${SLOT} syntax anywhere in the official tree, current stable portage doesn't understand it.

Comment 3 Zac Medico gentoo-dev 2006-12-10 13:38:06 UTC
I'm of the opinion that the chunk of code that's currently in base/profile.bashrc shouldn't really be there since it's easy enough for users to add it to /etc/portage/bashrc if they want per-package env like that.  So, I'll leave this for others to deal with. :)
Comment 4 Alec Warner archtester Gentoo Infrastructure gentoo-dev Security 2006-12-10 13:47:52 UTC
(In reply to comment #0)
> /usr/portage/profiles/base/profile.bashrc should have ${PN}:${SLOT} in the
> following line:
> for conf in ${PN} ${PN}-${PV} ${PN}-${PV}-${PR}; do
> 

This has nothing to do with the portage team imho; go ask on the Gentoo-Dev ML.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2006-12-11 05:59:06 UTC
(In reply to comment #4)
> This has nothing to do with the portage team imho;
Not me, but Jakub Moc assigned this bug to Portage team.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2006-12-11 06:09:15 UTC
(In reply to comment #2)
> Wondering what for exactly, it's not like anyone would be allowed to use
> ${PN}:${SLOT} syntax anywhere in the official tree, current stable portage
> doesn't understand it.
> 
This isn't related in any way to similar (the same) syntax which could be used in ebuilds or command line. It's in BASH for loop, so it's harmless to stable Portage.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2006-12-11 10:38:40 UTC
We don't maintain profile.bashrc.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-12-11 13:35:06 UTC
Move this to gentoo-dev mailing list. Thanks.
Comment 9 solar (RETIRED) gentoo-dev 2006-12-11 14:03:59 UTC
Just use [[ "${SLOT:-0}" == "0" ]]; syntax in a given env file.
I'd rather us not change that code. It only exists as a stopgap till 
portage itself can support pkg env using proper atoms.