Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 199837 Details for
Bug 279875
app-admin/eselect-python wrapper scripts should have /bin/bash shebang
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bash -> POSIX for the wrapper scripts
eselect-python-20090801-POSIX.patch (text/plain), 1.06 KB, created by
Martin Väth
on 2009-08-01 18:57:16 UTC
(
hide
)
Description:
bash -> POSIX for the wrapper scripts
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2009-08-01 18:57:16 UTC
Size:
1.06 KB
patch
obsolete
>--- python.eselect-20090801 >+++ python.eselect-20090801 >@@ -27,10 +27,12 @@ > set_python_script() { > local script="${INTERPRETER_PATH}${1}" target="${2}" > cat << EOF > "${script}" >-#!/bin/bash >+#!/bin/sh > # Gentoo Python wrapper script > >-[[ "\${EPYTHON}" =~ (/|^python\$) ]] && EPYTHON="${target}" >+case "\${EPYTHON}" in >+ */*|python) EPYTHON="${target}";; >+esac > "\${0%/*}/\${EPYTHON:-${target}}" "\$@" > EOF > chmod +x "${script}" >@@ -39,12 +41,17 @@ > set_python_config_script() { > local script="${INTERPRETER_PATH}${1}" target="${2}" > cat << EOF > "${script}" >-#!/bin/bash >+#!/bin/sh > # Gentoo python-config wrapper script > >-[[ "\${EPYTHON}" =~ (/|^python\$) ]] && EPYTHON="${target/-config-/}" >-python_config="\${EPYTHON/python/python-config-}" >-"\${0%/*}/\${python_config:-${target}}" "\$@" >+case "\${EPYTHON}" in >+ */*|python) EPYTHON="${target/-config-/}";; >+esac >+: \${python_config:=${target}} >+case "\${EPYTHON}" in *python*) >+ python_config="\${EPYTHON%%python*}python-config-\${EPYTHON#*python}";; >+esac >+"\${0%/*}/\${python_config}" "\$@" > EOF > chmod +x "${script}" > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 279875
: 199837