From owner-svn-ports-all@freebsd.org Sat Sep 21 22:03:08 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0F67912FFC8; Sat, 21 Sep 2019 22:03:08 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46bPj76SLyz42Qs; Sat, 21 Sep 2019 22:03:07 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A676E1CB8B; Sat, 21 Sep 2019 22:03:07 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8LM37H8092325; Sat, 21 Sep 2019 22:03:07 GMT (envelope-from glewis@FreeBSD.org) Received: (from glewis@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8LM37J5092323; Sat, 21 Sep 2019 22:03:07 GMT (envelope-from glewis@FreeBSD.org) Message-Id: <201909212203.x8LM37J5092323@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glewis set sender to glewis@FreeBSD.org using -f From: Greg Lewis Date: Sat, 21 Sep 2019 22:03:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512543 - head/games/nethack36/files X-SVN-Group: ports-head X-SVN-Commit-Author: glewis X-SVN-Commit-Paths: head/games/nethack36/files X-SVN-Commit-Revision: 512543 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Sep 2019 22:03:08 -0000 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