From 928848a5dece850bb45f013bb5919b305d29c6f7 Mon Sep 17 00:00:00 2001 From: Matthew Faltys Date: Thu, 5 Dec 2019 17:26:30 +0000 Subject: [PATCH] Fix syscf location error on boot --- deps/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deps/Dockerfile b/deps/Dockerfile index 2219170..1dc7510 100644 --- a/deps/Dockerfile +++ b/deps/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get update && \ bsdmainutils \ flex \ gcc \ + gdb \ git \ groff \ libncursesw5-dev \ @@ -30,8 +31,13 @@ RUN apt-get clean # RUN git clone https://github.com/NetHack/NetHack.git RUN cd NetHack && \ + sed -i 's/#ifndef SYSCF/#ifdef SYSCF/g' include/config.h && \ sys/unix/setup.sh sys/unix/hints/linux && \ - make all + sed -i '/POSTINSTALL=/d' Makefile && \ + sed -i 's/.*-DSYSCF -DSYSCF_FILE=.*/CFLAGS+=-DSECURE/' Makefile && \ + cat Makefile && \ + make all && \ + make install RUN find /* -name nethack RUN chmod 777 /NetHack/sys/unix/sysconf