commit:     d1e553ee971b105c5bfe7835d693df82d90044f6
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 19 14:38:07 2022 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun Nov 20 08:18:42 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1e553ee

app-emulation/virtualbox: fix regression with USE="headless sdl"

Bug: https://bugs.gentoo.org/678534
Closes: https://github.com/gentoo/gentoo/pull/28229
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 app-emulation/virtualbox/virtualbox-7.0.2.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/app-emulation/virtualbox/virtualbox-7.0.2.ebuild 
b/app-emulation/virtualbox/virtualbox-7.0.2.ebuild
index 1a1bd3355268..bc613d5df1fa 100644
--- a/app-emulation/virtualbox/virtualbox-7.0.2.ebuild
+++ b/app-emulation/virtualbox/virtualbox-7.0.2.ebuild
@@ -201,6 +201,11 @@ pkg_pretend() {
                einfo "USE=\"headless\", this build will not include any X11/Qt 
frontend."
        fi
 
+       if use headless && use sdl; then
+               einfo "You selected USE=\"headless sdl\", defaulting to"
+               einfo "USE=\"headless\", this build will not include SDL."
+       fi
+
        if ! use opengl; then
                einfo "No USE=\"opengl\" selected, this build will lack"
                einfo "the OpenGL feature."
@@ -289,7 +294,7 @@ src_prepare() {
                CFLAGS=${CFLAGS}
        EOF
 
-       if use sdl; then
+       if ! use headless && use sdl; then
                echo -e "\nVBOX_WITH_VBOXSDL=1" >> LocalConfig.kmk || die
        fi
 

Reply via email to