Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 280229

Summary: eselect-python via new bash script wrapper breaks: eselect python show
Product: Gentoo Linux Reporter: jon R-B <jon.roadleybattin>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://gentoo.org
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /usr/share/eselect/modules/python.eselect patch to support bash wrapper

Description jon R-B 2009-08-03 22:14:16 UTC
at present the eselect-python module has been updated to generate a python bash wrapper script (for python multiABI support?) 
Problem is other supporting function of eselect (show and list) are not fully supported for this method

eselect python show 
output: python

eselect python list
output:
Available python interpreters:
  [1]   python2.5
  [2]   python2.6
  [3]   python3.1

both these output rely on the output of a bash function: canonicalise 
which is essentially /bin/readlink -f "$@"
problem is /usr/bin/python is no longer a symlink

Suggested patch checks if /usr/bin/python is a symlink. If so continues as normal, if not performs a grep to extract the python version from the bash script 

eselect python show
python2.6
FluidMotion libs # eselect python list
Available python interpreters:
  [1]   python2.5
  [2]   python2.6 *
  [3]   python3.1


output as per old 



Reproducible: Always
Comment 1 jon R-B 2009-08-03 22:15:37 UTC
Created attachment 200064 [details]
/usr/share/eselect/modules/python.eselect patch to support bash wrapper
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-03 22:23:56 UTC
This bug will be fixed by the patch available in bug #279915.

*** This bug has been marked as a duplicate of bug 279915 ***