Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2013 20:38:06 GMT
From:      Alex Deiter <alex.deiter@nexenta.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/181692: x11/xterm logging support
Message-ID:  <201308302038.r7UKc6YJ018281@oldred.freebsd.org>
Resent-Message-ID: <201308302040.r7UKe0Ao017762@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         181692
>Category:       ports
>Synopsis:       x11/xterm logging support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 30 20:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Alex Deiter
>Release:        10-CURRENT
>Organization:
N/A
>Environment:
FreeBSD blackstar.deiter.ru 10.0-CURRENT-r255075-p20 FreeBSD 10.0-CURRENT-r255075-p20 #0 r255075M: Fri Aug 30 22:50:36 MSK 2013     root@blackstar.deiter.ru:/usr/obj/usr/src/sys/BLACKSTAR  amd64
>Description:
Please add logging support to x11/xterm:

man xterm:

-l
Turn logging on. Normally logging is not supported, due to security concerns. Some versions of xterm may have logging enabled. The logfile is written to the directory from which xterm is invoked. The filename is generated, of the form

XtermLog.XXXXXX

-lf filename
Specify the log-filename. See the -l option.

very useful options.
>How-To-Repeat:
install x11/xterm port
>Fix:
apply patch

Patch attached with submission follows:

--- x11/xterm/Makefile.orig	2013-08-31 00:29:25.342819323 +0400
+++ x11/xterm/Makefile	2013-08-31 00:32:21.095806210 +0400
@@ -26,7 +26,7 @@
 
 ICONVERSION=	1
 
-OPTIONS_DEFINE=	WCHAR LUIT DECTERM PCRE GNOME DABBREV 256COLOR SIXEL
+OPTIONS_DEFINE=	WCHAR LUIT DECTERM PCRE GNOME DABBREV 256COLOR SIXEL LOGGING
 
 DABBREV_DESC=	Enable support for dabbrev-expand
 DECTERM_DESC=	Enable DECterm Locator support
@@ -34,11 +34,16 @@
 SIXEL_DESC=	Enable Sixel graphics support
 WCHAR_DESC=	Enable wide-character support
 256COLOR_DESC=	Enable 256-color support
+LOGGING_DESC=	Enable logging support
 
 OPTIONS_DEFAULT=WCHAR LUIT 256COLOR
 
 .include <bsd.port.options.mk>
 
+.if ${PORT_OPTIONS:MLOGGING}
+CONFIGURE_ARGS+=	--enable-logging --enable-logfile-exec
+.endif
+
 .if ${PORT_OPTIONS:M256COLOR}
 CONFIGURE_ARGS+=	--enable-256-color
 .endif


>Release-Note:
>Audit-Trail:
>Unformatted:



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