pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/games/nethack-lib
Module Name: pkgsrc
Committed By: mrg
Date: Sat Apr 25 07:12:01 UTC 2026
Modified Files:
pkgsrc/games/nethack-lib: distinfo
Added Files:
pkgsrc/games/nethack-lib/patches: patch-src-hacklib.c
Log Message:
fix build on ppc.
use LOCALTIME_type when calling localtime().
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 pkgsrc/games/nethack-lib/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/nethack-lib/patches/patch-src-hacklib.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/games/nethack-lib/distinfo
diff -u pkgsrc/games/nethack-lib/distinfo:1.32 pkgsrc/games/nethack-lib/distinfo:1.33
--- pkgsrc/games/nethack-lib/distinfo:1.32 Sat Sep 2 13:45:14 2023
+++ pkgsrc/games/nethack-lib/distinfo Sat Apr 25 07:12:01 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.32 2023/09/02 13:45:14 rhialto Exp $
+$NetBSD: distinfo,v 1.33 2026/04/25 07:12:01 mrg Exp $
BLAKE2s (nethack-367-src.tgz) = 56c447099ddfdbd1c2dcb0d85b859031057c76fa6a885d9a0fcaae87d47cd371
SHA512 (nethack-367-src.tgz) = 7890d17e087f4344d30e9a908fa1f24d7c72bc714c4a6415ed59800902cc0aa6b3ce94c5d73857b0222349b96b1fdc8bf3f93b3ac1153477ad1419af7b0d3fb5
@@ -7,6 +7,7 @@ SHA1 (patch-ai) = 73c5b2ea12275310894747
SHA1 (patch-include_config.h) = 963b9b6e580cbdf5516207a485a0baa6b0b7909f
SHA1 (patch-include_system.h) = b1b53f513c3f6983e0e56eace74c71875b5df3f2
SHA1 (patch-include_unixconf.h) = 6846c72526f3bda7fe3eccbce641e5feee14d901
+SHA1 (patch-src-hacklib.c) = 97d8e609f6e542b903b441002c09d0a584e07374
SHA1 (patch-src_mail.c) = 5b2a67e0b4d0fc9c715573d1bad6bcafa67b469e
SHA1 (patch-sys_unix_Makefile.doc) = 6219620c50dc7eac6601f87d4a295cb10f02e141
SHA1 (patch-sys_unix_Makefile.src) = 36c4adc70551b5a460ebeb86eeb34fb188e5b420
Added files:
Index: pkgsrc/games/nethack-lib/patches/patch-src-hacklib.c
diff -u /dev/null pkgsrc/games/nethack-lib/patches/patch-src-hacklib.c:1.1
--- /dev/null Sat Apr 25 07:12:01 2026
+++ pkgsrc/games/nethack-lib/patches/patch-src-hacklib.c Sat Apr 25 07:12:01 2026
@@ -0,0 +1,20 @@
+$NetBSD: patch-src-hacklib.c,v 1.1 2026/04/25 07:12:01 mrg Exp $
+
+Use LOCALTIME_type for localtime() to avoid failing on powerpc.
+
+--- src/hacklib.c.orig 2023-02-15 21:52:57.000000000 +0000
++++ src/hacklib.c 2026-02-01 22:02:20.288529244 +0000
+@@ -1016,12 +1016,7 @@ time_t date;
+ if (date == 0)
+ lt = getlt();
+ else
+-#if (defined(ULTRIX) && !(defined(ULTRIX_PROTO) || defined(NHSTDC))) \
+- || defined(BSD)
+- lt = localtime((long *) (&date));
+-#else
+- lt = localtime(&date);
+-#endif
++ lt = localtime((LOCALTIME_type) (&date));
+ /* just in case somebody's localtime supplies (year % 100)
+ rather than the expected (year - 1900) */
+ if (lt->tm_year < 70)
Home |
Main Index |
Thread Index |
Old Index