Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186489 - selinux/2007.0/x86 - bad inheritance
Summary: selinux/2007.0/x86 - bad inheritance
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
: 187266 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-24 17:00 UTC by Alon Bar-Lev (RETIRED)
Modified: 2007-08-01 17:19 UTC (History)
1 user (show)

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 Alon Bar-Lev (RETIRED) gentoo-dev 2007-07-24 17:00:21 UTC
Hi!

I was notified to switch into this profile.

The problem is that x86 inherit from default-linux/x86/2007.0 then from base.

The base removes a lot of USE flags and other settings.

I tried to switch the order, but then the selinux stuff was not added.

Any thoughts?
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2007-07-25 03:36:08 UTC
OK.
Found the problem...

selinux/2007.0/x86 inherit from default-linux/x86/2007.0 (Mind the change in order)
selinux/2007.0/x86 inherit from selinux
selinux inherit from base
default-linux/x86/2007.0 eventually inherit from base

So you inherit base twice, this making the problem
Removing the parent from selinux solves the issue, as both x86 and base already inherited, you only need to make selinux modifications.
Comment 2 Chris PeBenito (RETIRED) gentoo-dev 2007-07-31 18:26:33 UTC
*** Bug 187266 has been marked as a duplicate of this bug. ***
Comment 3 Chris PeBenito (RETIRED) gentoo-dev 2007-08-01 03:40:47 UTC
fixed in cvs
Comment 4 Stephen Fromm 2007-08-01 16:15:28 UTC
I'm guessing this is related to this bug.  After this morning's sync, I now get the following:

# emerge --sync
Traceback (most recent call last):
  File "/usr/bin/emerge", line 4049, in ?
    emerge_main()
  File "/usr/bin/emerge", line 3768, in emerge_main
    settings, trees, mtimedb = load_emerge_config()
  File "/usr/bin/emerge", line 3679, in load_emerge_config
    trees = portage.create_trees(trees=trees, **kwargs)
  File "/usr/lib/portage/pym/portage.py", line 6780, in create_trees
    config_incrementals=portage_const.INCREMENTALS)
  File "/usr/lib/portage/pym/portage.py", line 902, in __init__
    addProfile(os.path.realpath(self.profile_path))
  File "/usr/lib/portage/pym/portage.py", line 889, in addProfile
    raise portage_exception.ParseError(
NameError: global name 'parents_file' is not defined

If I change my profile from selinux/2007.0/x86 to default-linux/x86/2007.0, I can then use emerge normally.  Changing it back, I get the above error again.

This appears to be related to the values I have in 2007.0/x86/parent.  For now, I removed the entry ../../../default-linux/x86/2007.0.
Comment 5 Stephen Fromm 2007-08-01 17:19:24 UTC
Upgrading to >=portage-2.1.2 resolved this.