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