🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4593

Bug#1038591: virtualbox: unnecessary Build-Depends on SDL 1.2

#4593
From: Simon McVittie
Date: Sun, 15 Nov 2026 14:00
129 lines
6188 bytes
--dJhEnnaZHjPM7WJy
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline

Control: retitle -1 virtualbox: unnecessary Build-Depends on SDL 1.2
Control: tags -1 + patch

On Sun, 18 Jun 2023 at 18:12:37 +0100, Simon McVittie wrote:
>This package has a Build-Depends on SDL version 1.2, which
>is unmaintained upstream. I don't see any sign of a runtime dependency
>on SDL 1.2, though, only SDL 2 - is the build-dependency left over from
>before the upstream package was converted to SDL 2?

It looks as though ./configure also checks for SDL 1.2, but then the 
result of that check isn't really used for anything (except possibly 
enabling SDL2 support), and the actual build system uses SDL2.

Please consider the attached patch. I tried building with and without 
this patch in current unstable and compared the results using 
diffoscope, and the only differences seem to be in build-IDs. Not tested 
beyond that, I don't use Virtualbox myself.

     smcv

--dJhEnnaZHjPM7WJy
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename=0001-d-control-d-patches-Don-t-require-obsolete-SDL-1.2.patch

From 958325d56bde2f1f323ed186803ea681bf3eebeb Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@debian.org>
Date: Sun, 15 Nov 2026 12:44:27 +0000
Subject: [PATCH] d/control, d/patches: Don't require obsolete SDL 1.2

The build system still checks for it, but the built binaries used SDL2
instead.

Closes: #1038591
---
 debian/control                                |  1 -
 ...for-SDL2-instead-of-obsolete-SDL-1.2.patch | 52 +++++++++++++++++++
 debian/patches/series                         |  1 +
 3 files changed, 53 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/configure-Check-for-SDL2-instead-of-obsolete-SDL-1.2.patch

diff --git a/debian/control b/debian/control
index 146f4984..484b9253 100644
--- a/debian/control
+++ b/debian/control
@@ -41,7 +41,6 @@ Build-Depends: bzip2,
                libqt6opengl6-dev,
                qt6-scxml-dev,
                qt6-tools-dev,
-               libsdl1.2-dev,
                libsdl2-dev,
                libssl-dev,
 #               libslirp-dev,
diff --git a/debian/patches/configure-Check-for-SDL2-instead-of-obsolete-SDL-1.2.patch b/debian/patches/configure-Check-for-SDL2-instead-of-obsolete-SDL-1.2.patch
new file mode 100644
index 00000000..a940ec3c
--- /dev/null
+++ b/debian/patches/configure-Check-for-SDL2-instead-of-obsolete-SDL-1.2.patch
@@ -0,0 +1,52 @@
+From: Simon McVittie <smcv@debian.org>
+Date: Sun, 15 Nov 2026 12:43:19 +0000
+Subject: configure: Check for SDL2 instead of obsolete SDL 1.2
+
+Bug-Debian: https://bugs.debian.org/1038591
+---
+ configure | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/configure b/configure
+index 61eefae..e97d4a7 100755
+--- a/configure
++++ b/configure
+@@ -1149,7 +1149,7 @@ EOF
+ 
+ #
+ # Check for the SDL library, needed by VBoxSDL and VirtualBox
+-# We depend at least on version 1.2.7
++# We depend at least on version 2.0.0
+ #
+ check_sdl()
+ {
+@@ -1169,11 +1169,11 @@ check_sdl()
+       fail
+     fi
+   else
+-    if which_wrapper sdl-config > /dev/null; then
+-      FLGSDL=`sdl-config --cflags`
++    if which_wrapper pkg-config > /dev/null; then
++      FLGSDL=`pkg-config sdl2 --cflags`
+       INCSDL=`strip_I "$FLGSDL"`
+-      LIBSDL=`sdl-config --libs`
+-      LIBSDLMAIN="-lSDLmain"
++      LIBSDL=`pkg-config sdl2 --libs`
++      LIBSDLMAIN="-lSDL2main"
+       FLDSDL=
+       foundsdl=1
+     fi
+@@ -1189,11 +1189,11 @@ extern "C" int main(int argc, char** argv)
+ {
+   printf("found version %d.%d.%d",
+          SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL);
+-#if SDL_VERSION_ATLEAST(1,2,15)
++#if SDL_VERSION_ATLEAST(2,0,0)
+   printf(", OK.\n");
+   return 0;
+ #else
+-  printf(", expected version 1.2.15 or higher\n");
++  printf(", expected version 2.0.0 or higher\n");
+   return 1;
+ #endif
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 35c46059..72c8b24c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -15,3 +15,4 @@
 37-do-not-run-if-not-in-vm.patch
 #system-libslirp.patch
 024-soapC.patch
+configure-Check-for-SDL2-instead-of-obsolete-SDL-1.2.patch
-- 
2.55.0


--dJhEnnaZHjPM7WJy--
Technical Details
Message-ID: <NZIVX-c395-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <GI4ed-gQBr-3@gated-at.bofh.it> <GI4ed-gQBr-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Simon McVittie <smcv@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1038591: virtualbox: unnecessary Build-Depends on SDL 1.2
Date: Sun, 15 Nov 2026 15:00:01 +0100
Message-ID: <NZIVX-c395-5@gated-at.bofh.it>
References: <GI4ed-gQBr-3@gated-at.bofh.it> <GI4ed-gQBr-3@gated-at.bofh.it>
X-Original-To: 1038591@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov 15 13:55:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Simon McVittie <smcv@debian.org>, 1038591@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+debian-virtualbox@tracker.debian.org
X-Debian-Pr-Message: followup 1038591
X-Debian-Pr-Package: virtualbox
X-Debian-Pr-Keywords: forky sid trixie
X-Debian-Pr-Source: virtualbox
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="dJhEnnaZHjPM7WJy"
Content-Disposition: inline
X-Debian-User: smcv
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002746
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 129
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 15 Nov 2026 13:53:02 +0000
X-Original-Message-ID: <avm5PtavZxd_18s4@definition.pseudorandom.co.uk>
X-Original-References: <ZI87BcOigAl7tXWT@tautology.pseudorandom.co.uk> <ZI87BcOigAl7tXWT@tautology.pseudorandom.co.uk>