commit:     594f4b33b3083991a6da556f814e17fda9a4f1f9
Author:     Tomas Mozes <tmozes <AT> sygic <DOT> com>
AuthorDate: Mon Oct 16 12:30:49 2017 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Tue Oct 17 07:24:31 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=594f4b33

app-emulation/xen-tools: fix bashism

Closes: https://github.com/gentoo/gentoo/pull/5962
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 app-emulation/xen-tools/xen-tools-4.8.2-r2.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app-emulation/xen-tools/xen-tools-4.8.2-r2.ebuild 
b/app-emulation/xen-tools/xen-tools-4.8.2-r2.ebuild
index 235f97cb493..1aac5f357a3 100644
--- a/app-emulation/xen-tools/xen-tools-4.8.2-r2.ebuild
+++ b/app-emulation/xen-tools/xen-tools-4.8.2-r2.ebuild
@@ -324,6 +324,10 @@ src_prepare() {
        sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
                -i tools/hotplug/Linux/init.d/xencommons.in || die
 
+       # fix bashishm
+       sed -e '/Usage/s/\$//g' \
+               -i tools/hotplug/Linux/init.d/xendriverdomain.in || die
+
        # respect multilib, usr/lib/libcacard.so.0.0.0
        sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
                -i tools/qemu-xen/configure || die

Reply via email to