Subject: pkg/14869: x11/xcolors can't find rgb.txt when xpkgwedge is in use
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kre@munnari.OZ.AU>
List: netbsd-bugs
Date: 12/07/2001 23:25:20
>Number:         14869
>Category:       pkg
>Synopsis:       x11/xcolors can't find rgb.txt when xpkgwedge is in use
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 07 21:59:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Robert Elz
>Release:        NetBSD 1.5Y 2001-11-26  (pkgsrc 2001-12-05)
>Organization:
	Prince of Songkla University
>Environment:
	<The following information is extracted from your kernel. Please>
	<append output of "ldd", "ident" where relevant (multiple lines).>
System: NetBSD fuchsia 1.5Y NetBSD 1.5Y (FUCHSIA) #2: Mon Nov 26 13:41:27 ICT 2001 kre@fuchsia:/usr/obj/sys/FUCHSIA i386
Architecture: i386
Machine: i386
>Description:
	With xpkgwedge x11/xcolors looks for rgb.txt in the wrong location

>How-To-Repeat:
	cd pkgsrc/pkgtools/xpkgwedge
	make install
	cd ../../x11/xcolors
	make install

	xcolors

	watch for ..

	fuchsia$ xcolors
	/usr/pkg/lib/X11/rgb.txt: No such file or directory

>Fix:
	The following replacement for patches/patch-aa solves the
	problem, but is exceedingly crude.   There should be a more
	elegant way...

--- Imakefile.orig	Fri Dec  7 21:14:34 2001
+++ Imakefile	Fri Dec  7 21:16:36 2001
@@ -8,12 +8,7 @@
            OBJS = xcolors.o
   SYS_LIBRARIES = -lm
 
-#if BuildServer
-        DEFINES = -DRGB_TXT=\"$(RGBDBFILE).txt\"
-#else
-	/* rgb.txt will not be installed, so find it in build tree */
-	DEFINES = -DRGB_TXT=\"$(RGBSRC)/rgb.txt\"
-#endif
+        DEFINES = -DRGB_TXT=\"$(X11BASE)/lib/X11/rgb.txt\"
 
 ComplexProgramTarget(xcolors)
 InstallAppDefaults(Xcolors)
>Release-Note:
>Audit-Trail:
>Unformatted:
 	<Please check that the above is correct for the bug being reported,>
 	<and append source date of snapshot, if applicable (one line).>