NetBSD Problem Report #23792

Received: (qmail 24727 invoked by uid 605); 18 Dec 2003 15:24:55 -0000
Message-Id: <20031218152451.CDE7811154@narn.netbsd.org>
Date: Thu, 18 Dec 2003 15:24:51 +0000 (UTC)
From: jthyttin@lce.hut.fi
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jthyttin@lce.hut.fi
To: gnats-bugs@gnats.NetBSD.org
Subject: Catclock app-defaults file typo?
X-Send-Pr-Version: www-1.0

>Number:         23792
>Category:       pkg
>Synopsis:       Catclock app-defaults file typo?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    minskim
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 18 15:25:00 +0000 2003
>Closed-Date:    Tue Apr 20 19:43:30 +0000 2004
>Last-Modified:  Wed Apr 28 13:35:00 +0000 2004
>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:

From: Min Sik Kim <minskim@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/23792 CVS commit: pkgsrc/time/catclock
Date: Tue, 20 Apr 2004 19:41:35 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	minskim
 Date:		Tue Apr 20 19:41:35 UTC 2004

 Modified Files:
 	pkgsrc/time/catclock: Makefile distinfo
 Added Files:
 	pkgsrc/time/catclock/patches: patch-ac

 Log Message:
 Remove trailing space from the X resouce file, so that it can be
 parsed correctly.  Patch provided by Juha Hyttinen in PR pkg/23792.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -r1.11 -r1.12 pkgsrc/time/catclock/Makefile
 cvs rdiff -r1.5 -r1.6 pkgsrc/time/catclock/distinfo
 cvs rdiff -r0 -r1.1 pkgsrc/time/catclock/patches/patch-ac

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed 
State-Changed-By: minskim 
State-Changed-When: Tue Apr 20 19:42:49 UTC 2004 
State-Changed-Why:  
Applied.  Thanks! 


Responsible-Changed-From-To: pkg-manager->minskim 
Responsible-Changed-By: minskim 
Responsible-Changed-When: Tue Apr 20 19:42:49 UTC 2004 
Responsible-Changed-Why:  
I'm closing this. 

From: Juha Hyttinen <jthyttin@lce.hut.fi>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: pkg/23792
Date: Wed, 28 Apr 2004 13:15:13 +0300 (EEST)

 On Tue, 20 Apr 2004 minskim@netbsd.org wrote:

 > Synopsis: Catclock app-defaults file typo?
 >
 > State-Changed-From-To: open->closed
 > State-Changed-By: minskim
 > State-Changed-When: Tue Apr 20 19:42:49 UTC 2004
 > State-Changed-Why:
 > Applied.  Thanks!

 Hi,

 if you care about typos in commit messages, cvsweb suggests there's a
 missing letter "r" in the word "resource":

 	"Remove trailing space from the X resouce file, so that it can be
 	parsed correctly. Patch provided by Juha Hyttinen in PR
 	pkg/23792."

 -- 
 Juha Hyttinen
 LCE sysadmin group
 cell +358 50 35 35 457


From: Min Sik Kim <minskim@NetBSD.org>
To: Juha Hyttinen <jthyttin@lce.hut.fi>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/23792
Date: Wed, 28 Apr 2004 08:33:56 -0500

 * Juha Hyttinen, 28 Apr 2004 10:16:03 -0000:
 >  if you care about typos in commit messages, cvsweb suggests there's a
 >  missing letter "r" in the word "resource":

 Fixed.  Thanks.

 -- 
 Min Sik Kim
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.