diff options
author | he <he@pkgsrc.org> | 2018-01-26 12:45:27 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2018-01-26 12:45:27 +0000 |
commit | 408a525d73d85f032a8d55e9267f5cdffa6ee32e (patch) | |
tree | 734897b6f287192e61ca98781f1e9ca5de836787 /audio | |
parent | a3a5e0afbbb636c5d1b00e9ae7ec4abde30a71f1 (diff) | |
download | pkgsrc-408a525d73d85f032a8d55e9267f5cdffa6ee32e.tar.gz |
Add a patch / build fix for NetBSD 8.0:
Avoid problems resulting from the SIZE macro expanding to "two
arguments", but the argument list already having been scanned,
leading to build failure with SSP on NetBSD 8.0.
Thanks for hint from joerg@
PKGREVISION bumped.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/rplay/Makefile | 4 | ||||
-rw-r--r-- | audio/rplay/distinfo | 3 | ||||
-rw-r--r-- | audio/rplay/patches/patch-include_config.h.in | 25 |
3 files changed, 29 insertions, 3 deletions
diff --git a/audio/rplay/Makefile b/audio/rplay/Makefile index 42992f2f5f4..90c9512e1bd 100644 --- a/audio/rplay/Makefile +++ b/audio/rplay/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.66 2017/12/24 10:15:53 wiz Exp $ +# $NetBSD: Makefile,v 1.67 2018/01/26 12:45:27 he Exp $ DISTNAME= rplay-3.3.2 -PKGREVISION= 7 +PKGREVISION= 8 CATEGORIES= audio #MASTER_SITES= http://rplay.doit.org/dist/ diff --git a/audio/rplay/distinfo b/audio/rplay/distinfo index c8e403072fa..d8dcb78d558 100644 --- a/audio/rplay/distinfo +++ b/audio/rplay/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.17 2015/11/03 01:12:49 agc Exp $ +$NetBSD: distinfo,v 1.18 2018/01/26 12:45:27 he Exp $ SHA1 (rplay-3.3.2.tar.gz) = 80b8001998a6f9837773f26285afffd609df2662 RMD160 (rplay-3.3.2.tar.gz) = e5c740eade2cc770ea78c8f53020fa6d78f59861 @@ -37,3 +37,4 @@ SHA1 (patch-cb) = 24c810e43d6735c24908ba429ede32a49cff36e8 SHA1 (patch-cc) = 824d7c70282d24e489c7c041982018da13ac70ce SHA1 (patch-devrplay_Makefile.in) = 0e158606fefa128cfcd798cd7919fe589ba04144 SHA1 (patch-devrplay_devrplay.c) = b9a5434a8060347217e5a683cfc84d9bf73d9572 +SHA1 (patch-include_config.h.in) = 1b706770619f17517f78eb3cd125263910a7c479 diff --git a/audio/rplay/patches/patch-include_config.h.in b/audio/rplay/patches/patch-include_config.h.in new file mode 100644 index 00000000000..6adb10c32f3 --- /dev/null +++ b/audio/rplay/patches/patch-include_config.h.in @@ -0,0 +1,25 @@ +$NetBSD: patch-include_config.h.in,v 1.1 2018/01/26 12:45:27 he Exp $ + +Provide a sneaky way to avoid problems resulting from the SIZE macro +expanding to two arguments, but the argument list already having been +scanned, leading to build failure with SSP on NetBSD 8.0. +Thanks for hint from joerg@ + +--- include/config.h.in.orig 2018-01-26 10:57:53.228900262 +0000 ++++ include/config.h.in +@@ -287,13 +287,13 @@ + #endif + + #ifdef HAVE_SNPRINTF +-#define SNPRINTF snprintf ++#define SNPRINTF(str, ...) snprintf(str, __VA_ARGS__) + #else + #define SNPRINTF sprintf + #endif + + #ifdef HAVE_VSNPRINTF +-#define VSNPRINTF vsnprintf ++#define VSNPRINTF(str, ...) vsnprintf(str, __VA_ARGS__) + #else + #define VSNPRINTF vsprintf + #endif |