1 |
If I remove my profile link and point it back to a regular default-linux |
2 |
profile, emerge works again perfectly... |
3 |
|
4 |
To prepare for the selinux migration, I did the following: |
5 |
# rm -f /etc/make.profile |
6 |
# ln -sf /usr/portage/profiles/selinux/2005.1/amd64 /etc/make.profile |
7 |
|
8 |
Checked that my headers were up-to-date (remerged glibc) and proceeded |
9 |
to try and use emerge which failed with the error I posted. |
10 |
|
11 |
By reversing the process and removing the make.profile and linking it |
12 |
back to /usr/portage/profiles/default-linux/amd64... emerge works again. |
13 |
|
14 |
Michael wrote: |
15 |
|
16 |
> I think your python is broken... Something is broken and since emerge |
17 |
> needs it there is no easy way to get it working again. The easiest is if |
18 |
> someone can provide the needed package as a tgz/tbz2 which you can |
19 |
> then extract to / to have emerge working again, after which you can |
20 |
> remerge the package that stopped working. My guess is it's python, |
21 |
> but I'm not 100% sure. |
22 |
> Good luck, |
23 |
> |
24 |
> Michael |
25 |
> |
26 |
> Darren Grant wrote: |
27 |
> |
28 |
>> Heya |
29 |
>> |
30 |
>> I'm trying to migrate my system over to selinux using the gentoo |
31 |
>> handbook for selinux migration. I'm following the initial |
32 |
>> preperations page and so, changed my profile, ensured I had the |
33 |
>> latest kernel headers and then emerged glibc. |
34 |
>> |
35 |
>> After doing so, I'm not trying to emerge hardened-sources but my |
36 |
>> emerge seems to be broken. |
37 |
>> |
38 |
>> Exhibit A: |
39 |
>> |
40 |
>> # emerge hardened-sources |
41 |
>> Calculating dependencies ...done! |
42 |
>> >>> emerge (1 of 1) sys-kernel/hardened-sources-2.6.14-r5 to / |
43 |
>> >>> Downloading |
44 |
>> ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/distfiles/hardened-patches-2.6.14-5.extras.tar.bz2 |
45 |
>> |
46 |
>> Traceback (most recent call last): |
47 |
>> File "/usr/bin/emerge", line 3228, in ? |
48 |
>> mydepgraph.merge(pkglist) |
49 |
>> File "/usr/bin/emerge", line 1912, in merge |
50 |
>> |
51 |
>> retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree") |
52 |
>> |
53 |
>> File "/usr/lib/portage/pym/portage.py", line 2704, in doebuild |
54 |
>> if mydo!="manifest" and not fetch(fetchme, mysettings, |
55 |
>> listonly=listonly, fetchonly=fetchonly): |
56 |
>> File "/usr/lib/portage/pym/portage.py", line 1914, in fetch |
57 |
>> con=selinux.getcontext() |
58 |
>> AttributeError: 'module' object has no attribute 'getcontext' |
59 |
>> |
60 |
>> In fact I can't emerge anything. Anyone please able to help me out |
61 |
>> and let me know what I've done wrong? Should I not be using this |
62 |
>> document for a 2005.1 install system? |
63 |
>> |
64 |
> |
65 |
-- |
66 |
gentoo-hardened@g.o mailing list |