Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280229 - eselect-python via new bash script wrapper breaks: eselect python show
Summary: eselect-python via new bash script wrapper breaks: eselect python show
Status: RESOLVED DUPLICATE of bug 279915
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://gentoo.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-03 22:14 UTC by jon R-B
Modified: 2009-08-03 22:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/usr/share/eselect/modules/python.eselect patch to support bash wrapper (eselect-python.patch,496 bytes, text/plain)
2009-08-03 22:15 UTC, jon R-B
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***