Subject: pkg/23792: Catclock app-defaults file typo?
To: None <>
From: None <>
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
>Originator:     Juha Hyttinen
>Release:        NetBSD -current
NetBSD 1.6ZF NetBSD 1.6ZF (TARANTULA) #6: Tue Dec  2 20:59:58 EET 2003 i386

There is a file for application defaults in, which is the
source package for pkgsrc/time/catclock. The file in source package is

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)...
# cd /usr/pkgsrc/time/catclock
# make package
# rehash
# catclock
tarantula# diff -u
---      2003-12-18 17:20:15.000000000 +0200
+++   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