Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 1999 19:39:11 -0600 (MDT)
From:      huntting@glarp.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        David Leonard <leonard@dstc.edu.au>, huntting@glarp.com
Subject:   ports/11879: patches for /usr/ports/dclock/
Message-ID:  <199905250139.TAA23077@hunkular.glarp.com>

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

>Number:         11879
>Category:       ports
>Synopsis:       dclock's "-miltime" option and "*miltime" resource dont work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 24 18:40:02 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Brad Huntting
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
>Environment:
	
	XFree86 3330

>Description:
	
	The -miltime option for dclock doesnt work as advertised.
	Similarly the "miltime" X resource is also broken.

>How-To-Repeat:
	
	TZ="somewhere where it's afternoon"
	dclock -miltime
	dclock -xrm 'Dclock*miltime:true'
	dclock -xrm 'DClock*miltime:true'

>Fix:
	
	Here are the two patches I came up with to fix this:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	x11-clocks/dclock/patches/patch-ab
#	x11-clocks/dclock/patches/patch-ac
#
echo x - x11-clocks/dclock/patches/patch-ab
sed 's/^X//' >x11-clocks/dclock/patches/patch-ab << 'END-of-x11-clocks/dclock/patches/patch-ab'
X--- Dclock.h.orig	Mon May 24 19:18:35 1999
X+++ Dclock.h	Mon May 24 19:18:22 1999
X@@ -51,7 +51,7 @@
X #define XtNfadeRate	"fadeRate"
X #define XtNtails	"tails"
X #define XtNdate		"date"
X-#define XtNmilitaryTime	"militaryTime"
X+#define XtNmilitaryTime	"miltime"
X 
X typedef struct _DclockRec *DclockWidget;
X typedef struct _DclockClassRec *DclockWidgetClass;
END-of-x11-clocks/dclock/patches/patch-ab
echo x - x11-clocks/dclock/patches/patch-ac
sed 's/^X//' >x11-clocks/dclock/patches/patch-ac << 'END-of-x11-clocks/dclock/patches/patch-ac'
X--- dclock.c.orig	Mon May 24 19:18:35 1999
X+++ dclock.c	Mon May 24 19:18:22 1999
X@@ -93,7 +93,7 @@
X     else
X 	name = argv[0];
X 
X-    toplevel = XtInitialize(name, "DClock", options, XtNumber(options),
X+    toplevel = XtInitialize(name, "Dclock", options, XtNumber(options),
X 			    &argc, argv);
X     XtAddActions(actionsList, 1);
X 
END-of-x11-clocks/dclock/patches/patch-ac
exit


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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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