pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
restoHack: fix linking problem, update TODO
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Sat Aug 9 18:02:40 2025 +0200
Changeset: 46af6453c774a0d30840be993a126c9861d0475b
Modified Files:
restoHack/Makefile
restoHack/PLIST
restoHack/TODO
restoHack/distinfo
Added Files:
restoHack/patches/patch-src_hack.unix.c
Log Message:
restoHack: fix linking problem, update TODO
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=46af6453c774a0d30840be993a126c9861d0475b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
restoHack/Makefile | 3 ++-
restoHack/PLIST | 9 ++++++---
restoHack/TODO | 9 ++-------
restoHack/distinfo | 1 +
restoHack/patches/patch-src_hack.unix.c | 16 ++++++++++++++++
5 files changed, 27 insertions(+), 11 deletions(-)
diffs:
diff --git a/restoHack/Makefile b/restoHack/Makefile
index ae8b964fa1..467a07a0ec 100644
--- a/restoHack/Makefile
+++ b/restoHack/Makefile
@@ -10,7 +10,8 @@ HOMEPAGE= https://github.com/Critlist/restoHack/
COMMENT= Modern version of the original Hack
LICENSE= public-domain AND modified-bsd
-LIBS.NetBSD+= -lcurses
+# https://github.com/Critlist/restoHack/issues/4
+LDFLAGS.NetBSD+= -lcurses
.include "../../devel/cmake/build.mk"
.include "../../mk/curses.buildlink3.mk"
diff --git a/restoHack/PLIST b/restoHack/PLIST
index 92ba51a2d7..8172ced507 100644
--- a/restoHack/PLIST
+++ b/restoHack/PLIST
@@ -1,4 +1,7 @@
@comment $NetBSD$
-@comment TODO: to fill this file with the file listing:
-@comment TODO: 1. run "/usr/bin/make package"
-@comment TODO: 2. run "/usr/bin/make print-PLIST"
+bin/hack
+share/hack/data
+share/hack/help
+share/hack/hh
+share/hack/rumors
+share/man/man6/hack.6
diff --git a/restoHack/TODO b/restoHack/TODO
index 3092b9e80a..97448292c6 100644
--- a/restoHack/TODO
+++ b/restoHack/TODO
@@ -1,8 +1,3 @@
-ld: CMakeFiles/hack.dir/src/hack.pri.c.o: in function `tmp_at':
-/scratch/games/restoHack/work/restoHack-1.0.2/src/hack.pri.c:104:(.text+0xbea): undefined reference to `delay_output'
-ld: CMakeFiles/hack.dir/src/hack.pri.c.o: in function `Tmp_at':
-/scratch/games/restoHack/work/restoHack-1.0.2/src/hack.pri.c:147:(.text+0xd5c): undefined reference to `delay_output'
-ld: CMakeFiles/hack.dir/src/hack.unix.c.o: in function `setrandom':
-/scratch/games/restoHack/work/restoHack-1.0.2/src/hack.unix.c:35:(.text+0x3): undefined reference to `srandomdev'
+Untested.
-https://github.com/Critlist/restoHack/issues/4
+Man pages need to be installed in proper location.
diff --git a/restoHack/distinfo b/restoHack/distinfo
index 327120fec6..121455e8dc 100644
--- a/restoHack/distinfo
+++ b/restoHack/distinfo
@@ -3,3 +3,4 @@ $NetBSD$
BLAKE2s (restoHack-1.0.2.tar.gz) = 54a4a67d52300ce893134963d47ae65fa77ad54d7e4a737c8cdf51d88138b6a2
SHA512 (restoHack-1.0.2.tar.gz) = 8bc5777c1b0591d59d2be4f3ea9f9daa080a5ed18192bcd6be625a3003a9747fe64c18faf42de1b9de553e762dc84b0fb2504dfe125a514447228e5453fe0938
Size (restoHack-1.0.2.tar.gz) = 210115 bytes
+SHA1 (patch-src_hack.unix.c) = f6f4b7ac4b3eefcfd2e14342508d65c59c9b07e5
diff --git a/restoHack/patches/patch-src_hack.unix.c b/restoHack/patches/patch-src_hack.unix.c
new file mode 100644
index 0000000000..397a96741a
--- /dev/null
+++ b/restoHack/patches/patch-src_hack.unix.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Avoid undefined symbol on NetBSD.
+https://github.com/Critlist/restoHack/issues/4
+
+--- src/hack.unix.c.orig 2025-08-09 16:01:24.973179273 +0000
++++ src/hack.unix.c
+@@ -28,7 +28,7 @@
+ void
+ setrandom(void)
+ {
+-#ifdef __linux__
++#if defined(__linux__) || defined(__NetBSD__)
+ /* Linux doesn't have srandomdev(), use time-based seeding */
+ (void) srandom((unsigned int)time(NULL));
+ #else
Home |
Main Index |
Thread Index |
Old Index