Browse Source

Fix syscf location error on boot

feature/nightly-build
Matthew Faltys 5 years ago
parent
commit
928848a5de
  1. 8
      deps/Dockerfile

8
deps/Dockerfile vendored

@ -10,6 +10,7 @@ RUN apt-get update && \
bsdmainutils \ bsdmainutils \
flex \ flex \
gcc \ gcc \
gdb \
git \ git \
groff \ groff \
libncursesw5-dev \ libncursesw5-dev \
@ -30,8 +31,13 @@ RUN apt-get clean
# #
RUN git clone https://github.com/NetHack/NetHack.git RUN git clone https://github.com/NetHack/NetHack.git
RUN cd NetHack && \ RUN cd NetHack && \
sed -i 's/#ifndef SYSCF/#ifdef SYSCF/g' include/config.h && \
sys/unix/setup.sh sys/unix/hints/linux && \ 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 find /* -name nethack
RUN chmod 777 /NetHack/sys/unix/sysconf RUN chmod 777 /NetHack/sys/unix/sysconf

Loading…
Cancel
Save