NetBSD Problem Report #36836
From hauke@Espresso.Rhein-Neckar.DE Sat Aug 25 13:57:11 2007
Return-Path: <hauke@Espresso.Rhein-Neckar.DE>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 3148063B8B5
for <gnats-bugs@gnats.NetBSD.org>; Sat, 25 Aug 2007 13:57:11 +0000 (UTC)
Message-Id: <200708251332.l7PDWHfg010425@pizza.causeuse.org>
Date: Sat, 25 Aug 2007 15:32:17 +0200 (CEST)
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Reply-To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@NetBSD.org
Cc: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: netbsd-4 X11 does not ship rgb(1) nor lib/rgb.db
X-Send-Pr-Version: 3.95
>Number: 36836
>Category: xsrc
>Synopsis: netbsd-4 lacks lib/rgb.db which Xmac68k_color wants
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: xsrc-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Aug 25 14:00:00 +0000 2007
>Closed-Date: Fri Sep 05 08:00:03 +0000 2008
>Last-Modified: Fri Sep 05 08:00:03 +0000 2008
>Originator: Hauke Fath
>Release: NetBSD 4.0_BETA2
>Organization:
Falling Raindrops
>Environment:
System: NetBSD fattie 4.0_BETA2 NetBSD 4.0_BETA2 (FATTIE) #6: Wed Jun 27 00:12:20 CEST 2007 hauke@fattie:/usr/src/sys/arch/mac68k/compile/FATTIE mac68k
Architecture: mac68k
Machine: mac68k
>Description:
XFree86 ships with a colour database in
/usr/X11R6/lib/rgb.txt. NetBSD's reachover X11 build does not
build or install the rgb(1) tool (see
/usr/src/xsrc/xfree/xc/programs/rgb/
vs. /usr/src/x11/bin/rgb/Makefile), and so does not have
/usr/X11R6/lib/rgb.db, which the (older) Xmac68k_color server
wants:
fattie# cat /var/log/xdm.log
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
This is not a fatal error.
Couldn't set video mode to desired depth.
[...]
>How-To-Repeat:
Install the colour-enabled Xmac68k_color.bz2 server from
ftp.netbsd.org on a 68k Macintosh running netbsd-4. Start xdm,
look into the /var/log/xdm.log file.
>Fix:
Make /usr/src/x11/bin/rgb/Makefile build and install rgb(1) as
well as rgb.db.
Unfortunately, the BSD make build system isn't fond of
building two programs in the same directory, so it may be
necessary to create a separate build directory in
/usr/src/x11/bin/ for showrgb(1).
>Release-Note:
>Audit-Trail:
From: "Tyler R. Retzlaff" <rtr@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/36836 CVS commit: src
Date: Mon, 1 Sep 2008 10:37:20 +0000 (UTC)
Module Name: src
Committed By: rtr
Date: Mon Sep 1 10:37:20 UTC 2008
Modified Files:
src/distrib/sets/lists/xbase: mi
src/x11/bin: Makefile
src/x11/bin/rgb: Makefile
Added Files:
src/x11/bin/showrgb: Makefile
Log Message:
- move build of showrgb to x11/bin/showrgb
- build and install rgb to destdir
- use host rgb to generate rgb.db database at build time and install it
- fix set list for above
should resolve pr/36836
To generate a diff of this commit:
cvs rdiff -r1.62 -r1.63 src/distrib/sets/lists/xbase/mi
cvs rdiff -r1.8 -r1.9 src/x11/bin/Makefile
cvs rdiff -r1.2 -r1.3 src/x11/bin/rgb/Makefile
cvs rdiff -r0 -r1.1 src/x11/bin/showrgb/Makefile
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: rtr@NetBSD.org
State-Changed-When: Mon, 01 Sep 2008 10:42:43 +0000
State-Changed-Why:
we now build rgb and generate rgb.db enjoy
State-Changed-From-To: closed->open
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Wed, 03 Sep 2008 22:44:50 +0000
State-Changed-Why:
We have some cross-build issues with the 'rgb' tool which need rectifying.
Either that, or we don't build rgb.db by default (since nothing in the
tree-compiled builds should need it -- src/x11 sets USE_RGB_TXT)
In the latter case we could consider shipping rgb to allow local
(re)building of rgb.db, possibly calling it "rgb_mkdb"
From: Luke Mewburn <lukem@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/36836 CVS commit: src/x11
Date: Fri, 5 Sep 2008 05:20:39 +0000 (UTC)
Module Name: src
Committed By: lukem
Date: Fri Sep 5 05:20:39 UTC 2008
Modified Files:
src/x11/bin/rgb: Makefile
src/x11/tools: Makefile
Added Files:
src/x11/bin/rgb: rgb_mkdb.sh
Removed Files:
src/x11/tools/rgb: Makefile Makefile.rgb
Log Message:
Implement bin/rgb/rgb_mkdb.sh to build rgb.db using awk(1) and db(1).
Remove tools/rgb; the code isn't portable enough (relies upon <ndbm.h>)
Tested on NetBSD 3.1 and Fedora Core 8
(XXX: although the generated .db file has the correct contents on FC8,
it's also 161MiB instead of 64KiB. I think this is a problem in the
build of the db routines in tools/compat, and we'll need to debug
separately.).
Fixes cross-build fallout from PR 36836
To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 src/x11/bin/rgb/Makefile
cvs rdiff -r0 -r1.1 src/x11/bin/rgb/rgb_mkdb.sh
cvs rdiff -r1.9 -r1.10 src/x11/tools/Makefile
cvs rdiff -r1.1 -r0 src/x11/tools/rgb/Makefile
cvs rdiff -r1.2 -r0 src/x11/tools/rgb/Makefile.rgb
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: lukem@NetBSD.org
State-Changed-When: Fri, 05 Sep 2008 08:00:03 +0000
State-Changed-Why:
I've fixed the cross-build issue with tools/rgb by writing
a simple awk script piped into db(1) to generate the rgb.db file.
x11/bin/rgb still gets installed on the target system for those
that want to regenerate the file
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.