Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498356 - app-admin/eselect-python: python-wrapper ignores EPREFIX
Summary: app-admin/eselect-python: python-wrapper ignores EPREFIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-17 14:06 UTC by Justin Lecher (RETIRED)
Modified: 2014-01-25 17:05 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 Justin Lecher (RETIRED) gentoo-dev 2014-01-17 14:06:31 UTC
"eselect python show" says "python2.7" but python -V says 3.3.3.

 $ type python
python is EPREFIX/usr/bin/python


 $ eix eselect-python
[I] app-admin/eselect-python
     Available versions:  20111108 20131210
     Installed versions:  20131210(10:03:19 17/01/14)
     Homepage:            http://www.gentoo.org/proj/en/Python/
     Description:         Eselect module for management of multiple Python versions

 $ eix -e python
[I] dev-lang/python
     Available versions:  
     (2.7)  2.7.5-r4
     (3.2)  3.2.5-r3
     (3.3)  3.3.3

$ eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.2
  [3]   python3.3

 $ eselect python show
python2.7

$ ll /opt/scisoft64/usr/bin/python
lrwxrwxrwx 1 scisoft scisoft 14 Jan 17 14:58 /opt/scisoft64/usr/bin/python -> python-wrapper


 $ strace -e open python -V

...

open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/etc/env.d/python/config", O_RDONLY) = -1 ENOENT (No such file or directory)

...


Seems to be an error there.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2014-01-17 14:09:57 UTC
Simply fixing the hardcoded path to the config file solves this problem.
Comment 2 Fabian Groffen gentoo-dev 2014-01-17 16:05:07 UTC
oh oh, feels like the code doesn't take the prefix into account
Comment 3 Mike Gilbert gentoo-dev 2014-01-19 08:35:39 UTC
This should fix it. Please test, and if successful I will cut another release.

http://git.overlays.gentoo.org/gitweb/?p=proj/eselect-python.git;a=patch;h=4c49cdcea51b8369e7b1a54ded2ab290b241a317
Comment 4 Fabian Groffen gentoo-dev 2014-01-19 09:19:15 UTC
that should do, I just have to investigate if we need to do something about the hardcoded fall-back PATH.
Comment 5 Fabian Groffen gentoo-dev 2014-01-24 19:47:51 UTC
Ok, tested, seems to work ok.  Please release.
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2014-01-25 16:00:33 UTC
(In reply to Fabian Groffen from comment #5)
> Ok, tested, seems to work ok.  Please release.

same here.
Comment 7 Mike Gilbert gentoo-dev 2014-01-25 17:05:56 UTC
+*eselect-python-20140125 (25 Jan 2014)
+
+  25 Jan 2014; Mike Gilbert <floppym@gentoo.org>
+  +eselect-python-20140125.ebuild:
+  Version bump. Includes fix for gentoo-prefix.