If I remove my profile link and point it back to a regular default-linux profile, emerge works again perfectly...

To prepare for the selinux migration, I did the following:
# rm -f /etc/make.profile
# ln -sf /usr/portage/profiles/selinux/2005.1/amd64 /etc/make.profile

Checked that my headers were up-to-date (remerged glibc) and proceeded to try and use emerge which failed with the error I posted.

By reversing the process and removing the make.profile and linking it back to /usr/portage/profiles/default-linux/amd64... emerge works again.

Michael wrote:

I think your python is broken... Something is broken and since emerge
needs it there is no easy way to get it working again. The easiest is if
someone can provide the needed package as a tgz/tbz2 which you can
then extract to / to have emerge working again, after which you can
remerge the package that stopped working. My guess is it's python,
but I'm not 100% sure.
Good luck,

Michael

Darren Grant wrote:

Heya

I'm trying to migrate my system over to selinux using the gentoo handbook for selinux migration. I'm following the initial preperations page and so, changed my profile, ensured I had the latest kernel headers and then emerged glibc.

After doing so, I'm not trying to emerge hardened-sources but my emerge seems to be broken.

Exhibit A:

# emerge hardened-sources
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/hardened-sources-2.6.14-r5 to /
>>> Downloading ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/distfiles/hardened-patches-2.6.14-5.extras.tar.bz2
Traceback (most recent call last):
 File "/usr/bin/emerge", line 3228, in ?
   mydepgraph.merge(pkglist)
 File "/usr/bin/emerge", line 1912, in merge
retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree")
 File "/usr/lib/portage/pym/portage.py", line 2704, in doebuild
if mydo!="manifest" and not fetch(fetchme, mysettings, listonly=listonly, fetchonly=fetchonly):
 File "/usr/lib/portage/pym/portage.py", line 1914, in fetch
   con=selinux.getcontext()
AttributeError: 'module' object has no attribute 'getcontext'

In fact I can't emerge anything. Anyone please able to help me out and let me know what I've done wrong? Should I not be using this document for a 2005.1 install system?


--
[email protected] mailing list

Reply via email to