Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 2019 22:03:07 +0000 (UTC)
From:      Greg Lewis <glewis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r512543 - head/games/nethack36/files
Message-ID:  <201909212203.x8LM37J5092323@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glewis
Date: Sat Sep 21 22:03:06 2019
New Revision: 512543
URL: https://svnweb.freebsd.org/changeset/ports/512543

Log:
  Make it possible to enable dump logs
  
  * Enable the DUMPLOG configuration option
  * Configure an appropriate pattern for the dump log file name.
  
  Note, to actually enable dump logs you will need to edit sysconf and
  uncomment the DUMPLOGFILE name variable.

Added:
  head/games/nethack36/files/patch-sys-unix-sysconf   (contents, props changed)
Modified:
  head/games/nethack36/files/patch-include-config.h

Modified: head/games/nethack36/files/patch-include-config.h
==============================================================================
--- head/games/nethack36/files/patch-include-config.h	Sat Sep 21 22:00:47 2019	(r512542)
+++ head/games/nethack36/files/patch-include-config.h	Sat Sep 21 22:03:06 2019	(r512543)
@@ -1,6 +1,6 @@
---- include/config.h.orig	2015-11-17 05:58:34 UTC
-+++ include/config.h
-@@ -250,11 +250,11 @@
+--- include/config.h.orig	2018-04-27 05:07:22.000000000 -0700
++++ include/config.h	2019-04-26 07:32:12.113908000 -0700
+@@ -256,11 +256,11 @@
  
  #if defined(UNIX) && !defined(ZLIB_COMP) && !defined(COMPRESS)
  /* path and file name extension for compression program */
@@ -16,7 +16,7 @@
  #endif
  
  #ifndef COMPRESS
-@@ -317,7 +317,7 @@
+@@ -345,7 +345,7 @@
   * otherwise it will be the current directory.
   */
  #ifndef HACKDIR
@@ -25,3 +25,21 @@
  #endif
  
  /*
+@@ -520,7 +520,7 @@
+    (within the same session) */
+ /* #define EDIT_GETLIN */
+ 
+-/* #define DUMPLOG */  /* End-of-game dump logs */
++#define DUMPLOG /* End-of-game dump logs */
+ #ifdef DUMPLOG
+ 
+ #ifndef DUMPLOG_MSG_COUNT
+@@ -528,7 +528,7 @@
+ #endif
+ 
+ #ifndef DUMPLOG_FILE
+-#define DUMPLOG_FILE        "/tmp/nethack.%n.%d.log"
++#define DUMPLOG_FILE        "/tmp/nethack.%v.%u.%n.%D.log"
+ /* DUMPLOG_FILE allows following placeholders:
+    %% literal '%'
+    %v version (eg. "3.6.1-0")

Added: head/games/nethack36/files/patch-sys-unix-sysconf
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/nethack36/files/patch-sys-unix-sysconf	Sat Sep 21 22:03:06 2019	(r512543)
@@ -0,0 +1,11 @@
+--- sys/unix/sysconf.orig	2019-05-09 08:15:39.750365000 -0700
++++ sys/unix/sysconf	2019-05-09 08:16:22.900472000 -0700
+@@ -98,7 +98,7 @@
+ #   %D current time, YYYYMMDDhhmmss format
+ #   %n player name
+ #   %N first character of player name
+-#DUMPLOGFILE=/tmp/nethack.%n.%d.log
++#DUMPLOGFILE=/tmp/nethack..%v.%u.%n.%D.log
+ 
+ # Number of bones file pools.
+ # The pool you belong to is determined at game start. You will



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909212203.x8LM37J5092323>