Gentoo Archives: gentoo-user

From: Andrew Lowe <agl@×××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] llvm install and python_fix_shebang: EPYTHON unset
Date: Mon, 18 Jul 2016 13:18:39
Message-Id: a83c0b81-7c60-5cb5-aa21-b3d8dd521740@wht.com.au
In Reply to: Re: [gentoo-user] llvm install and python_fix_shebang: EPYTHON unset by Fernando Rodriguez
1 On 18/07/16 20:03, Fernando Rodriguez wrote:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA256
4 >
5 > On 07/18/2016 07:19 AM, Andrew Lowe wrote:
6 >> Hi all,
7 >> I'm attempting to update llvm & clang and am getting a failure. Portage is reporting:
8 >>
9 >> * ERROR: sys-devel/llvm-3.8.1::gentoo failed (install phase):
10 >> * python_fix_shebang: EPYTHON unset (pkg_setup not called?)
11 >>
12 >> I've looked in the ebuild and can't even find a mention of EPYTHON. I've tried:
13 >>
14 >> export EPYTHON=python3.5
15 >>
16 >> and
17 >>
18 >> export EPYTHON=python2.7
19 >>
20 >> and still the fail persists. Anyone got any thoughts on what could be going wrong?
21 >>
22 >> Regards,
23 >> Andrew
24 >>
25 >>
26 >
27 > It is set on python-single-r1.eclass. What is the output of these commands?
28 >
29 > # eselect python list
30 > # emerge -vp sys-devel/llvm
31
32 Fernando,
33 Thanks for the reply. Output is as follows:
34
35 ****************
36
37 bluey agl # eselect python list
38 Available Python interpreters, in order of preference:
39 [1] python3.5
40 [2] python3.4
41 [3] python2.7 (fallback)
42 bluey agl #
43
44 ****************
45 Notice there is no asterisk indicating an "active" version as I would
46 expect, like if I list opengl, opencl, ruby, binutils and others.
47
48 When I noticed this, I ran python-updater and got:
49
50 ****************
51
52 bluey agl # python-updater
53 * Starting Python Updater...
54 * Main active version of Python: 3.5
55 * Active version of Python 2: 2.7
56 * Active version of Python 3: 3.5
57 * Globally supported Python ABIs in installed repositories:
58 * agl: 2.4 2.5 2.6 2.7 3.1 3.2 3.3
59 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0
60 * gentoo: 2.4 2.5 2.6 2.7 3.1 3.2 3.3
61 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0
62 * nightmare: 2.4 2.5 2.6 2.7 3.1 3.2 3.3
63 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0
64 * No packages need to be reinstalled.
65
66 ****************
67
68 Pretending to run the emerge gives me:
69
70 ****************
71 bluey agl # emerge -vp sys-devel/llvm
72 * WARNING: The FEATURES variable contains one or more values that
73 * should be disabled under normal circumstances: keeptemp keepwork
74
75 These are the packages that would be merged, in order:
76
77 Calculating dependencies ... done!
78 [ebuild U ] sys-devel/llvm-3.8.1:0/3.8.0::gentoo
79 [3.8.0-r3:0/3.8.0::gentoo] USE="clang libffi lldb ncurses
80 static-analyzer xml -debug -doc -gold -libedit -multitarget -ocaml
81 -python {-test}" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7"
82 VIDEO_CARDS="-radeon" 0 KiB
83 [ebuild U ] sys-devel/clang-3.8.1-r100:0/3.8::gentoo
84 [3.8.0-r100:0/3.8::gentoo] USE="static-analyzer -debug -multitarget
85 -python" ABI_X86="(64) -32 (-x32)" 0 KiB
86 [blocks b ] <=sys-devel/clang-3.8.1-r99
87 ("<=sys-devel/clang-3.8.1-r99" is blocking sys-devel/llvm-3.8.1)
88
89 Total: 2 packages (2 upgrades), Size of downloads: 0 KiB
90 Conflict: 1 block
91
92 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
93 * Use eselect news read to view new items.
94
95 ****************
96
97 As the error happened during the install phase, I changed from
98 "emerge...." to "ebuild llvm install". When this runs, the first line
99 that is output is the following:
100
101 python-exec: EPYTHON value invalid (/usr/bin/python2.7).
102
103 Anything else you need?
104
105 Regards,
106 Andrew

Replies

Subject Author
Re: [gentoo-user] llvm install and python_fix_shebang: EPYTHON unset Andrew Lowe <agl@×××××××.au>