From owner-freebsd-ports Mon May 24 18:40: 6 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 0F8E614E98 for ; Mon, 24 May 1999 18:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA13159; Mon, 24 May 1999 18:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from hunkular.glarp.com (hunkular.glarp.com [199.117.25.251]) by hub.freebsd.org (Postfix) with ESMTP id 3B3C514E47 for ; Mon, 24 May 1999 18:39:14 -0700 (PDT) (envelope-from huntting@hunkular.glarp.com) Received: (from huntting@localhost) by hunkular.glarp.com (8.9.3/8.9.2) id TAA23077; Mon, 24 May 1999 19:39:11 -0600 (MDT) (envelope-from huntting) Message-Id: <199905250139.TAA23077@hunkular.glarp.com> Date: Mon, 24 May 1999 19:39:11 -0600 (MDT) From: huntting@glarp.com Reply-To: huntting@glarp.com To: FreeBSD-gnats-submit@freebsd.org Cc: David Leonard , huntting@glarp.com X-Send-Pr-Version: 3.2 Subject: ports/11879: patches for /usr/ports/dclock/ Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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