Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54492 - Cascading profile depth
Summary: Cascading profile depth
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-06-19 21:54 UTC by solar (RETIRED)
Modified: 2004-07-08 16:16 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 solar (RETIRED) gentoo-dev 2004-06-19 21:54:52 UTC
I'm using the cascaded hardened profile and while doing an 'emerge info' I noticed that it would probably be hard to tell which profile an end user was using if he/she were using a cascaded one.

ls -l /etc/make.profile
/etc/make.profile -> /var/cvsroot/gentoo-x86/profiles/hardened/x86

emerge info | head -n2 | tail -n1  
Portage 2.0.51_pre9 (x86, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.26-grsec-2.0)

As we can see from the display in the place it shows the profile basename we only have 'x86' listed.

What may be ideal would be to have emerge option to display everything after ${PORTDIR}/profiles/
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-06-21 02:15:57 UTC
def getportageversion():
  try:
    import re
    profilever = os.path.normpath("///"+os.readlink("/etc/make.profile"))
    basepath   = os.path.normpath("///"+portage.settings["PORTDIR"]+"/profiles")
    if re.match(basepath,profilever):
      profilever = profilever[len(basepath)+1:]
    else:
      profilever = "!"+profilever
  except:
    profilever="unavailable"
Comment 2 solar (RETIRED) gentoo-dev 2004-07-08 16:16:23 UTC
Works great. Closing bug for you.

Portage 2.0.51_pre12 (hardened/x86, gcc-3.3.4, uclibc-0.9.26-r2, 2.4.26-grsec-2.0)
Portage 2.0.51_pre12 (uclibc/hardened/x86, gcc-3.4.1, uclibc-0.9.26-r2, 2.4.26-grsec-2.0)