commit: 4818de7348b27c11ecc3a9ff68bc97eb5b75030e Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> AuthorDate: Tue Nov 8 17:56:31 2022 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Sun Nov 20 08:16:37 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4818de73
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 <AT> gentoo.org> app-emulation/virtualbox/virtualbox-7.0.4.ebuild | 5 +++++ 1 file changed, 5 insertions(+) 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() {