void-packages/srcpkgs/nethack/patches/1-linux-hints.patch

17 lines
667 B
Diff

We move /usr/lib/nethack/sysconf to /etc/nethack/sysconf since
this file is intended to be editable by root.
diff --git sys/unix/hints/linux sys/unix/hints/linux
index 8629150..9a4d722 100644
--- a/sys/unix/hints/linux
+++ b/sys/unix/hints/linux
@@ -23,7 +23,7 @@ POSTINSTALL=cp -n sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INS
CFLAGS=-g -O -I../include -DNOTPARMDECL
CFLAGS+=-DDLB
CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
-CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE
+CFLAGS+=-DSYSCF -DSYSCF_FILE=\"/etc/nethack/sysconf\" -DSECURE
CFLAGS+=-DTIMED_DELAY
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
CFLAGS+=-DDUMPLOG