dev-lang/python-exec-9999: Use Python wrapper for Python scripts
authorMichał Górny <mgorny@gentoo.org>
Tue, 16 Feb 2016 22:40:41 +0000 (23:40 +0100)
committerMichał Górny <mgorny@gentoo.org>
Tue, 16 Feb 2016 22:56:46 +0000 (23:56 +0100)
dev-lang/python-exec/python-exec-9999.ebuild

index 2b77cc79e78abadc3a09ae0f0991479d7bf32566..b835c894838dd45e8bec563ff35db9c0d2e3444d 100644 (file)
@@ -68,11 +68,17 @@ src_install() {
        insinto /etc/python-exec
        doins "${T}"/python-exec.conf
 
-       # Create Python interpreter executable wrappers
        local f
-       for f in python{,2,3}{,-config} 2to3 idle pydoc pyvenv; do
+       for f in python{,2,3}; do
+               # symlink the C wrapper for python to avoid shebang recursion
+               # bug #568974
                dosym python-exec2c /usr/bin/"${f}"
        done
+       for f in python{,2,3}-config 2to3 idle pydoc pyvenv; do
+               # those are python scripts (except for new python-configs)
+               # so symlink them via the python wrapper
+               dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}"
+       done
 }
 
 pkg_preinst() {