Sat Aug 26 15:02:25 2023 UTC ()
games/nethack-lib: updated NetHack to version 3.6.7.

NetHack 3.6.7 is the official release of NetHack that follows NetHack 3.6.6.

This release primarily corrects a security issue present in NetHack versions
3.6.2, 3.6.3, 3.6.4, 3.6.5, and 3.6.6. For details about the security issues
please see https://www.nethack.org/security. You are encouraged to update to
NetHack 3.6.7 as soon as possible.

Here's a brief synopsis of the handful of bug fixes included in NetHack 3.6.7:

    invalid status highlight color could be maliciously used to corrupt memory
    formatting corpse names used internal buffers differently from formatting
other objects and could potentially clobber memory
    during engraving, spaces were counted instead of non-space (cherry-pick of
4e0a1e04 from NetHack-3.7)
    avoid potential buffer overflow in append_str()
    resolve missing dependency in NetHack.sln
    code in include/tradstdc.h was trying to suppress warn_unused result by
defining warn_unused_result to an empty string and that began causing a build
error within a system-supplied header file cdefs.h when using Ubuntu Impish
21.10; disable that for any Linux and macOS gcc unless GCC_URWARN is defined to
force it back into effect
    update_inventory() after leash goes slack
    player assigned name for monsters, specific objects, or object types could
be longer than what was intented to be allowed; for 'curses', much longer
    curses: cherry-picked selectsaved code from 3.7 for menu of save files
    NetHackW: fix delayed rendering of cursor when using farlook


(rhialto)
diff -r1.44 -r1.45 pkgsrc/games/nethack-lib/Makefile.common
diff -r1.29 -r1.30 pkgsrc/games/nethack-lib/distinfo

cvs diff -r1.44 -r1.45 pkgsrc/games/nethack-lib/Makefile.common (expand / switch to unified diff)

--- pkgsrc/games/nethack-lib/Makefile.common 2022/04/24 22:21:33 1.44
+++ pkgsrc/games/nethack-lib/Makefile.common 2023/08/26 15:02:25 1.45
@@ -1,49 +1,49 @@ @@ -1,49 +1,49 @@
1# $NetBSD: Makefile.common,v 1.44 2022/04/24 22:21:33 tnn Exp $ 1# $NetBSD: Makefile.common,v 1.45 2023/08/26 15:02:25 rhialto Exp $
2# 2#
3# used by games/nethack/Makefile 3# used by games/nethack/Makefile
4# used by games/nethack-lib/Makefile 4# used by games/nethack-lib/Makefile
5# used by games/nethack-x11/Makefile 5# used by games/nethack-x11/Makefile
6# used by games/nethack-tty/Makefile 6# used by games/nethack-tty/Makefile
7# 7#
8# System-provided variables: 8# System-provided variables:
9# 9#
10# GAMEPERM 10# GAMEPERM
11# The desired owner and the file mode of game executables. 11# The desired owner and the file mode of game executables.
12# 12#
13 13
14NETHACK_BASEVER= 3.6.6 14NETHACK_BASEVER= 3.6.7
15NETHACK_VERSION= ${NETHACK_BASEVER} 15NETHACK_VERSION= ${NETHACK_BASEVER}
16NETHACK_DISTVER= ${NETHACK_BASEVER:S/.//g} 16NETHACK_DISTVER= ${NETHACK_BASEVER:S/.//g}
17NETHACK_DIR= nethackdir${NETHACK_SAVEVER:S/.//g} 17NETHACK_DIR= nethackdir${NETHACK_SAVEVER:S/.//g}
18 18
19# The oldest compatible version of save files. Only change this when 19# The oldest compatible version of save files. Only change this when
20# the upstream breaks save file compatibility. 20# the upstream breaks save file compatibility.
21NETHACK_SAVEVER= 3.6.0 21NETHACK_SAVEVER= 3.6.0
22 22
23DISTNAME= nethack-${NETHACK_DISTVER}-src 23DISTNAME= nethack-${NETHACK_DISTVER}-src
24CATEGORIES= games 24CATEGORIES= games
25MASTER_SITES= https://www.nethack.org/download/${NETHACK_BASEVER}/ 25MASTER_SITES= https://www.nethack.org/download/${NETHACK_BASEVER}/
26EXTRACT_SUFX= .tgz 26EXTRACT_SUFX= .tgz
27 27
28MAINTAINER= pkgsrc-users@NetBSD.org 28MAINTAINER= pkgsrc-users@NetBSD.org
29HOMEPAGE= https://www.nethack.org/ 29HOMEPAGE= https://www.nethack.org/
30LICENSE= nethack-license 30LICENSE= nethack-license
31 31
32MAKE_JOBS_SAFE= no 32MAKE_JOBS_SAFE= no
33 33
34.if !defined(META_PACKAGE) 34.if !defined(META_PACKAGE)
35 35
36WRKSRC= ${WRKDIR}/NetHack-NetHack-${NETHACK_BASEVER}_Released 36WRKSRC= ${WRKDIR}/NetHack-${NETHACK_BASEVER}
37HAS_CONFIGURE= yes 37HAS_CONFIGURE= yes
38CONFIGURE_SCRIPT= ./sys/unix/setup.sh 38CONFIGURE_SCRIPT= ./sys/unix/setup.sh
39USE_TOOLS+= gzip yacc lex awk 39USE_TOOLS+= gzip yacc lex awk
40 40
41.include "../../mk/curses.buildlink3.mk" 41.include "../../mk/curses.buildlink3.mk"
42.include "../../mk/termcap.buildlink3.mk" 42.include "../../mk/termcap.buildlink3.mk"
43 43
44OPSYSVARS+= NETHACK_OS 44OPSYSVARS+= NETHACK_OS
45NETHACK_OS.Linux= SYSV 45NETHACK_OS.Linux= SYSV
46NETHACK_OS.*= BSD 46NETHACK_OS.*= BSD
47 47
48SUBST_CLASSES+= os 48SUBST_CLASSES+= os
49SUBST_MESSAGE.os= Configuring for ${NETHACK_OS} 49SUBST_MESSAGE.os= Configuring for ${NETHACK_OS}

cvs diff -r1.29 -r1.30 pkgsrc/games/nethack-lib/distinfo (expand / switch to unified diff)

--- pkgsrc/games/nethack-lib/distinfo 2021/10/26 10:44:16 1.29
+++ pkgsrc/games/nethack-lib/distinfo 2023/08/26 15:02:25 1.30
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1$NetBSD: distinfo,v 1.29 2021/10/26 10:44:16 nia Exp $ 1$NetBSD: distinfo,v 1.30 2023/08/26 15:02:25 rhialto Exp $
2 2
3BLAKE2s (nethack-366-src.tgz) = 0557c802cef4346ccfe133d9db7c1d8d976fca4b485e031d60901e4afceb4247 3BLAKE2s (nethack-367-src.tgz) = 56c447099ddfdbd1c2dcb0d85b859031057c76fa6a885d9a0fcaae87d47cd371
4SHA512 (nethack-366-src.tgz) = 579fde93a37a1b5df637d5bac2601194beeb455c175fbe3ef89342122c8567bb8221ce60d8a6168e6b45c67ade7d7b09c86bf202c8cbe2d6294d276be3e53055 4SHA512 (nethack-367-src.tgz) = 7890d17e087f4344d30e9a908fa1f24d7c72bc714c4a6415ed59800902cc0aa6b3ce94c5d73857b0222349b96b1fdc8bf3f93b3ac1153477ad1419af7b0d3fb5
5Size (nethack-366-src.tgz) = 5577633 bytes 5Size (nethack-367-src.tgz) = 5577415 bytes
6SHA1 (patch-ai) = 73c5b2ea1227531089474705f2f18bc411366365 6SHA1 (patch-ai) = 73c5b2ea1227531089474705f2f18bc411366365
7SHA1 (patch-include_config.h) = d3e054a8b30d628513dcb445b10ce586685c7ea6 7SHA1 (patch-include_config.h) = d3e054a8b30d628513dcb445b10ce586685c7ea6
8SHA1 (patch-include_system.h) = b1b53f513c3f6983e0e56eace74c71875b5df3f2 8SHA1 (patch-include_system.h) = b1b53f513c3f6983e0e56eace74c71875b5df3f2
9SHA1 (patch-include_unixconf.h) = 6846c72526f3bda7fe3eccbce641e5feee14d901 9SHA1 (patch-include_unixconf.h) = 6846c72526f3bda7fe3eccbce641e5feee14d901
10SHA1 (patch-src_mail.c) = 5b2a67e0b4d0fc9c715573d1bad6bcafa67b469e 10SHA1 (patch-src_mail.c) = 5b2a67e0b4d0fc9c715573d1bad6bcafa67b469e
11SHA1 (patch-sys_unix_Makefile.doc) = 6219620c50dc7eac6601f87d4a295cb10f02e141 11SHA1 (patch-sys_unix_Makefile.doc) = 6219620c50dc7eac6601f87d4a295cb10f02e141
12SHA1 (patch-sys_unix_Makefile.src) = 35eabd1ca5577988e48daf10835dfa335f7e67ac 12SHA1 (patch-sys_unix_Makefile.src) = 35eabd1ca5577988e48daf10835dfa335f7e67ac
13SHA1 (patch-sys_unix_Makefile.top) = 0736aafda67dec45657f9f15338ce2f89add9747 13SHA1 (patch-sys_unix_Makefile.top) = 0736aafda67dec45657f9f15338ce2f89add9747
14SHA1 (patch-sys_unix_Makefile.utl) = 142f267fdd9a94c212657b7242dea6a3716c738e 14SHA1 (patch-sys_unix_Makefile.utl) = 142f267fdd9a94c212657b7242dea6a3716c738e
15SHA1 (patch-sys_unix_nethack.sh) = eec4b6619584d7e07ac5d9a086af9bc8f7e6285f 15SHA1 (patch-sys_unix_nethack.sh) = eec4b6619584d7e07ac5d9a086af9bc8f7e6285f
16SHA1 (patch-util_recover.c) = 60e5ec35313a97cf788ff1ed4a4772bbcf24bc48 16SHA1 (patch-util_recover.c) = 60e5ec35313a97cf788ff1ed4a4772bbcf24bc48