Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300531 - package.keywords and package.unmask are ignored when /etc/make.profile points to directory outside of /usr/portage/profiles
Summary: package.keywords and package.unmask are ignored when /etc/make.profile points...
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-11 03:28 UTC by Anthony Basile
Modified: 2010-01-18 23:51 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 Anthony Basile gentoo-dev 2010-01-11 03:28:25 UTC
When /etc/make.profile points to a directory outside of /usr/portage/profiles, like /usr/local/portage/layman/mystuff/profiles/desktop, then package.keywords or package.unmask in that directory are ignored.  However, the parent file is not.

Reproducible: Always

Steps to Reproduce:
1. Create a directory /usr/local/portage/layman/mystuff/profiles/desktop and symbolically link /etc/make.profile to it.
2. Put parent, package.keywords and package.unmask in there.
3. emerge <unmasked package>

Actual Results:  
The contents of package.keywords and package.unmask are ignored when emerging.

Expected Results:  
man 5 portage suggests that package.keywords and package.unmask put in /etc/make.profile/ would be read.  It does say that site specific files should go into /etc/portage/profile/, but as a precaution because /usr/portage will be wiped on the next emerge --sync.

The problem was hit when trying to manage a profile via an overlay.  I had

/usr/local/portage/layman/mystuff/profiles/desktop/parent contain

  /usr/portage/profiles/default/linux/x86/10.0/desktop

and package.keywords contain

  sys-devel/automake ~x86
  sys-devel/automake-wrapper ~x86

and package.unmask contain

  sys-devel/automake
  sys-devel/automake-wrapper

Then emerge -uvpND world said nothing was to be updated.  But when package.keywords and package.umasked were moved to /etc/portage, then I got

[ebuild     U ] sys-devel/automake-wrapper-4 [3-r1] 0 kB
[ebuild     U ] sys-apps/help2man-1.36.4-r1 [1.36.4] USE="nls" 84 kB
[ebuild  NS   ] sys-devel/automake-1.11.1 [1.9.6-r2, 1.10.2] 0 kB
Comment 1 Anthony Basile gentoo-dev 2010-01-18 23:51:00 UTC
I am not using in-profile package.keywords correctly.  Marking this bug as INVALID.
Comment 2 Anthony Basile gentoo-dev 2010-01-18 23:51:38 UTC
Oops, should give kudos to gengor :)