Subject: pkg/23792: Catclock app-defaults file typo?
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jthyttin@lce.hut.fi>
List: netbsd-bugs
Date: 12/18/2003 15:24:51
>Number:         23792
>Category:       pkg
>Synopsis:       Catclock app-defaults file typo?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 18 15:25:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Juha Hyttinen
>Release:        NetBSD -current
>Organization:
http://www.lce.hut.fi/
>Environment:
NetBSD tarantula.private.hyttinen.org 1.6ZF NetBSD 1.6ZF (TARANTULA) #6: Tue Dec  2 20:59:58 EET 2003  jthyttin@tarantula.private.hyttinen.org:/cvs/obj/sys/arch/i386/compile/TARANTULA i386

>Description:
There is a file for application defaults in catclock.zip, which is the
source package for pkgsrc/time/catclock. The file in source package is
called xclock.ad.

The file will be installed as /usr/X11R6/lib/X11/app-defaults/Catclock
during the build process of time/catclock.

The file contains a line, which has extraneous whitespace in the end
(single quotation marks added):

'XClock*foreground : black '

This extraneous white space is included in color definition while parsing the file, and results in an error message like (single 
quotation marks added):

'Warning: Color name "black " is not defined'

I won't start to guess, how the whitespace should be taken into account,
in other words, is the problem with Catclock or with parser.

In fact, regular xclock won't use colors defined on command line anymore, which is the single reason I'm using Catclock, but that's a different story (I hope to find time to investigate & send-pr)...
>How-To-Repeat:
# cd /usr/pkgsrc/time/catclock
# make package
# rehash
# catclock
>Fix:
tarantula# diff -u xclock.ad.orig xclock.ad
--- xclock.ad.orig      2003-12-18 17:20:15.000000000 +0200
+++ xclock.ad   2003-12-18 17:20:26.000000000 +0200
@@ -2,7 +2,7 @@
 # XClock
 #
 XClock*font      : 9x15
-XClock*foreground : black 
+XClock*foreground : black
 XClock*background : blue
 XClock*highlight  : black
 XClock*hands      : red

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