From nobody Wed Feb 11 03:02:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516891175115702.7401696498097; Thu, 25 Jan 2018 06:39:35 -0800 (PST) Received: from localhost ([::1]:44163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeigg-0002OL-Fx for importer@patchew.org; Thu, 25 Jan 2018 09:39:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeiZp-0005U6-AU for qemu-devel@nongnu.org; Thu, 25 Jan 2018 09:32:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeiZl-0006t2-5r for qemu-devel@nongnu.org; Thu, 25 Jan 2018 09:32:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58150) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eeiZl-0006s0-12 for qemu-devel@nongnu.org; Thu, 25 Jan 2018 09:32:25 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5D93212E4FC for ; Thu, 25 Jan 2018 14:32:24 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-227.ams2.redhat.com [10.36.116.227]) by smtp.corp.redhat.com (Postfix) with ESMTP id 04B8B60C9D; Thu, 25 Jan 2018 14:32:24 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 1E5AD17443; Thu, 25 Jan 2018 15:32:19 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Thu, 25 Jan 2018 15:32:16 +0100 Message-Id: <20180125143218.29528-7-kraxel@redhat.com> In-Reply-To: <20180125143218.29528-1-kraxel@redhat.com> References: <20180125143218.29528-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 25 Jan 2018 14:32:24 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 6/8] ui: deprecate use of SDL 1.2 in favour of 2.0 series X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gerd Hoffmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" From: "Daniel P. Berrange" The SDL 2.0 release was made in Aug, 2013: https://www.libsdl.org/release/ That will soon be 4 + 1/2 years ago, which is enough time to consider the 2.0 series widely supported. Thus we deprecate the SDL 1.2 support, which will allow us to delete it in the last release of 2018. By this time, SDL 2.0 will be more than 5 years old. Signed-off-by: Daniel P. Berrange Reviewed-by: Marc-Andr=C3=A9 Lureau Message-id: 20180115142533.24585-1-berrange@redhat.com Signed-off-by: Gerd Hoffmann --- configure | 6 ++++++ ui/sdl.c | 3 +++ qemu-doc.texi | 7 +++++++ 3 files changed, 16 insertions(+) diff --git a/configure b/configure index 044c6fafe2..96dee6572c 100755 --- a/configure +++ b/configure @@ -5668,6 +5668,12 @@ if test "$gtkabi" =3D "2.0"; then echo "WARNING: future releases. Please switch to using GTK 3.0" fi =20 +if test "$sdlabi" =3D "1.2"; then + echo + echo "WARNING: Use of SDL 1.2 is deprecated and will be removed in" + echo "WARNING: future releases. Please switch to using SDL 2.0" +fi + if test "$supported_cpu" =3D "no"; then echo echo "WARNING: SUPPORT FOR THIS HOST CPU WILL GO AWAY IN FUTURE RELEAS= ES!" diff --git a/ui/sdl.c b/ui/sdl.c index afb4992da2..f26048d3a2 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -918,6 +918,9 @@ void sdl_display_init(DisplayState *ds, int full_screen= , int no_frame) exit(1); } =20 + g_printerr("Running QEMU with SDL 1.2 is deprecated, and will be remov= ed\n" + "in a future release. Please switch to SDL 2.0 instead\n"); + if (no_frame) gui_noframe =3D 1; =20 diff --git a/qemu-doc.texi b/qemu-doc.texi index 3e9eb819a6..79d08b3f04 100644 --- a/qemu-doc.texi +++ b/qemu-doc.texi @@ -2596,6 +2596,13 @@ and 3.x series APIs. Support for the GTK 2.x builds = will be discontinued, so maintainers should switch to using GTK 3.x, which is the default. =20 +@subsection SDL 1.2 + +Previously QEMU has supported building against both SDL 1.2 +and 2.0 series APIs. Support for the SDL 1.2 builds will be +discontinued, so maintainers should switch to using SDL 2.0, +which is the default. + @section System emulator command line arguments =20 @subsection -tdf (since 1.3.0) --=20 2.9.3