On Sun, Nov 07, 2021 at 12:04:23AM -0400, Brad Smith wrote:
> Here is an update to SDL 1.2.16.20211106.
>
> This is a snapshot along the 1.2 branch.
>
> There has been discussion for years (years ago) about putting
> out one last wrap up release but nothing has happened so far.
>
> The sndio backend and other diffs have been commited upstream.
>
> This is almost 10 years worth of commits and there was a decent
> amount of commits that went in and still does see commits on
> a regular basis.
>
>
> 1.2.16: This is mostly multiple bug fixes since the previous version.
> Changes include:
> - Audio, wav loader: security fixes for ADPCM decoding (CVE-2019-7572,
> CVE-2019-7573, CVE-2019-7574, CVE-2019-7575, CVE-2019-7576,
> CVE-2019-7577, CVE-2019-7578 -- bugs 4490, 4491, 4492, 4493, 4494,
> 4495, 4496, and 4522.)
> - Video, bmp loader: security fixes for CVE-2019-7635, CVE-2019-7636,
> CVE-2019-7638, CVE-2019-13616 (bugs 4498, 4499, 4500, 4517 and 4538.)
> - Video, blit: fix handling of alpha channel in Altivec accelerated
> blit functions (bug 1424.)
> - Video, blit: correct vec_perm() application on little-endian 64-bit
> PowerPC (bug 4791. cf.: RedHat bug 1392465.)
> - Video, blit: use fast path for RGB 565 -> 32-bit XRGB 8888
> - Video, blit: backport fast paths for 24/32-bit blitting from SDL2
> (bug 5328)
> - Video, blit: fix RGBA<->RGBA blit broken with the optimization from
> bug 11 (bug 2976.)
> - Video, blit, Linux: ARM assembly to address performance of blit and
> fill routines - thanks to Ben Avison. (bug 4365.)
> - Video: fix integer overflow in SDL_CalculatePitch (CVE-2019-7637,
> bug 4497.)
> - Video, Linux, fbcon: fix double buffering with non-fullscreen
> resolution, implement triple-buffering and other improvements,
> thanks to Paul Cercueil.
> - Mouse: fix SDL_ResetMouse() using a bogus mouse button causing a
> negative shift (bug 3593.)
> - Cdrom: fix SDL_CDResume() and SDL_CDStop() not returning failure
> when they should (bug 4108.)
> - Unix, pthread: Fix SDL_SemWaitTimeout() returning -1 instead of
> SDL_MUTEX_TIMEDOUT upon timeout (bug 1426.)
> - NetBSD: wscons support.
> - NetBSD, audio: use AUDIO_GETBUFINFO when available.
> - OpenBSD, audio: add sndio support.
> - Haiku/BeOS, audio: fix error in buffer size setting (bug 1679.)
> - OpenBSD: fix dynamic loading of X and OpenGL libs (bugs 1434, 5208.)
> - X11video: fix missing symbol X11_KeyToUnicode in .so file (bug 1390.
> not being an official SDL function, the use of X11_KeyToUnicode() is
> strongly discouraged.)
> - X11video: fix compilation with libX11 >= 1.5.99.902 (bug 1769.)
> - X11video: fix for XChangeProperty() crash (bug 1427.)
> - X11video: fix SDL_EnableUNICODE sometimes dropping keyboard events
> completely (bug 2325.)
> - X11video: fix no SDL_VIDEORESIZE event being generated when the
> window manager sets the window size (bug 1859.)
> - X11video: fix X11_SetGammaRamp not checking the return value of
> XStoreColors (bugs 1979, 3770.)
> - X11video: fix SDL_VIDEORESIZE events not received when resizing
> window from the corner (inverted logic in X11 ConfigureNotify, i.e.
> resize handling - bug 1430.)
> - X11video: properly handle input focus events (bug 5426.)
> - X11video: unblock SDL_WM_GrabInput() GrabNotViewable case (bug 1155.)
> - Mac OS X: fix macOS 10.14 (Mojave) opengl issues (bug 4788.)
> - Mac OS X: fix crash on any input in Quartz code (bug 2560.)
> - Mac OS X: fix crash in Quartz gamma ramp code.
> - Mac OS X: fix build for 10.9 Mavericks or newer (bug 2085.)
> - Mac OS X, Quartz: fix cursor transparency (bug 4076.)
> - Mac OS X, joystick: update to support Saitek p2500 gamepad (bug 2025)
> - Mac OS X: fixed audio on macOS 11.0 beta ("Big Sur")
> - Mac OS X, main: updates for -psn_XXX command line arg for Finder
> launches in new macOS versions.
> - Windows, video: fix other window positions/sizes when exiting
> fullscreen (bug 3315.)
> - Windows, keyboard: reset deadkeys upon SDL_EnableUNICODE() or upon
> quit (bug 3332.)
> - Windows: Visual Studio project file updates.
> - OS/2: fixes and Watcom makefile updates.
> - Linux, joystick: fix invalid coef when axis min > axis max.
> - Linux, joystick: remove deadzone and output axis values in correct
> range (bug 5241.)
> - Linux, joystick: enhance detection of gamepads.
> - Linux, joystick: allow for custom joystick names.
> - FreeBSD, joystick: compile fixes.
> - BSD, joystick: fix USB joystick input for FreeBSD 9.0+ (bug 1552)
> - BSD, joystick: increase the number of uhid devices to scan (bug 1561)
> - Linux, ALSA: fix excessive I/O causing high CPU usage (bug 4941.)
> - Linux, evdev: ignore joystick axis events if they aren't in a sane
> range.
> - Linux, joystick: fix Dualshock 3's motion sensors overwrite analog
> stick: protect against any axis that isn't reported by EVIOCGBIT but
> still sending EV_ABS events (bug 3193.)
> - FreeBSD, cdrom: fix CDROM detection misbehaviour for 7.x and newer
> (bug 1529.)
> - Solaris, audio: fix pulseaudio dynamic linking.
> - Solaris, cpuinfo: fix asm syntax error causing build failures.
> - Atari: multiple platform code updates.
> - RISC OS: cleanups to platform code.
> - RISC OS: fix thread starvation in fullscreen mode.
> - RISC OS: fix returning from full-screen to 16M colour modes.
> - RISC OS: fix receiving PreQuit messages.
> - RISC OS: ensure the window size is consistent at different DPIs.
> - RISC OS, video: add support for more pixel formats.
> - RISC OS: mouse fixes. restore mouse palette when exiting while mouse
> is in focus. don't reset mouse focus when recreating the window.
> - RISC OS: support Windows and Menu key input.
> - RISC OS: implement SDL_WM_IconifyWindow()
> - RISC OS: send SDL_APPACTIVE events when iconizing the window.
> - RISC OS: support creating windows with the SDL_NOFRAME flag set.
> - RISC OS: increase the number of supported joystick buttons.
> - Configuration: fix library detection selecting wrong lib (bug 2795.)
> - Configuration: fix detecting dynamic library support on powerpc64le
> (bug 3481.)
> - SDL error: string formatting fixes to deal with nasty corner cases
> (bug 2049.)
> - SDL_error: handle %lu, %li and %ld in format string (bug 3739.)
> - stdlib: updated SDL_qsort() code.
> - stdlib: use _strtoi64() and _strtoui64() when available for windows.
> - headers, close_code.h: fix unbalanced #pragma pack(pop) for watcom
> builds (bug 3781.)
> - headers, begin_code.h, close_code.h: updates to SDLCALL and DECLSPEC
> macros for OS/2.
> - headers, endian: add Watcom inline asm for SDL_Swap16 and SDL_Swap32
> - headers, config: updates to default windows and os2 config files.
> - headers, SDL_syswm.h, SDL_stdinc.h: include system headers before
> packing alignment changes (bug 4149.)
> - headers, SDL_opengl.h: made compatible with glext.h from newer Mesa
> versions (bug 5216.)
Update to slightly newer code to roll in some autoconf code tweaking.
I also didn't mean to include another diff I was testing for the sdl-config /
pkg-config files so revert that.
Index: Makefile
===================================================================
RCS file: /home/cvs/ports/devel/sdl/Makefile,v
retrieving revision 1.106
diff -u -p -u -p -r1.106 Makefile
--- Makefile 19 Jun 2021 20:37:52 -0000 1.106
+++ Makefile 8 Dec 2021 06:44:54 -0000
@@ -2,15 +2,14 @@
COMMENT= cross-platform multimedia library
-VERSION= 1.2.15
-DISTNAME= SDL-${VERSION}
-PKGNAME= ${DISTNAME:L}
-REVISION= 12
+DISTNAME= sdl-1.2.16.20211208
+GH_ACCOUNT= libsdl-org
+GH_PROJECT= SDL-1.2
+GH_COMMIT= d3fc4db464827a7aa0e5a7c4bcb921709c343c9f
CATEGORIES= devel
MAINTAINER= Thomas Frohwein <thfr@openbsd.org>
-MASTER_SITES= ${HOMEPAGE}release/
-SHARED_LIBS= SDL 8.0
+SHARED_LIBS= SDL 8.1
HOMEPAGE= https://www.libsdl.org/
@@ -21,7 +20,7 @@ WANTLIB= iconv m pthread sndio usbhid
LIB_DEPENDS= converters/libiconv
-AUTOCONF_VERSION= 2.61
+AUTOCONF_VERSION= 2.69
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS}
.if ${MACHINE_ARCH} == "i386"
@@ -43,10 +42,6 @@ CONFIGURE_ARGS+= --disable-alsa \
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-# in case devel/usb is installed, don't pick it up.
-CONFIGURE_ENV+= ac_cv_lib_usb_hid_init=no \
- ac_cv_header_usb_h=no
-
.if ${FLAVOR:Maa}
WANTLIB+= aa
LIB_DEPENDS+= graphics/aalib
@@ -57,10 +52,8 @@ CONFIGURE_ARGS+= --enable-video-aalib
CONFIGURE_ARGS+= --without-x \
--disable-video-x11
.else
-#
-# X11/Xext/Xrender/Xrandr are dlopen'd by SDL
-#
-WANTLIB+= X11 Xau Xdmcp Xext Xrandr Xrender xcb
+# X11 libraries are dlopen'd by SDL
+WANTLIB+= X11 Xext Xrandr Xrender
.endif
NO_TEST= Yes
@@ -73,8 +66,6 @@ CONFIGURE_ARGS+= --enable-altivec=no
.endif
pre-configure:
- @mkdir -p ${WRKSRC}/src/audio/sndio
- @cp ${FILESDIR}/SDL_sndioaudio.{c,h} ${WRKSRC}/src/audio/sndio
@cd ${WRKSRC} && AUTOCONF_VERSION=${AUTOCONF_VERSION} PATH=${PORTPATH} \
./autogen.sh
Index: distinfo
===================================================================
RCS file: /home/cvs/ports/devel/sdl/distinfo,v
retrieving revision 1.19
diff -u -p -u -p -r1.19 distinfo
--- distinfo 18 Jan 2015 03:13:47 -0000 1.19
+++ distinfo 8 Dec 2021 06:45:02 -0000
@@ -1,2 +1,2 @@
-SHA256 (SDL-1.2.15.tar.gz) = 1tMWp5Pl40gVXw3ZO5eXmJM/uYqh7evMEIgp1kdKrQA=
-SIZE (SDL-1.2.15.tar.gz) = 3920622
+SHA256 (sdl-1.2.16.20211208-d3fc4db4.tar.gz) = +piHBTJ1//8Bzktz2Zy1Wr5Q/SPyD5GJzvNcoTcndXg=
+SIZE (sdl-1.2.16.20211208-d3fc4db4.tar.gz) = 3998101
Index: files/SDL_sndioaudio.c
===================================================================
RCS file: files/SDL_sndioaudio.c
diff -N files/SDL_sndioaudio.c
--- files/SDL_sndioaudio.c 19 Dec 2013 09:24:18 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,243 +0,0 @@
-/*
- * Copyright (c) 2008 Jacob Meuser <jakemsr@sdf.lonestar.org>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include "SDL_config.h"
-
-/* Allow access to a raw mixing buffer */
-
-#ifdef HAVE_SIGNAL_H
-#include <signal.h>
-
No comments:
Post a Comment