Summary: | dev-lang/python-2.6: execprefix has double-slash => all distutils ebuilds fail | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Steven Robertson <nihilismwow> |
Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arfrever, candrews, dsdale24, pqGungnir, teidakankan |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 230205 |
Description
Steven Robertson
2008-10-05 21:05:59 UTC
Aha. $ ls -l /usr/bin/python lrwxrwxrwx 1 root root 19 2008-10-05 18:56 /usr/bin/python -> //usr/bin/python2.6 # eselect python set 1 # eselect python set 2 # ls -l /usr/bin/python lrwxrwxrwx 1 root root 18 2008-10-05 21:28 /usr/bin/python -> /usr/bin/python2.6 ...not sure why, but when the ebuild installed, it added an extra slash to the linked path. manually eselecting the old python then the new one again installed a correct link. *** Bug 240530 has been marked as a duplicate of this bug. *** (In reply to comment #1) > $ ls -l /usr/bin/python > lrwxrwxrwx 1 root root 19 2008-10-05 18:56 /usr/bin/python -> > //usr/bin/python2.6 > > # eselect python set 1 > # eselect python set 2 > # ls -l /usr/bin/python > lrwxrwxrwx 1 root root 18 2008-10-05 21:28 /usr/bin/python -> > /usr/bin/python2.6 > > ...not sure why, but when the ebuild installed, it added an extra slash to the > linked path. manually eselecting the old python then the new one again > installed a correct link. python.eselect contains INTERPRETER_PATH="${ROOT}/usr/bin/". ROOT is set to "/" during emerging, but is usually unset in normal shell sessions. --- python.eselect +++ python.eselect @@ -8,6 +8,7 @@ VERSION=$(svn_date_to_version "${SVN_DATE}" ) -INTERPRETER_PATH="${ROOT}/usr/bin/" -MAN_PATH="${ROOT}/usr/share/man/man1/" +[[ "${ROOT}" != */ ]] && ROOT="${ROOT}/" +INTERPRETER_PATH="${ROOT}usr/bin/" +MAN_PATH="${ROOT}usr/share/man/man1/" # find a list of python versions @@ -166,5 +167,5 @@ done - if [[ -L "${ROOT}/usr/bin/python" ]]; then + if [[ -L "${ROOT}usr/bin/python" ]]; then ${if_unset} && return fi How about if [[ -L "${ROOT%/}/usr/bin/python" ]]; then that allows for both "" and "/". eselect-python-20080925 fixes this issue. python-2.6-r3 depends on it. Thanks everyone :) |