Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411005 - SELinux Handbook: recent systems do not have python2 installed at all
Summary: SELinux Handbook: recent systems do not have python2 installed at all
Status: RESOLVED FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Project-specific documentation (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/proj/en/hardene...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-06 08:22 UTC by Paweł Hajdan, Jr. (RETIRED)
Modified: 2012-04-10 20:20 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 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-04-06 08:22:46 UTC
SELinux Handbook tells people to switch to python2, but when installing from recent stages python2 is not present at all on the system.

The guide should tell people to install python2 if it's missing:

emerge --noreplace python:2.7
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2012-04-06 11:15:04 UTC
Doesn't it pull this in automatically?

We package.use.force USE="python2" for portage in our profiles.

That said, we might want to verify if python3 now works fully on SELinux or not. Recent userland utilities already have some Python-3 changes in them (currently marked as ~arch, ETA stabilization 20120430).
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-04-09 17:32:09 UTC
(In reply to comment #1)
> Doesn't it pull this in automatically?

I don't know - the stage3 didn't contain python2, and the SELinux Handbook has the following order of operations:

1. eselect python set ...
2. eselect profile set ...
3. emerge -uDNa world

Only step #3 has the potential to pull in python2, and I've just done it manually before #1.

> We package.use.force USE="python2" for portage in our profiles.

Now emerge --depclean --verbose --pretend python:2.7 shows that it's pulled by portage, among others.
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2012-04-10 20:20:12 UTC
Fixed in CVS