SDL: update to 1.2.15.

This commit is contained in:
Juan RP 2012-01-21 21:07:50 +01:00
parent 7b47b297b9
commit 212d94d0a1
10 changed files with 3 additions and 251 deletions

View file

@ -5,8 +5,6 @@ long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
revision=3
Add_dependency run libX11-devel
Add_dependency run libXext-devel
Add_dependency run libXrender-devel

View file

@ -1,11 +0,0 @@
diff -up SDL-1.2.12/configure.in.disable_yasm SDL-1.2.12/configure.in
--- SDL-1.2.12/configure.in.disable_yasm 2007-08-27 18:24:44.000000000 +0200
+++ SDL-1.2.12/configure.in 2007-08-27 18:25:04.000000000 +0200
@@ -715,7 +715,6 @@ AC_HELP_STRING([--enable-nasm], [use nas
esac
fi
- AC_PATH_PROG(NASM, yasm)
echo "%ifidn __OUTPUT_FORMAT__,elf" > unquoted-sections
echo "section .note.GNU-stack noalloc noexec nowrite progbits" >> unquoted-sections
echo "%endif" >> unquoted-sections

View file

@ -1,22 +0,0 @@
# HG changeset patch
# User Sam Lantinga <slouken@libsdl.org>
# Date 1297938710 28800
# Branch SDL-1.2
# Node ID d898ee5431f52dd630e311b325eb5a42c8607a60
# Parent 6bb01861c4c0d28dcea67e04ef723feaaf730d07
Fixed bug #1090 (SDL_BlitCopyOverlap() assumes memcpy() operates in order)
The much more complete fix is in SDL 1.3, but this is a band-aid that will fix the bug for 1.2.
diff -r 6bb01861c4c0 -r d898ee5431f5 src/video/SDL_blit.c
--- a/src/video/SDL_blit.c Wed Feb 16 04:49:07 2011 -0800
+++ b/src/video/SDL_blit.c Thu Feb 17 02:31:50 2011 -0800
@@ -214,7 +214,7 @@
dstskip = w+info->d_skip;
if ( dst < src ) {
while ( h-- ) {
- SDL_memcpy(dst, src, w);
+ SDL_memmove(dst, src, w);
src += srcskip;
dst += dstskip;
}

View file

@ -1,22 +0,0 @@
diff -up SDL-1.2.14/src/audio/SDL_audio.c.audiodriver SDL-1.2.14/src/audio/SDL_audio.c
--- SDL-1.2.14/src/audio/SDL_audio.c.audiodriver 2009-10-13 12:25:35.000000000 +0200
+++ SDL-1.2.14/src/audio/SDL_audio.c 2009-10-26 14:36:26.000000000 +0100
@@ -36,15 +36,15 @@
/* Available audio drivers */
static AudioBootStrap *bootstrap[] = {
-#if SDL_AUDIO_DRIVER_BSD
- &BSD_AUDIO_bootstrap,
-#endif
#if SDL_AUDIO_DRIVER_PULSE
&PULSE_bootstrap,
#endif
#if SDL_AUDIO_DRIVER_ALSA
&ALSA_bootstrap,
#endif
+#if SDL_AUDIO_DRIVER_BSD
+ &BSD_AUDIO_bootstrap,
+#endif
#if SDL_AUDIO_DRIVER_OSS
&DSP_bootstrap,
&DMA_bootstrap,

View file

@ -1,22 +0,0 @@
diff -up SDL-1.2.14/include/SDL_endian.h.byteorder SDL-1.2.14/include/SDL_endian.h
--- SDL-1.2.14/include/SDL_endian.h.byteorder 2009-10-13 01:07:19.000000000 +0200
+++ SDL-1.2.14/include/SDL_endian.h 2009-10-26 14:27:39.000000000 +0100
@@ -39,6 +39,10 @@
/*@}*/
#ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */
+#ifdef __linux__
+#include <endian.h>
+#define SDL_BYTEORDER __BYTE_ORDER
+#else /* __linux __ */
#if defined(__hppa__) || \
defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
(defined(__MIPS__) && defined(__MISPEB__)) || \
@@ -48,6 +52,7 @@
#else
#define SDL_BYTEORDER SDL_LIL_ENDIAN
#endif
+#endif /* __linux __ */
#endif /* !SDL_BYTEORDER */

View file

@ -1,19 +0,0 @@
changeset: 4394:42012a6afb5b
branch: SDL-1.2
user: Sam Lantinga <slouken@libsdl.org>
date: Thu Dec 17 14:33:00 2009 +0000
summary: Merged SDL 1.3 revision 5424, fixing a crash in the joystick code on recent kernels.
diff -r 9afe12fb4c41 -r 42012a6afb5b src/joystick/linux/SDL_sysjoystick.c
--- a/src/joystick/linux/SDL_sysjoystick.c Mon Dec 14 22:41:31 2009 +0000
+++ b/src/joystick/linux/SDL_sysjoystick.c Thu Dec 17 14:33:00 2009 +0000
@@ -700,7 +700,7 @@
continue;
}
if ( test_bit(i, absbit) ) {
- int values[5];
+ int values[6];
if ( ioctl(fd, EVIOCGABS(i), values) < 0 )
continue;

View file

@ -1,100 +0,0 @@
From 0d8a1536a20cc834273789ae4251bff226a2a54c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Thu, 24 Feb 2011 15:49:35 +0100
Subject: [PATCH] nasm 2.09 compatibility
nasm-2.09 makes `elf' alias to `elf32', thus __OUTPUT_FORMAT__ macro
becomes `elf32' instead of `elf' (on x86). Unmatched macro value causes
omitting .note.GNU-stack marker and creates ELFs with executable stack.
This is unneeded and attracts security policies like SELinux.
---
configure.in | 4 ++--
src/hermes/mmx_main.asm | 2 +-
src/hermes/mmxp2_32.asm | 2 +-
src/hermes/x86_main.asm | 2 +-
src/hermes/x86p_16.asm | 2 +-
src/hermes/x86p_32.asm | 2 +-
6 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/configure.in b/configure.in
index a7e9b18..04f212b 100644
--- a/configure.in
+++ b/configure.in
@@ -740,12 +740,12 @@ AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [[default=yes
NASMFLAGS="-f macho"
;;
*)
- NASMFLAGS="-f elf"
+ NASMFLAGS="-f elf32"
;;
esac
fi
- echo "%ifidn __OUTPUT_FORMAT__,elf" > unquoted-sections
+ echo "%ifidn __OUTPUT_FORMAT__,elf32" > unquoted-sections
echo "section .note.GNU-stack noalloc noexec nowrite progbits" >> unquoted-sections
echo "%endif" >> unquoted-sections
CompileNASM unquoted-sections || NASM=""
diff --git a/src/hermes/mmx_main.asm b/src/hermes/mmx_main.asm
index c3886d6..00032b9 100644
--- a/src/hermes/mmx_main.asm
+++ b/src/hermes/mmx_main.asm
@@ -69,6 +69,6 @@ endconvert:
ret
-%ifidn __OUTPUT_FORMAT__,elf
+%ifidn __OUTPUT_FORMAT__,elf32
section .note.GNU-stack noalloc noexec nowrite progbits
%endif
diff --git a/src/hermes/mmxp2_32.asm b/src/hermes/mmxp2_32.asm
index d2d31ec..b7c1eeb 100644
--- a/src/hermes/mmxp2_32.asm
+++ b/src/hermes/mmxp2_32.asm
@@ -400,6 +400,6 @@ _convert_bgr555_cheat:
.L4:
retn
-%ifidn __OUTPUT_FORMAT__,elf
+%ifidn __OUTPUT_FORMAT__,elf32
section .note.GNU-stack noalloc noexec nowrite progbits
%endif
diff --git a/src/hermes/x86_main.asm b/src/hermes/x86_main.asm
index e78bf8f..f7dd3db 100644
--- a/src/hermes/x86_main.asm
+++ b/src/hermes/x86_main.asm
@@ -70,6 +70,6 @@ endconvert:
-%ifidn __OUTPUT_FORMAT__,elf
+%ifidn __OUTPUT_FORMAT__,elf32
section .note.GNU-stack noalloc noexec nowrite progbits
%endif
diff --git a/src/hermes/x86p_16.asm b/src/hermes/x86p_16.asm
index e35c75d..fcb6f5a 100644
--- a/src/hermes/x86p_16.asm
+++ b/src/hermes/x86p_16.asm
@@ -485,6 +485,6 @@ _ConvertX86p16_8RGB332:
.L7 pop ebp
retn
-%ifidn __OUTPUT_FORMAT__,elf
+%ifidn __OUTPUT_FORMAT__,elf32
section .note.GNU-stack noalloc noexec nowrite progbits
%endif
diff --git a/src/hermes/x86p_32.asm b/src/hermes/x86p_32.asm
index 4446c1c..819157f 100644
--- a/src/hermes/x86p_32.asm
+++ b/src/hermes/x86p_32.asm
@@ -1040,6 +1040,6 @@ _ConvertX86p32_8RGB332:
.L4:
retn
-%ifidn __OUTPUT_FORMAT__,elf
+%ifidn __OUTPUT_FORMAT__,elf32
section .note.GNU-stack noalloc noexec nowrite progbits
%endif
--
1.7.4

View file

@ -1,24 +0,0 @@
changeset: 4557:4aa31b9207f2
branch: SDL-1.2
parent: 4554:4deaba8b1b42
user: Sam Lantinga <slouken@libsdl.org>
date: Tue Jul 20 00:01:26 2010 -0700
summary: Finally fixed bug 894 without breaking bug 716. Yay! :)
diff -r 4deaba8b1b42 -r 4aa31b9207f2 src/video/x11/SDL_x11events.c
--- a/src/video/x11/SDL_x11events.c Sun Jul 18 11:37:12 2010 -0700
+++ b/src/video/x11/SDL_x11events.c Tue Jul 20 00:01:26 2010 -0700
@@ -441,8 +441,10 @@
if ( xevent.xcrossing.mode == NotifyUngrab )
printf("Mode: NotifyUngrab\n");
#endif
- if ( xevent.xcrossing.detail != NotifyInferior ) {
- if ( this->input_grab == SDL_GRAB_OFF ) {
+ if ( (xevent.xcrossing.mode != NotifyGrab) &&
+ (xevent.xcrossing.mode != NotifyUngrab) &&
+ (xevent.xcrossing.detail != NotifyInferior) ) {
+ if ( this->input_grab == SDL_GRAB_OFF ) {
posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
} else {
posted = SDL_PrivateMouseMotion(0, 0,

View file

@ -1,26 +0,0 @@
diff -up SDL-1.2.14/src/video/x11/SDL_x11mouse.c~ SDL-1.2.14/src/video/x11/SDL_x11mouse.c
--- SDL-1.2.14/src/video/x11/SDL_x11mouse.c~ 2009-10-13 01:07:15.000000000 +0200
+++ SDL-1.2.14/src/video/x11/SDL_x11mouse.c 2010-06-23 14:16:34.730381512 +0200
@@ -230,6 +230,10 @@ void X11_CheckMouseModeNoLock(_THIS)
char *env_override;
int enable_relative = 1;
+ /* This happens when quiting after an xio error */
+ if ( SDL_Display == NULL )
+ return;
+
/* Allow the user to override the relative mouse mode.
They almost never want to do this, as it seriously affects
applications that rely on continuous relative mouse motion.
diff -up SDL-1.2.14/src/video/x11/SDL_x11wm.c~ SDL-1.2.14/src/video/x11/SDL_x11wm.c
--- SDL-1.2.14/src/video/x11/SDL_x11wm.c~ 2009-10-13 01:07:15.000000000 +0200
+++ SDL-1.2.14/src/video/x11/SDL_x11wm.c 2010-06-23 14:11:55.596629337 +0200
@@ -329,7 +329,7 @@ SDL_GrabMode X11_GrabInputNoLock(_THIS,
{
int result;
- if ( this->screen == NULL ) {
+ if ( this->screen == NULL || SDL_Display == NULL ) {
return(SDL_GRAB_OFF);
}
if ( ! SDL_Window ) {

View file

@ -1,7 +1,6 @@
# Template file for 'SDL'
pkgname=SDL
version=1.2.14
revision=9
version=1.2.15
patch_args="-Np1"
distfiles="http://www.libsdl.org/release/SDL-$version.tar.gz"
build_style=gnu-configure
@ -11,7 +10,7 @@ short_desc="Simple Directmedia Layer"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.libsdl.org/"
license="LGPL-2.1"
checksum=5d927e287034cb6bb0ebccfa382cb1d185cb113c8ab5115a0759798642eed9b6
checksum=d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
long_desc="
Simple DirectMedia Layer is a cross-platform multimedia library designed
to provide low level access to audio, keyboard, mouse, joystick, 3D hardware
@ -20,6 +19,7 @@ long_desc="
of Civilization: Call To Power."
subpackages="$pkgname-devel"
# The following run-time dependencies are dlopen(3)ed.
Add_dependency run libXext
Add_dependency run libXrender
Add_dependency run libX11