pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/SDL2 add patch to work around -Werror=declaratio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dd7102f7b4b9
branches:  trunk
changeset: 355741:dd7102f7b4b9
user:      wiedi <wiedi%pkgsrc.org@localhost>
date:      Sun Dec 11 19:42:45 2016 +0000

description:
add patch to work around -Werror=declaration-after-statement on SunOS

diffstat:

 devel/SDL2/Makefile                                    |   4 +-
 devel/SDL2/distinfo                                    |   3 +-
 devel/SDL2/patches/patch-src_audio_sun_SDL__sunaudio.c |  29 ++++++++++++++++++
 3 files changed, 33 insertions(+), 3 deletions(-)

diffs (63 lines):

diff -r 6234621c361f -r dd7102f7b4b9 devel/SDL2/Makefile
--- a/devel/SDL2/Makefile       Sun Dec 11 19:19:36 2016 +0000
+++ b/devel/SDL2/Makefile       Sun Dec 11 19:42:45 2016 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2016/10/30 18:10:21 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2016/12/11 19:42:45 wiedi Exp $
 
 DISTNAME=      SDL2-2.0.5
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel
 MASTER_SITES=  http://www.libsdl.org/release/
 
diff -r 6234621c361f -r dd7102f7b4b9 devel/SDL2/distinfo
--- a/devel/SDL2/distinfo       Sun Dec 11 19:19:36 2016 +0000
+++ b/devel/SDL2/distinfo       Sun Dec 11 19:42:45 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2016/10/30 18:10:21 wiz Exp $
+$NetBSD: distinfo,v 1.23 2016/12/11 19:42:45 wiedi Exp $
 
 SHA1 (SDL2-2.0.5.tar.gz) = c4f87580630387796df4ac87c362b4f9a721457e
 RMD160 (SDL2-2.0.5.tar.gz) = 91283ce74bd451e83651910259cf226cae70e4bb
@@ -6,6 +6,7 @@
 Size (SDL2-2.0.5.tar.gz) = 4209352 bytes
 SHA1 (patch-configure) = 7302a4fc6172b0cb1ca95f36d1cf8516afb6383c
 SHA1 (patch-src_audio_bsd_SDL__bsdaudio.c) = a165f34d6ac26d7948a9c36981ea18e2b8bcfa9e
+SHA1 (patch-src_audio_sun_SDL__sunaudio.c) = fc2c8f50b55ae86a1f89e2b829322231240dee7d
 SHA1 (patch-src_joystick_bsd_SDL__sysjoystick.c) = 37f19752cbba8def12a210deafec66965e3ad9ac
 SHA1 (patch-src_video_SDL__egl.c) = d65856e98b2e49dd364440372ce37679a6f2982b
 SHA1 (patch-src_video_x11_SDL__x11opengl.c) = a435634da8b8bd5e74a281b9a26e8fb8a294e56b
diff -r 6234621c361f -r dd7102f7b4b9 devel/SDL2/patches/patch-src_audio_sun_SDL__sunaudio.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/SDL2/patches/patch-src_audio_sun_SDL__sunaudio.c    Sun Dec 11 19:42:45 2016 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-src_audio_sun_SDL__sunaudio.c,v 1.1 2016/12/11 19:42:46 wiedi Exp $
+
+move decleration up because SDL wants to use -Werror=declaration-after-statement
+
+--- src/audio/sun/SDL_sunaudio.c.orig  2016-10-20 03:56:26.000000000 +0000
++++ src/audio/sun/SDL_sunaudio.c
+@@ -193,6 +193,10 @@ SUNAUDIO_CloseDevice(_THIS)
+ static int
+ SUNAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
+ {
++#ifdef AUDIO_SETINFO
++    int enc;
++#endif
++    int desired_freq = 0;
+     const int flags = ((iscapture) ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT);
+     SDL_AudioFormat format = 0;
+     audio_info_t info;
+@@ -220,10 +224,7 @@ SUNAUDIO_OpenDevice(_THIS, void *handle,
+         return SDL_SetError("Couldn't open %s: %s", devname, strerror(errno));
+     }
+ 
+-#ifdef AUDIO_SETINFO
+-    int enc;
+-#endif
+-    int desired_freq = this->spec.freq;
++    desired_freq = this->spec.freq;
+ 
+     /* Determine the audio parameters from the AudioSpec */
+     switch (SDL_AUDIO_BITSIZE(this->spec.format)) {



Home | Main Index | Thread Index | Old Index