summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2022-11-08 19:56:31 +0200
committerViorel Munteanu <ceamac@gentoo.org>2022-11-20 10:16:37 +0200
commit4818de7348b27c11ecc3a9ff68bc97eb5b75030e (patch)
treeeb7cb6835cf74026fe2fa9478f0ef5aa29e8c208 /app-emulation/virtualbox
parentapp-emulation/virtualbox: add 7.0.4 (diff)
downloadgentoo-4818de7348b27c11ecc3a9ff68bc97eb5b75030e.tar.gz
gentoo-4818de7348b27c11ecc3a9ff68bc97eb5b75030e.tar.bz2
gentoo-4818de7348b27c11ecc3a9ff68bc97eb5b75030e.zip
app-emulation/virtualbox: fix wrong message about modules
Replace `/etc/init.d/vboxdrv setup` with `emerge -1 virtualbox-modules` Closes: https://bugs.gentoo.org/489208 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'app-emulation/virtualbox')
-rw-r--r--app-emulation/virtualbox/virtualbox-7.0.4.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/app-emulation/virtualbox/virtualbox-7.0.4.ebuild b/app-emulation/virtualbox/virtualbox-7.0.4.ebuild
index 52822b428dc3..19b135f43be7 100644
--- a/app-emulation/virtualbox/virtualbox-7.0.4.ebuild
+++ b/app-emulation/virtualbox/virtualbox-7.0.4.ebuild
@@ -309,6 +309,11 @@ src_prepare() {
-e 's/&larr;/\&#8592;/g' \
-e 's/&rarr;/\&#8594;/g' \
-e 's/&harr;/\&#8596;/g' {} \+ || die
+
+ # 489208
+ # Cannot patch the whole text, many translations. Use sed instead to replace the command
+ find src/VBox/Frontends/VirtualBox/nls -name \*.ts -exec sed -i 's/&apos;[^&]*\(vboxdrv setup\|vboxconfig\)&apos;/\&apos;emerge -1 virtualbox-modules\&apos;/' {} \+ || die
+ sed -i "s:'/sbin/vboxconfig':'emerge -1 virtualbox-modules':" src/VBox/Frontends/VirtualBox/src/main.cpp src/VBox/VMM/VMMR3/VM.cpp
}
src_configure() {