commit: c14d32c0676b713d8730c2e356e7a9bb74ad242f Author: Justin Lecher <jlec <AT> gentoo <DOT> org> AuthorDate: Sat Dec 3 19:11:18 2016 +0000 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> CommitDate: Sat Dec 3 19:11:35 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c14d32c0
net-misc/openvswitch: Fix python shebangs Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=599368 Package-Manager: portage-2.3.2 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> net-misc/openvswitch/metadata.xml | 28 ++++++++++++------------ net-misc/openvswitch/openvswitch-2.6.0-r1.ebuild | 3 ++- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/net-misc/openvswitch/metadata.xml b/net-misc/openvswitch/metadata.xml index f20e0a0..75bd0ce 100644 --- a/net-misc/openvswitch/metadata.xml +++ b/net-misc/openvswitch/metadata.xml @@ -1,18 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="person"> -<email>[email protected]</email> -</maintainer> -<maintainer type="person"> -<email>[email protected]</email> -</maintainer> -<maintainer type="project"> - <email>[email protected]</email> - <name>Gentoo Virtualization Project</name> -</maintainer> -<use> - <flag name="monitor">Build the Python and GUI dependent monitor applications</flag> - <flag name="pyside">Use <pkg>dev-python/pyside</pkg> instead of <pkg>dev-python/PyQt4</pkg> for Python/Qt-bindings when building with USE=monitor.</flag> -</use> + <maintainer type="person"> + <email>[email protected]</email> + </maintainer> + <maintainer type="person"> + <email>[email protected]</email> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Virtualization Project</name> + </maintainer> + <use> + <flag name="monitor">Build the Python and GUI dependent monitor applications</flag> + <flag name="pyside">Use <pkg>dev-python/pyside</pkg> instead of <pkg>dev-python/PyQt4</pkg> for Python/Qt-bindings when building with USE=monitor.</flag> + </use> </pkgmetadata> diff --git a/net-misc/openvswitch/openvswitch-2.6.0-r1.ebuild b/net-misc/openvswitch/openvswitch-2.6.0-r1.ebuild index 4c6000a..93a0483 100644 --- a/net-misc/openvswitch/openvswitch-2.6.0-r1.ebuild +++ b/net-misc/openvswitch/openvswitch-2.6.0-r1.ebuild @@ -90,7 +90,8 @@ src_install() { local SCRIPT for SCRIPT in ovs-{pcap,parse-backtrace,dpctl-top,l3ping,tcpundump,test,vlan-test} bugtool/ovs-bugtool; do - python_replicate_script utilities/"${SCRIPT}" + sed -e '1s|^.*$|#!/usr/bin/python|' -i utilities/"${SCRIPT}" || die + python_foreach_impl python_doscript utilities/"${SCRIPT}" done # monitor is statically enabled for bug 596206
