Opened 19 years ago

Closed 19 years ago

Last modified 8 years ago

#4555 closed defect (fixed)

Nethack port install sets wrong $HACKDIR?

Reported by: sigint@… Owned by: kvv@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: nethack

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I applied the patch supplied in Bug #3010, and got fortune to install.

When I run /opt/local/bin/nethack now, I get the following output (and no nethack):

/opt/local/bin/nethack: line 51: cd: /opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_games_nethack/work/destroot/opt/local/share/nethackdir: No such file or directory
/opt/local/bin/nethack: line 57: /opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_games_nethack/work/destroot/opt/local/share/nethackdir/nethack: No such file or directory
/opt/local/bin/nethack: line 57: exec: /opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_games_nethack/work/destroot/opt/local/share/nethackdir/nethack: cannot execute: No such file or directory

I made it work by manually hacking /opt/local/bin/nethack thusly:

--- nethack~    2005-07-27 01:19:06.000000000 +1000
+++ nethack     2005-07-27 01:17:58.000000000 +1000
@@ -1,7 +1,8 @@
 #!/bin/sh
 #      SCCS Id: @(#)nethack.sh 3.4     1990/02/26
 
-HACKDIR=/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_games_nethack/work/destroot/opt/local/share/nethackdir
+HACKDIR=/opt/local/share/nethackdir
 export HACKDIR
 HACK=$HACKDIR/nethack
 MAXNROFPLAYERS=4

I'm pretty sure the manual hacking I did on termcap.c didn't cause this, so I thought I'd post the problem/solution to make it googleable/reusable. If it's caused by my tinkering/stupidity, I'm sorry for spamming you.

Thanks, -s

Change History (3)

comment:1 Changed 19 years ago by blb@…

Owner: changed from darwinports-bugs@… to kevin@…

Assigning to maintainer.

comment:2 Changed 19 years ago by yeled@…

Resolution: fixed
Status: newclosed

This was fixed this morning by Toby. Please update.

comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: nethack added
Note: See TracTickets for help on using tickets.