summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2012-09-14 10:47:27 +0000
committerLars Wendler <polynomial-c@gentoo.org>2012-09-14 10:47:27 +0000
commit9b35444157d8739f4ed5e23a1d9bd94e2e8744a4 (patch)
tree8e3bb24c1e6517daf981bd3539bba14a6c1992f2 /app-emulation
parentBump mtl to 2.1.2 (diff)
downloadgentoo-2-9b35444157d8739f4ed5e23a1d9bd94e2e8744a4.tar.gz
gentoo-2-9b35444157d8739f4ed5e23a1d9bd94e2e8744a4.tar.bz2
gentoo-2-9b35444157d8739f4ed5e23a1d9bd94e2e8744a4.zip
Fixed separators in sed substitute commands to not collide with path separators (bug #435000)
(Portage version: 2.2.0_alpha128/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/virtualbox/ChangeLog7
-rw-r--r--app-emulation/virtualbox/virtualbox-4.1.22.ebuild14
-rw-r--r--app-emulation/virtualbox/virtualbox-4.2.0-r1.ebuild14
3 files changed, 20 insertions, 15 deletions
diff --git a/app-emulation/virtualbox/ChangeLog b/app-emulation/virtualbox/ChangeLog
index 43b609b99689..deb454954cbd 100644
--- a/app-emulation/virtualbox/ChangeLog
+++ b/app-emulation/virtualbox/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-emulation/virtualbox
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.128 2012/09/14 06:01:15 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.129 2012/09/14 10:47:27 polynomial-c Exp $
+
+ 14 Sep 2012; Lars Wendler <polynomial-c@gentoo.org> virtualbox-4.1.22.ebuild,
+ virtualbox-4.2.0-r1.ebuild:
+ Fixed separators in sed substitute commands to not collide with path
+ separators. Thanks to Zabuldon for reporting this in bug #435000.
*virtualbox-4.2.0-r1 (14 Sep 2012)
diff --git a/app-emulation/virtualbox/virtualbox-4.1.22.ebuild b/app-emulation/virtualbox/virtualbox-4.1.22.ebuild
index bfe77b09f95c..37194432306b 100644
--- a/app-emulation/virtualbox/virtualbox-4.1.22.ebuild
+++ b/app-emulation/virtualbox/virtualbox-4.1.22.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.1.22.ebuild,v 1.1 2012/09/09 15:23:01 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.1.22.ebuild,v 1.2 2012/09/14 10:47:27 polynomial-c Exp $
EAPI=4
@@ -138,7 +138,7 @@ src_prepare() {
rm -rf kBuild/bin tools
# Disable things unused or split into separate ebuilds
- sed -e "s/MY_LIBDIR/$(get_libdir)/" \
+ sed -e "s@MY_LIBDIR@$(get_libdir)@" \
"${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die
# unset useless/problematic checks in configure
@@ -150,7 +150,7 @@ src_prepare() {
epatch "${FILESDIR}/${PN}-4.1.4-asneeded.patch"
# Respect LDFLAGS
- sed -e "s/_LDFLAGS\.${ARCH}*.*=/& ${LDFLAGS}/g" \
+ sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die
# We still want to use ${HOME}/.VirtualBox/Machines as machines dir.
@@ -162,14 +162,14 @@ src_prepare() {
# Use PAM only when pam USE flag is enbaled (bug #376531)
if ! use pam ; then
elog "Disabling PAM removes the possibility to use the VRDP features."
- sed -i 's/^.*VBOX_WITH_PAM/#VBOX_WITH_PAM/' Config.kmk || die
- sed -i 's;\(.*/auth/Makefile.kmk.*\);#\1;' \
+ sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
+ sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
src/VBox/HostServices/Makefile.kmk || die
fi
# add correct java path
if use java ; then
- sed "s:/usr/lib/jvm/java-6-sun:$(java-config -O):" \
+ sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
-i "${S}"/Config.kmk || die
java-pkg-opt-2_src_prepare
fi
@@ -232,7 +232,7 @@ src_install() {
# Set the right libdir
sed -i \
- -e "s/MY_LIBDIR/$(get_libdir)/" \
+ -e "s@MY_LIBDIR@$(get_libdir)@" \
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
# Symlink binaries to the shipped wrapper
diff --git a/app-emulation/virtualbox/virtualbox-4.2.0-r1.ebuild b/app-emulation/virtualbox/virtualbox-4.2.0-r1.ebuild
index 336ba6cd29d3..6184a75452cc 100644
--- a/app-emulation/virtualbox/virtualbox-4.2.0-r1.ebuild
+++ b/app-emulation/virtualbox/virtualbox-4.2.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.2.0-r1.ebuild,v 1.1 2012/09/14 06:01:15 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.2.0-r1.ebuild,v 1.2 2012/09/14 10:47:27 polynomial-c Exp $
EAPI=4
@@ -140,7 +140,7 @@ src_prepare() {
rm -rf kBuild/bin tools
# Disable things unused or split into separate ebuilds
- sed -e "s/MY_LIBDIR/$(get_libdir)/" \
+ sed -e "s@MY_LIBDIR@$(get_libdir)@" \
"${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die
# unset useless/problematic checks in configure
@@ -152,7 +152,7 @@ src_prepare() {
epatch "${FILESDIR}/${PN}-4.1.4-asneeded.patch"
# Respect LDFLAGS
- sed -e "s/_LDFLAGS\.${ARCH}*.*=/& ${LDFLAGS}/g" \
+ sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die
# We still want to use ${HOME}/.VirtualBox/Machines as machines dir.
@@ -164,14 +164,14 @@ src_prepare() {
# Use PAM only when pam USE flag is enbaled (bug #376531)
if ! use pam ; then
elog "Disabling PAM removes the possibility to use the VRDP features."
- sed -i 's/^.*VBOX_WITH_PAM/#VBOX_WITH_PAM/' Config.kmk || die
- sed -i 's;\(.*/auth/Makefile.kmk.*\);#\1;' \
+ sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
+ sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
src/VBox/HostServices/Makefile.kmk || die
fi
# add correct java path
if use java ; then
- sed "s:/usr/lib/jvm/java-6-sun:$(java-config -O):" \
+ sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
-i "${S}"/Config.kmk || die
java-pkg-opt-2_src_prepare
fi
@@ -234,7 +234,7 @@ src_install() {
# Set the right libdir
sed -i \
- -e "s/MY_LIBDIR/$(get_libdir)/" \
+ -e "s@MY_LIBDIR@$(get_libdir)@" \
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
# Symlink binaries to the shipped wrapper