On 03/12/2014 10:38 AM, James wrote:
> ...
> So you saying go into package.use and set python2 flag for portage
> resulting in something like this:
>
> [ebuild R ] sys-apps/portage-2.2.8-r1 USE="(ipc) python2* -build -doc
> -epydoc (-pypy2_0) -python3 (-selinux) -xattr" LINGUAS="-ru"
> PYTHON_TARGETS="python2_7 python3_3 (-pypy2_0) -python2_6 -python3_2
> (-python3_4)" 0 kB
>
Yes, exactly. Portage will use whatever the default interpreter is,
unless you have either USE=python2 or USE=python3 (but not both). It
will still its files per PYTHON_TARGETS, but emerge and other commands
will only use the interpreter you specify.
I have this in /etc/portage/package.use/portage on my hardened hosts::
# vim: set ft=gentoo-package-use :
# Dustin C. Hatch <[email protected]> (09 Jan 2014)
# Force Portage to use Python 2 (required by SELinux module)
sys-apps/portage python2
--
♫Dustin
http://dustin.hatch.name/