Bug#610679: deutex: please log to /dev/null by default

RjY rjy at users.sourceforge.net
Fri Jan 21 09:15:34 UTC 2011


Package: deutex
Version: 4.4.902-12
Severity: wishlist
Tags: patch

deutex by default writes a copy of stdout/stderr to a file named
"deutex.log" in the current directory. I wonder if you might consider
disabling this, since you generally run it yourself from a terminal or
via a Makefile, and can use shell redirection to capture its output (or,
of course, an explicit "-log" option.)

I think the log output by default is a bit of a DOSism, really, left
over from the program's origins on that platform, since DOS doesn't
have such good shell redirection capabilities and so forth.

The easiest patch is, I think, to log to /dev/null:

Index: deutex-4.4.902/src/deutex.c
===================================================================
--- deutex-4.4.902.orig/src/deutex.c	2011-01-17 13:18:18.773051186 +0000
+++ deutex-4.4.902/src/deutex.c	2011-01-17 13:19:07.337049340 +0000
@@ -96,11 +96,14 @@
 const char      *debug_ident            = NULL;
 int              old_music_ident_method = 0;
 const char      *palette_lump           = "PLAYPAL";
+#if 0
 #if defined DeuTex
 const char      *logfile                = "deutex.log";
 #elif defined DeuSF
 const char      *logfile                = "deusf.log";
 #endif
+#endif
+const char      *logfile                = "/dev/null";
 
 static char anon[1]        = { '\0' };
 

-- 
http://rjy.org.uk/





More information about the Pkg-games-devel mailing list