libsdl2 (2.32.10+dfsg-8) unstable; urgency=medium

  * d/control: Remove unnecessary B-D on fcitx-libs-dev.
    SDL doesn't actually use any headers from here, it only communicates
    with fcitx via D-Bus.
  * d/control: Request dpkg build API v1
  * d/control: Bump debhelper compat level to 14
    - Remove dependency substvars, now added automatically
  * d/watch*: Use Github API to list tags.
    The last 2.x release was long enough ago that it's no longer visible
    on the web page listing recent releases.
  * d/watch*: Repack source tarballs using xz.
    While we're repacking them anyway, they might as well be smaller.
  * Normalize formatting (debputy reformat)

 -- Simon McVittie <smcv@debian.org>  Tue, 18 Aug 2026 20:04:03 +0100

libsdl2 (2.32.10+dfsg-7) unstable; urgency=medium

  * Stop providing libsdl2-2.0-0, libsdl2-dev.
    These have now been taken over by sdl2-compat (see #1130484).
    Move the remaining packages to oldlibs.
  * d/control: Standards-Version: 4.7.4
    - Remove Priority field, no longer needed
  * d/control: Remove Rules-Requires-Root field, no longer needed
  * d/control: Remove kFreeBSD-specific dependencies.
    The kfreebsd-* family are no longer supported by dpkg.
  * d/upstream-signing-key.asc: Accept Sam's new signing key
  * d/source/lintian-overrides: Remove.
    This should no longer be needed: the Lintian bug has been fixed.
  * d/tests: Remove test coverage for libsdl2-dev.
    This is no longer built by this source package. src:sdl2-compat has
    equivalent coverage for the new libsdl2-dev.
  * d/tests/installed-tests, d/tests/flaky:
    Specifically test this "classic" SDL2 even though it is no longer
    Debian's default implementation of the API.

 -- Simon McVittie <smcv@debian.org>  Tue, 21 Apr 2026 15:56:18 +0100

libsdl2 (2.32.10+dfsg-6) unstable; urgency=medium

  * Revert "Stop providing libsdl2-2.0-0, libsdl2-dev".
    More preparation is needed in unstable first.
  * d/tests: Don't exercise (partially) static linking.
    The static library is likely to be removed when sdl2-compat takes over
    the libsdl2-2.0-0 and libsdl2-dev package names, because statically
    linking sdl2-compat is not practically useful: it still needs a
    dynamically-linked SDL3 anyway.
  * d/p/test-Don-t-expect-a-specific-error-message.patch:
    Add proposed patch relaxing test assertions to accommodate sdl2-compat.
    sdl2-compat produces different (more specific) error messages when
    it detects and prevents an integer overflow, and this doesn't seem
    like something that needs to be treated as a regression.

 -- Simon McVittie <smcv@debian.org>  Sat, 20 Dec 2025 12:17:43 +0000

libsdl2 (2.32.10+dfsg-5) experimental; urgency=medium

  * Stop providing libsdl2-2.0-0, libsdl2-dev.
    These will be taken over by sdl2-compat.
    Move the remaining packages to oldlibs.
  * d/watch{,.devel}: Convert to v5 format

 -- Simon McVittie <smcv@debian.org>  Wed, 17 Dec 2025 10:36:49 +0000

libsdl2 (2.32.10+dfsg-4) unstable; urgency=medium

  * d/*.README.Debian: Point to libsdl2-compat's README.Debian
  * Release to unstable

 -- Simon McVittie <smcv@debian.org>  Fri, 12 Sep 2025 16:01:26 +0100

libsdl2 (2.32.10+dfsg-3) experimental; urgency=medium

  * Split out a libsdl2-classic package.
    This is the reverse of libsdl2-compat: it provides "classic" SDL 2
    at a non-default location, so that it can be used as a fallback for
    any games that might regress when libsdl2-compat-shim is installed.
    We can use this as a stepping stone towards sdl2-compat becoming the
    default implementation.
  * Upload to experimental for NEW processing

 -- Simon McVittie <smcv@debian.org>  Tue, 09 Sep 2025 19:08:09 +0100

libsdl2 (2.32.10+dfsg-2) unstable; urgency=medium

  * d/rules: Enable MMX, SSE and SSE2 on any-i386.
    This appears to resolve a recent test regression on i386 with upgraded
    dependencies, quite possibly triggered by upgrading gcc to version 15.
    These extensions are officially required since Debian 13, so there
    seems no point in going to extra effort to support the i387 FPU
    any more.
  * d/rules: Explicitly disable SSE3.
    This is not currently part of the baseline on any Debian architecture.

 -- Simon McVittie <smcv@debian.org>  Tue, 09 Sep 2025 15:39:18 +0100

libsdl2 (2.32.10+dfsg-1) unstable; urgency=medium

  * New upstream stable release
  * d/p/multiarch.patch: Avoid hard-coding a list of static libraries
    in sdl2-config.
    It turns out that the list of libsdl2's static library dependencies
    is slightly different on s390x (a different number of duplicates of
    -lm), causing a multiarch conflict between s390x and everything else.
    Avoid this by using pkg-config more often.
    Add Recommends: pkgconf to the -dev package: this is now required
    for static linking, even when using the legacy sdl2-config script.
  * d/patches: Update to upstream release-2.32.x branch, commit
    release-2.32.10-2-g05c9b1618
    - Fix a FTBFS in the ALSA driver

 -- Simon McVittie <smcv@debian.org>  Wed, 03 Sep 2025 12:01:49 +0100

libsdl2 (2.32.8+dfsg-2) unstable; urgency=medium

  * Rebuild for unstable

 -- Simon McVittie <smcv@debian.org>  Sun, 10 Aug 2025 11:23:26 +0100

libsdl2 (2.32.8+dfsg-1) experimental; urgency=medium

  * New upstream stable release
    - Use getauxval() to check for Altivec on PowerPC
    - Avoid unused function warnings in cpuinfo
    - Fix Gamecube controller adapter hotplug detection
    - Fix a rare crash while trying to interrupt SDL_WaitEvent()
    - Revert a problematic change to default texture formats in the GLES2
      renderer
    - Emscripten-, PS2- and Windows-specific changes not relevant in Debian

 -- Simon McVittie <smcv@debian.org>  Tue, 03 Jun 2025 12:47:09 +0100

libsdl2 (2.32.6+dfsg-1) experimental; urgency=medium

  * New upstream stable release
    - Fix misleading SDL_BlitSurface() documentation
    - Retry reading calibration data a few times for Switch hidraw devices
    - Only include <immintrin.h> on x86, even if it somehow exists on other
      architectures
    - Avoid undefined behaviour (adding an offset to nullptr)
      in the GLES2 renderer
    - Avoid undefined behaviour (31-bit left shift) when disabling some
      event types
  * d/rules: Ensure that library is built before tests (Closes: #1105444)
  * Upload to experimental due to trixie freeze

 -- Simon McVittie <smcv@debian.org>  Wed, 14 May 2025 12:54:57 +0100

libsdl2 (2.32.4+dfsg-1) unstable; urgency=medium

  * New upstream stable release
  * d/patches: Drop patches that came from upstream, included in the
    new release
  * Standards-Version: 4.7.2 (no changes required)

 -- Simon McVittie <smcv@debian.org>  Tue, 01 Apr 2025 14:43:49 +0100

libsdl2 (2.32.2+dfsg-2) unstable; urgency=medium

  * d/patches: Update to upstream release-2.32.x branch commit
    release-2.32.2-4-gf08a5cfca
    - Handle an API change in Pipewire (Closes: #1100236)
    - Fix parsing of leading zeroes with %x in SDL_sscanf()
    - Fix a typo in documentation

 -- Simon McVittie <smcv@debian.org>  Wed, 12 Mar 2025 18:06:47 +0000

libsdl2 (2.32.2+dfsg-1) unstable; urgency=medium

  * New upstream stable release
  * Drop patches that came from upstream: included in the new release

 -- Simon McVittie <smcv@debian.org>  Mon, 03 Mar 2025 09:45:27 +0000

libsdl2 (2.32.0+dfsg-2) unstable; urgency=medium

  * d/patches: Update to upstream release-2.32.x branch commit
    release-2.32.0-12-g024c27645, excluding Emscripten-, Github-, macOS-,
    OS/2- and Windows-specific changes
    - d/p/Changed-PULSEAUDIO_FlushRecording-to-only-flush-audio-pre.patch:
      Fix audio capture regression since 2.30 with PulseAudio (Closes: #1096138)
    - d/p/SDL2-Add-SDL_HINT_JOYSTICK_HAPTIC_AXES.patch:
      Add a hint to override number of joystick haptic axes
    - d/p/Added-support-for-the-n-sscanf-format-specifier.patch:
      %n support in SDL_sscanf and its relatives
    - Documentation updates

 -- Simon McVittie <smcv@debian.org>  Tue, 25 Feb 2025 17:09:58 +0000

libsdl2 (2.32.0+dfsg-1) unstable; urgency=medium

  * New upstream stable release
  * d/copyright: Update for new Wayland protocols
  * d/p/debian/no-libdir.patch: Refresh

 -- Simon McVittie <smcv@debian.org>  Mon, 10 Feb 2025 17:41:52 +0000

libsdl2 (2.30.12+dfsg-2) unstable; urgency=medium

  * d/rules: Treat testtimer as flaky when running on non-x86, non-aarch64.
    There is an assertion that requesting a 1ms delay does not result
    in a delay of more than 100ms, and that isn't reliably true on slow
    machines like riscv64 or batch-processing-oriented machines like
    s390x, resulting in intermittent autopkgtest failures.
    This makes those machines unsuitable for playing fast-paced SDL-based
    games, but we already knew that.
  * d/copyright: Update URL for where to look for releases

 -- Simon McVittie <smcv@debian.org>  Fri, 07 Feb 2025 17:54:06 +0000

libsdl2 (2.30.12+dfsg-1) unstable; urgency=medium

  * New upstream stable release

 -- Simon McVittie <smcv@debian.org>  Mon, 03 Feb 2025 13:58:39 +0000

libsdl2 (2.30.11+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Fix a crash if a game controller's product name is NULL
    - Treat gamepad mappings with a specified CRC as more important than
      mappings without a CRC, fixing PS3 (DualShock 3) gamepads
    - 3DS-, Android-, emscripten-, iOS-, macOS-, PS2-, PSP-specific
      changes not relevant to Debian
  * d/copyright: Update
  * d/control: Only depend on libpipewire-0.3-dev on Linux

 -- Simon McVittie <smcv@debian.org>  Thu, 02 Jan 2025 20:57:00 +0000

libsdl2 (2.30.10+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Support multiple joystick buttons outputting the same gamepad button
    - Improve portability of printing 64-bit integers
    - Improve the performance of whole-surface fill operations if there
      is no padding between rows
    - Fix order of events in case audio buffer size changes
    - Improve reproducibility of dynapi build
    - Fix a buffer overflow that caused a rare crash on KMSDRM
    - Disable AMD 3dNow extensions by default, avoiding miscompilation on
      some x86 CPUs when using -march=native -mtune=native
    - Android-, macOS-, Vita- and Windows-specific fixes not relevant
      to Debian
  * d/salsa-ci.yml: Use recommended recipe

 -- Simon McVittie <smcv@debian.org>  Mon, 09 Dec 2024 11:23:13 +0000

libsdl2 (2.30.9+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Only use Steam virtual gamepad if actually running from Steam
      (which sets a hint telling us to use it)
    - Reduce size of blitting code
    - Fix build issues for dependent code if it uses vulkan.hpp
    - When using X11, set the correct clipboard target type
    - When using native Wayland, always create a viewport if available,
      fixing display issues under GNOME
    - When using native Wayland, don't initialize OpenGL if not requested,
      which can cause protocol violations now that the explicit sync
      protocol is in use
    - In testdrawchessboard, make it easier to switch to the accelerated
      render API for comparison
    - 3DS-, Android-, emscripten-, macOS-, Vita- and Windows-specific
      fixes not relevant to Debian
  * d/p/Reapply-wayland-Don-t-initialize-OpenGL-when-the-window-f.patch:
    Drop patch, applied upstream

 -- Simon McVittie <smcv@debian.org>  Mon, 04 Nov 2024 17:12:21 +0000

libsdl2 (2.30.8+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Use a better stack size for PulseAudio hotplugging
    - Fix a hang if PulseAudio hotplugging fails to initialize
    - Treat Thrustmaster TMX as a steering wheel
    - Avoid sending excessive packets to PS4, PS5 controllers when
      using raw HID
    - Don't use incorrect optimized blit for SDL_PIXELFORMAT_ARGB1555
    - Add double-buffering support to Wayland video backend
    - Use correct SONAME when dynamically loading libX11-xcb.so.1
      for use with Vulkan
    - Send SDL_WINDOWEVENT_EXPOSED for Wayland windows when required
    - Fix memory leaks in Vulkan video driver
    - Add fallbacks so KMSDRM can work with older libdrm and libgbm
    - Keep KMSDRM fd open after drmDropMaster() if possible
    - Fix thread-safety and memory leaks in unit tests
    - Android- and Windows-specific fixes not relevant to Debian
  * d/p/Reapply-wayland-Don-t-initialize-OpenGL-when-the-window-f.patch:
    Add a post-release bugfix from upstream

 -- Simon McVittie <smcv@debian.org>  Fri, 04 Oct 2024 17:12:21 +0100

libsdl2 (2.30.7+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Fix XWayland cursor becoming visible when using relative mouse capture
    - Fix a crash when the current mouse capture window is destroyed
    - Treat Cammus C12 Wheelbase as a steering wheel
    - Add support for PS3 controller clones that do not have
      pressure-sensitive buttons, such as Retro-Bit Controller
    - Fix KMSDRM initialization failure on some Linux systems
    - Implement left-justification in SDL_snprintf on all platforms
    - Android-, Vita- and Windows-specific fixes not relevant to Debian

 -- Simon McVittie <smcv@debian.org>  Mon, 02 Sep 2024 13:53:14 +0100

libsdl2 (2.30.6+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Add gamepad mapping for SplitFish Game Controller
    - Fix a crash if joystick rumble starts immediately before the
      joystick is disconnected
    - On Wayland, get a cursor successfully even if no window is focused
    - Implement SDL_COMPILE_TIME_ASSERT with C23 static_assert in
      preference to C11 _Static_assert if compiling in C23 mode
    - CMake fixes, not relevant to how we compile SDL 2 in Debian
    - Windows-, macOS- and OS/2 specific fixes, not relevant to Debian
  * d/patches: Drop patches that were included in 2.30.6

 -- Simon McVittie <smcv@debian.org>  Fri, 02 Aug 2024 11:43:06 +0100

libsdl2 (2.30.5+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Treat ROG RAIKIRI as an Xbox Series-compatible gamepad
    - Respect SDL_RENDER_DRIVER, SDL_FRAMEBUFFER_ACCELERATION hints when
      creating an accelerated window surface
    - Add SDL_MOUSE_RELATIVE_CURSOR_VISIBLE hint allowing the hardware
      cursor to be kept visible in relative mode
    - In the KMSDRM driver, use GBM modifiers if necessary
    - Various platform-specific changes not relevant to Debian
  * d/patches: Apply post-release bug fixes up to
    release-2.30.5-18-ge7a47e783, excluding platform-specific changes not
    relevant to Debian
    - Try to create an accelerated renderer for the window surface, even
      if SDL_HINT_RENDER_DRIVER is "software"
    - Improve latency of Steam Deck controller via HIDAPI
    - Improve detection of Nintendo Switch Pro controller report mode
    - Fix attribute list for SDL_GL_FLOATBUFFERS
    - Fix unsupported KMSDRM modifiers
    - Fix a race condition in multi-threaded applications
    - Fix an off-by-one that led to rare sem_timedwait() failures
    - Ensure that all functions have proper prototypes

 -- Simon McVittie <smcv@debian.org>  Fri, 19 Jul 2024 11:23:48 +0100

libsdl2 (2.30.4+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Pass through the original name of the Steam Virtual Gamepad, fixing
      a regression for XInput slot mapping in Proton
      (ValveSoftware/steam-for-linux#9571, steamrt/tasks#469)
    - Try to use a platform HIDAPI backend in preference to libusb
    - Add mappings for Qanba Drone 2 Arcade Joystick
    - Treat some steering wheel controllers as such:
      + VRS DirectForce Pro Wheel Base
      + Simucube 1 Wheelbase
      + Simucube 2 Ultimate Wheelbase
      + Simucube 2 Pro Wheelbase
      + Simucube 2 Sport Wheelbase
      + Cammus C5 Wheelbase
    - Don't treat Logitech HID devices as Playstation-compatible unless
      included in an allowlist, avoiding various issues with
      non-game-related Logitech HID devices
    - Treat Logitech Chillstream as a PS3 controller
    - Add support for Saitek Cyborg V.3 Rumble Pad in PS3 mode
    - Fix mapping for R1 on third party PS3 controllers
    - Treat Razer Kitsune arcade stick as a PS5 controller, and work around
      lack of support for the feature-detection protocol
    - Improve handling of Nintendo Switch controllers
    - Don't crash if SDL_GetHint(NULL) is called
    - Avoid undefined behaviour if SDL_iconv_string needs to resize
      the buffer
    - In Wayland, set the initial min/max limits when showing a window
      without libdecor loaded
    - Various Windows-, macOS- and OS/2-specific changes not listed here
  * d/copyright: Exclude VisualC-GDK from orig tarball

 -- Simon McVittie <smcv@debian.org>  Tue, 18 Jun 2024 12:57:02 +0100

libsdl2 (2.30.3+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Fix compilation in C89 mode
    - Treat Thrustmaster TS-XW as a steering wheel
    - Fix pointer warp on XWayland
    - Speed up input device enumeration by trying not to open irrelevant
      devices
    - Don't use -mlasx to avoid baseline violation on loong64
    - Various Windows-specific changes

 -- Simon McVittie <smcv@debian.org>  Wed, 29 May 2024 16:48:47 +0100

libsdl2 (2.30.2+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Fix a udev device enumeration performance regression
    - Don't fail joystick initialization if udev isn't available
    - Treat Sega Genesis/Mega Drive controller as having 6 buttons
    - Add gamepad mapping for Defender Joystick Cobra R4
    - Remove generic mapping for HORI product ID 0d00, which has been
      reused for several incompatible controllers
    - Treat Yawman Arrow as a flight stick
    - Don't treat MadCatz Saitek Side Panel Control Deck as
      Playstation-compatible
    - Try to use memfd_create() for Wayland cursors
    - Avoid a crash under Wayland when all displays are disconnected
    - Avoid protocol errors under Wayland if the viewport source is resized
      under fractional scaling
  * d/patches: Drop patches that were applied upstream
  * Standards-Version: 4.7.0 (no changes required)

 -- Simon McVittie <smcv@debian.org>  Tue, 16 Apr 2024 15:43:48 +0100

libsdl2 (2.30.1+dfsg-4) unstable; urgency=medium

  * d/control, d/rules: Re-enable native pipewire audio backend.
    Convert it into a pkg.libsdl2.nopipewire build-profile, so that it's
    convenient to break cycles in any future transitions that affect it.
    This is a "non-reproducible" build profile, which makes functional
    changes to the package, so breaking this cycle by building pipewire
    with noinsttest is likely to be preferable.
  * d/control, d/rules: Also add a pkg.libsdl2.nosndio build-profile
    to disable sndio audio output, similar to the one for Pipewire
  * d/control: Stop listing the audio drivers in the libsdl2-2.0-0
    Description.
    This list was out of date (Pipewire was missing), and is not
    particularly interesting information anyway. It seems to have been
    left over from early libsdl1.2 packaging, where there were multiple
    binary builds from the same source with different features enabled.

 -- Simon McVittie <smcv@debian.org>  Mon, 25 Mar 2024 11:23:34 +0000

libsdl2 (2.30.1+dfsg-3) unstable; urgency=medium

  * Temporarily disable native Pipewire output on 32-bit non-x86.
    libsdl2 is involved in a cyclic build-dependency with pipewire and
    libcamera. This change can be reverted after it has been rebuilt.

 -- Simon McVittie <smcv@debian.org>  Fri, 22 Mar 2024 11:05:04 +0000

libsdl2 (2.30.1+dfsg-2) unstable; urgency=medium

  * d/control, d/tests: Prefer pkgconf over pkg-config
  * d/p/Fixed-crash-if-joystick-functions-are-passed-a-NULL-joyst.patch:
    Add proposed patch to fix crash during doomsday startup
    (Closes: #1062969)

 -- Simon McVittie <smcv@debian.org>  Sat, 09 Mar 2024 11:49:07 +0000

libsdl2 (2.30.1+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Fix conversion of signed 16-bit audio to floating point 32-bit
    - Improve gamepad mapping for Sanwa Supply JY-P76USV (also known as
      GameShark GS-GP702)
    - Treat OpenFFBoard as a steering wheel
    - Fix a memory leak in Steam virtual gamepad handling
    - Fix memory leaks in Wayland keyboard map handling
    - Update viewport clipping rectangle when required
    - Use CSS/freedesktop.org cursor names with traditional X11 names as
      a fallback, fixing use of non-default cursors with updated
      adwaita-icon-theme
    - Convert mouse wheel coordinates to renderer view
    - Fix a regression in 2.30.0 for the Vanilla-Conquer game engine
    - Improve robustness of unit test for mathematical functions
  * d/patches: Add post-release fixes from upstream release-2.30.x branch,
    up to commit release-2.30.1-3-g3f0d7a293, excluding a Windows-specific
    change
    - d/p/SDL_RWFromFile-stdio-allow-named-pipes-along-with-regular.patch:
      Allow opening fifos with SDL's I/O abstraction
    - d/p/Fixed-mapping-for-the-Sanwa-Supply-JY-P76USV-controller.patch:
      Improve gamepad mapping for Sanwa Supply JY-P76USV, again
  * d/gbp.conf: Stop filtering imported tarballs.
    Please use uscan instead, which will automatically produce a filtered
    +dfsg tarball based on debian/copyright.

 -- Simon McVittie <smcv@debian.org>  Thu, 07 Mar 2024 10:37:41 +0000

libsdl2 (2.30.0+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - No functional changes since 2.29.3 in code that is used by Debian
  * d/libsdl2-2.0-0.symbols: Require stable versions for recent symbols
  * Release to unstable

 -- Simon McVittie <smcv@debian.org>  Fri, 02 Feb 2024 12:01:57 +0000

libsdl2 (2.29.3+dfsg-1) experimental; urgency=medium

  * New upstream development prerelease
  * d/patches: Drop most patches, included in the prerelease
  * d/copyright: Update

 -- Simon McVittie <smcv@debian.org>  Mon, 29 Jan 2024 14:22:23 +0000

libsdl2 (2.29.2+dfsg-1) experimental; urgency=medium

  * New upstream development prerelease
  * d/patches: Add post-prerelease fixes from the upstream release-2.30.x
    branch, up to commit prerelease-2.29.2-5-g52181848d, excluding an
    Android-specific change.
  * d/rules: Remove workarounds previously used to run testautomation.
    It's now run by the upstream build system.

 -- Simon McVittie <smcv@debian.org>  Tue, 23 Jan 2024 12:01:10 +0000

libsdl2 (2.29.1+dfsg-1) experimental; urgency=medium

  * New upstream development prerelease
  * d/copyright: Document license of src/video/yuv2rgb
  * d/patches: Update patch series
  * d/control, d/gbp.conf: Update branches now we have a prerelease

 -- Simon McVittie <smcv@debian.org>  Sun, 21 Jan 2024 13:12:13 +0000

libsdl2 (2.29~git20240113~38d11e5c+dfsg-1) experimental; urgency=medium

  * New upstream snapshot release-2.28.0-385-g38d11e5cc
  * Drop most patches, applied upstream
  * Move non-upstreamable patches into d/p/debian/

 -- Simon McVittie <smcv@debian.org>  Mon, 15 Jan 2024 18:12:37 +0000

libsdl2 (2.29~git20240109~2afd04d0+dfsg-2) experimental; urgency=medium

  * d/p/Use-the-X11-driver-if-the-application-uses-X11-based-grap.patch,
    d/p/Only-force-X11-if-SDL_VIDEO_DRIVER_X11-is-available.patch:
    Add patches from upstream git to avoid native Wayland in games that use
    GLEW, NVIDIA Cg or plib. This brings us up to the equivalent of
    upstream commit release-2.28.0-373-g970ed36de.
  * d/p/test-Use-AUDIO_F32SYS-for-native-endianness.patch,
    d/p/test-Fix-encoding-declaration-for-RGB24-test-images.patch,
    d/p/test-Use-SDL_CreateRGBSurfaceWithFormatFrom-for-SDLTest_I.patch:
    Add proposed patches to fix automated test failures on big-endian,
    which caused FTBFS on architectures like s390x, powerpc and ppc64
  * d/sdl2-config.1: Recommend using pkgconf instead
  * d/sdl2-config.1: Describe preferred ways to detect SDL in common build
    systems

 -- Simon McVittie <smcv@debian.org>  Wed, 10 Jan 2024 12:21:26 +0000

libsdl2 (2.29~git20240109~2afd04d0+dfsg-1) experimental; urgency=medium

  * New upstream snapshot release-2.28.0-371-g2afd04d09
  * d/copyright: Update
  * d/gbp.conf: Don't always sign upstream tags
  * d/rules: Run upstream testautomation program as a unit test.
    This was historically not run as an acceptance test, but we now have
    it passing tests upstream, at least with the dummy audio and video
    drivers that are used during build.
  * d/rules: Run testautomation as an "as-installed" test.
    As with the build-time tests, this was not historically run as a
    test, but SDL3 and sdl2-compat both do that, and we now have the
    vast majority of it working in SDL2 as well.

 -- Simon McVittie <smcv@debian.org>  Tue, 09 Jan 2024 15:19:21 +0000

libsdl2 (2.29~git20240103~7b4f1ef0+dfsg-1) experimental; urgency=medium

  * New upstream snapshot
  * d/copyright: Update
  * Refresh patch series, dropping patches that are in the upstream snapshot
  * d/libsdl2-2.0-0.symbols: Update

 -- Simon McVittie <smcv@debian.org>  Wed, 03 Jan 2024 20:10:40 +0000

libsdl2 (2.28.5+dfsg-3) unstable; urgency=medium

  * d/patches: Add post-release bug fixes from upstream
    - Improved game controller hardware support:
      + add mapping for Atari VCS via Bluetooth
      + 8BitDo Ultimate Wired Controller for Xbox has a Share button
      + 8BitDo Ultimate Wireless / Pro 2 Wired Controller for Xbox
        has a Share button
    - Update list of mice that should not be treated as game controllers
      + add ROG Pugio II
    - Avoid leaking a window surface when using software rendering
    - Avoid leaking desktop display mode information in some cases
      (probably only Windows but could in principle affect Linux)
    - Don't truncate non-ASCII X11 input
    - Silence a compiler warning
    This brings us up to release-2.28.x branch commit
    release-2.28.5-18-g05eb08053, excluding CMake-, iOS- and
    Windows-specific changes.
  * d/p/sdl2.m4-Call-PKG_CONFIG-rather-than-hard-coding-pkg-confi.patch:
    Add patch from upstream git to make AM_PATH_SDL2 set $SDL_CONFIG to a
    cross-compile-friendly value, related to #1059749.
    Thanks to Helmut Grohne

 -- Simon McVittie <smcv@debian.org>  Tue, 02 Jan 2024 15:23:46 +0000

libsdl2 (2.28.5+dfsg-2) unstable; urgency=medium

  * d/p/configure-move-HAVE_LINUX_INPUT_H-to-CheckInputEvents.patch,
    Revert patch which breaks Linux joystick/gamepad detection.
    See upstream issue SDL#8488.

 -- Simon McVittie <smcv@debian.org>  Mon, 06 Nov 2023 19:41:49 +0000

libsdl2 (2.28.5+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Don't read destination pixels if they will be fully overwritten
    - Remove workaround for a fixed libdecor bug
    - Fix a crash when trying to use XInput2 if libxi was missing
    - Don't try to destroy a NULL relative pointer handle on Wayland
      implementations that don't support that feature
    - Improve precondition checks for Wayland pointer confinement
    - Check whether HIDAPI joysticks were unplugged during detection
    - Detect HP HyperX Clutch Gladiate as an Xbox-One-compatible controller
    - Detect several Asetek Wheelbase models as steering wheels
    - Test improvements
    - Android, CI, CMake and Windows changes that are not relevant to how
      Debian compiles this library
  * d/p/configure-move-HAVE_LINUX_INPUT_H-to-CheckInputEvents.patch,
    d/p/fix-a-possible-memory-leak-in-SDL_vasprintf.patch:
    Add post-release bug fixes from upstream:
    - Improve detection of <linux/input.h>
    - Fix a memory leak on vsnprintf() error in SDL_vasprintf()
    This brings us up to release-2.28.x branch commit
    release-2.28.5-4-g9b2c70c9c, excluding CMake and Windows changes.

 -- Simon McVittie <smcv@debian.org>  Mon, 06 Nov 2023 10:34:27 +0000

libsdl2 (2.28.4+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Optionally use posix_spawnp() in preference to vfork() for xdg-open
    - Fix SDLTest surface comparison on big-endian architectures
    - CMake, Emscripten, QNX and Windows changes that are not relevant to
      how Debian compiles this library
  * Drop patches that came from upstream

 -- Simon McVittie <smcv@debian.org>  Mon, 02 Oct 2023 10:21:52 +0100

libsdl2 (2.28.3+dfsg-4) unstable; urgency=medium

  * Update to upstream release-2.28.x branch commit
    release-2.28.3-18-gd58fa94ee, excluding emscripten-specific changes
    and changes in files that are replaced by dh_autoreconf.
    - d/p/Fixed-sensor-timestamp-calculation-for-third-party-PS5-co.patch,
      d/p/Fixed-error-array-subscript-2-is-above-array-bounds-of-co.patch,
      d/p/Fixed-sensor-timestamp-units-for-third-party-PS5-controll.patch:
      Improve handling of third-party PS5-compatible gamepads
    - d/p/Check-for-NULL-before-dereferencing-newly-allocated-memor.patch,
      d/p/SDL_iconv_string-defaults-to-UTF-8.patch:
      Move NULL checks before dereferencing the potentially-null pointer

 -- Simon McVittie <smcv@debian.org>  Thu, 28 Sep 2023 10:51:18 +0100

libsdl2 (2.28.3+dfsg-3) unstable; urgency=medium

  * d/patches: Update to upstream release-2.28.x branch commit
    release-2.28.3-10-g7d80e2088, excluding changes that are not relevant
    to the way Debian builds libsdl2
    - d/p/detect-fanatec-steering-wheels.patch: Detect more steering wheels
    - d/p/x11-Always-update-clipboard-owner.patch: Let clipboard managers
      keep track of clipboard changes
  * d/p/no-libdir.patch: If $CC doesn't support -print-multiarch, assume
    static linking is native.
    As documented by upstream in docs/README-dynapi.md, statically linking
    SDL is not recommended. Please link to SDL dynamically if possible.
    However, the legacy sdl2-config script historically supported static
    linking, so we have to keep that working while not breaking multiarch
    co-installation.
    clang-16 no longer supports the -print-multiarch option, which we
    previously relied on here. Fall back to assuming that we're doing a
    native build (more precisely, a build whose host architecture matches
    the pkg-config in the $PATH) rather than failing to link statically
    at all. (Closes: #1051946)
    It is unavoidable that this will not work if you are cross-compiling
    with a compiler that does not support the -print-multiarch option,
    and also linking statically, and also do not have the PKG_CONFIG or
    DEB_HOST_MULTIARCH environment variables set. In this situation,
    please set PKG_CONFIG and/or DEB_HOST_MULTIARCH (preferably both)
    to their appropriate values.

 -- Simon McVittie <smcv@debian.org>  Mon, 18 Sep 2023 13:55:17 +0100

libsdl2 (2.28.3+dfsg-2) unstable; urgency=medium

  * Update to upstream release-2.28.x branch commit
    release-2.28.3-5-gd710e0be2, excluding one MSVC-specific change
    - d/p/Detect-Logitech-PRO-Racing-Wheel-for-Xbox-PC-mode-as-whee.patch,
      d/p/Detect-Logitech-G923-Playstation-as-wheel.patch,
      d/p/Detect-Simagic-wheel-bases-as-wheels-8198.patch:
      Update table of known driving-simulation steering wheel controllers
    - d/p/render-Enable-clipping-for-zero-sized-rectangles.patch:
      Fix a UI regression since 2.27.x in Battle for Wesnoth 1.17.x
      and other games that rely on being able to disable UI elements
      by setting a clipping rectangle with zero width or height
      (Closes: #1051522)

 -- Simon McVittie <smcv@debian.org>  Sun, 10 Sep 2023 14:13:16 +0100

libsdl2 (2.28.3+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Implement SDL_TriggerBreakpoint() on riscv64
    - Silence "ioctl (GFEATURE)" warnings on stderr when using raw HID
    - Fix report format for Razer Wolverine V2 Pro
    - Fix a (harmless?) out-of-bounds read when guessing whether game
      controller axes are a digital hat-switch (regression in 2.23.1)
    - Remaining changes are not relevant on architectures supported
      by Debian
  * d/p/Removed-Flydigi-Vader-2-mappings.patch,
    d/p/The-Flydigi-Vader-and-Apex-series-controllers-all-have-th.patch,
    d/p/Added-a-gamepad-mapping-for-the-G-Shark-GS-GP702.patch:
    Drop patches, applied upstream

 -- Simon McVittie <smcv@debian.org>  Fri, 01 Sep 2023 20:23:54 +0100

libsdl2 (2.28.2+dfsg-1) unstable; urgency=medium

  * New upstream stable release
    - Avoid crashing if all Wayland displays have been disconnected
    - Add game controller mapping for the Steam Deck's built-in gamepad,
      including its back paddles
    - Fix duplicated gamepad mapping for left HVC gamepads
    - Fall back to plain Xlib if Xrandr isn't available, fixing video
      initialization when using VNC
    - Wait a shorter time for X11 window maximization
    - Improve handling of Bluetooth PS4 and PS5 controllers in raw HID mode
    - Don't call an unimplemented fcitx method
    - Better handling of virtual keyboards
    - Reject negative sizes in SDL_RWFromMem(), SDL_RWFromConstMem()
    - Remove unused C++ Vulkan headers
    - Cope with 32-bit ARM platforms where __ARM_ARCH might not be defined
    - Windows-, macOS- and OS/2-specific fixes not relevant to Debian
    - CMake-specific fixes not relevant to Debian
  * Add selected patches from upstream release-2.28.x branch
    - d/p/Removed-Flydigi-Vader-2-mappings.patch,
      d/p/The-Flydigi-Vader-and-Apex-series-controllers-all-have-th.patch:
      Remove problematic gamepad mappings for devices that reuse a name,
      vendor ID and product ID, and therefore cannot be distinguished
      programmatically
    - d/p/Added-a-gamepad-mapping-for-the-G-Shark-GS-GP702.patch:
      Add another gamepad mapping
  * d/p/video-wayland-use-both-icon-and-icon-name-for-Zenity-7897.patch,
    d/p/Fixed-mapping-BTN_TR2-to-right-trigger.patch,
    d/p/Re-added-mappings-for-older-Xbox-One-controllers-on-Linux.patch:
    Drop patches, applied upstream
  * d/copyright: Update

 -- Simon McVittie <smcv@debian.org>  Mon, 07 Aug 2023 19:05:51 +0100

libsdl2 (2.28.1+dfsg-1) unstable; urgency=medium

  * New upstream release
  * Add selected patches from upstream release-2.28.x branch
    - d/p/video-wayland-use-both-icon-and-icon-name-for-Zenity-7897.patch:
      Provide forward-compatibility with zenity >= 3.90.x under Wayland
    - d/p/Fixed-mapping-BTN_TR2-to-right-trigger.patch:
      Fix mapping regression in 2.27.1 for some game controllers with a
      digital right trigger button
    - d/p/Re-added-mappings-for-older-Xbox-One-controllers-on-Linux.patch:
      Fix mapping regression in 2.27.1 for Xbox One controllers (and
      their clones) that report BTN_C and BTN_Z

 -- Simon McVittie <smcv@debian.org>  Mon, 10 Jul 2023 15:22:01 +0100

libsdl2 (2.28.0+dfsg-1) unstable; urgency=medium

  * New upstream release
  * d/gbp.conf: Use upstream/2.28.x branch
  * Release to unstable

 -- Simon McVittie <smcv@debian.org>  Tue, 20 Jun 2023 20:36:06 +0100

libsdl2 (2.27.1+dfsg-1) experimental; urgency=medium

  * New upstream prerelease 2.27.1
  * d/libsdl2-2.0-0.symbols: Update

 -- Simon McVittie <smcv@debian.org>  Wed, 14 Jun 2023 15:36:11 +0100

# Older entries have been removed from this changelog.
# To read the complete changelog use `apt changelog libsdl2-doc`.
