summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2017-12-25 22:22:11 +0000
committerhe <he@pkgsrc.org>2017-12-25 22:22:11 +0000
commit3ac18dd468390fe5e5431b63e2f963e7f0d0a3ca (patch)
treea0dda74116ec0fa73c37437e7c63efe601e34a43 /games
parent61666b6417f62ece5b3a8c1526c3d3ef9499b8a2 (diff)
downloadpkgsrc-3ac18dd468390fe5e5431b63e2f963e7f0d0a3ca.tar.gz
Don't try to provide own declarations for vsprintf, vfprintf and vprintf,
as this causes build failure and a run-in with __builtin___vsprintf_chk() on NetBSD 8.0. Instead just include <stdarg.h> and <stdio.h>. Rename the patch file for include/system.h in the process. Bump PKGREVISION.
Diffstat (limited to 'games')
-rw-r--r--games/nethack-lib/Makefile4
-rw-r--r--games/nethack-lib/distinfo4
-rw-r--r--games/nethack-lib/patches/patch-include_system.h (renamed from games/nethack-lib/patches/patch-ac)21
3 files changed, 22 insertions, 7 deletions
diff --git a/games/nethack-lib/Makefile b/games/nethack-lib/Makefile
index 8b3d565dbf3..af3621fc730 100644
--- a/games/nethack-lib/Makefile
+++ b/games/nethack-lib/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.30 2016/02/25 13:19:47 jperkin Exp $
+# $NetBSD: Makefile,v 1.31 2017/12/25 22:22:11 he Exp $
#
.include "../../games/nethack-lib/Makefile.common"
PKGNAME= nethack-lib-${NETHACK_VERSION}
-PKGREVISION= 4
+PKGREVISION= 5
COMMENT= Data files for Nethack
diff --git a/games/nethack-lib/distinfo b/games/nethack-lib/distinfo
index 319bc189948..b779ac13715 100644
--- a/games/nethack-lib/distinfo
+++ b/games/nethack-lib/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2017/12/14 16:13:31 jperkin Exp $
+$NetBSD: distinfo,v 1.21 2017/12/25 22:22:11 he Exp $
SHA1 (nethack-343-src.tgz) = c26537093c38152bc0fbcec20468d975b35f59fd
RMD160 (nethack-343-src.tgz) = 42f600d24715a0b7e631b357c135761410b3ca95
@@ -6,12 +6,12 @@ SHA512 (nethack-343-src.tgz) = 052342c19619219f291571d48cf7799f962eb6ec6f8a27642
Size (nethack-343-src.tgz) = 3497458 bytes
SHA1 (patch-aa) = 31d89b27e52189de9a51fbb04f1ed390c5377b2b
SHA1 (patch-ab) = 49947b960f2b7871fc798398d1c1ceab8d462ec9
-SHA1 (patch-ac) = 50cac811281c629edf2a72e523b62b51f8c3c840
SHA1 (patch-ad) = be56ef8459f3273a0b316bb94e0ae7397a53c37f
SHA1 (patch-ae) = 8530c1e033f2522e05b699db36d84f77ecf886be
SHA1 (patch-af) = a567c4c664f135ad24f3f0069ddc29bf5b950b21
SHA1 (patch-ag) = 5bf322fb92a3cd9df9559e56265f0477d9e92487
SHA1 (patch-ai) = 73c5b2ea1227531089474705f2f18bc411366365
+SHA1 (patch-include_system.h) = a352695aa31c9459ec5559ec5fb7fef7bfdcb9c8
SHA1 (patch-sys_unix_Makefile.src) = d2d961ab9aec3d9f88d5b5340530f95181b0a92b
SHA1 (patch-sys_unix_Makefile.utl) = 3bcec6ffab218370f132b4a850f7b35316487ec6
SHA1 (patch-util_makedefs.c) = 63faf92a7f511fcf73317789a3008350cdd404d9
diff --git a/games/nethack-lib/patches/patch-ac b/games/nethack-lib/patches/patch-include_system.h
index 58a5d8f7a94..bfdee6a731c 100644
--- a/games/nethack-lib/patches/patch-ac
+++ b/games/nethack-lib/patches/patch-include_system.h
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.10 2011/06/01 11:20:29 wiz Exp $
+$NetBSD: patch-include_system.h,v 1.1 2017/12/25 22:22:11 he Exp $
Fix for NetBSD.
---- include/system.h.orig 2003-12-07 15:39:13.000000000 -0800
+--- include/system.h.orig 2003-12-07 23:39:13.000000000 +0000
+++ include/system.h
@@ -79,10 +79,10 @@ typedef long off_t;
# if !defined(__SC__) && !defined(LINUX)
@@ -35,7 +35,22 @@ Fix for NetBSD.
E int FDECL(strlen, (const char *));
# endif
# endif /* HPUX */
-@@ -521,7 +521,7 @@ E struct tm *FDECL(localtime, (const tim
+@@ -476,9 +476,14 @@ E char *sprintf();
+ # if !defined(SVR4) && !defined(apollo)
+ # if !(defined(ULTRIX_PROTO) && defined(__GNUC__))
+ # if !(defined(SUNOS4) && defined(__STDC__)) /* Solaris unbundled cc (acc) */
++#if 0
+ E int FDECL(vsprintf, (char *, const char *, va_list));
+ E int FDECL(vfprintf, (FILE *, const char *, va_list));
+ E int FDECL(vprintf, (const char *, va_list));
++#else
++#include <stdarg.h>
++#include <stdio.h>
++#endif
+ # endif
+ # endif
+ # endif
+@@ -521,7 +526,7 @@ E struct tm *FDECL(localtime, (const tim
# endif
# endif