diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2022-11-08 19:56:31 +0200 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2022-11-20 10:16:37 +0200 |
commit | 4818de7348b27c11ecc3a9ff68bc97eb5b75030e (patch) | |
tree | eb7cb6835cf74026fe2fa9478f0ef5aa29e8c208 /app-emulation/virtualbox | |
parent | app-emulation/virtualbox: add 7.0.4 (diff) | |
download | gentoo-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.ebuild | 5 |
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/←/\←/g' \ -e 's/→/\→/g' \ -e 's/↔/\↔/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/'[^&]*\(vboxdrv setup\|vboxconfig\)'/\'emerge -1 virtualbox-modules\'/' {} \+ || 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() { |