Date: Mon, 24 Mar 2003 10:50:50 +0100 (CET) From: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: steve@FreeBSD.org Subject: ports/50239: [patch] x11-toolkits/open-motif: colordemo doesn't find rgb.txt Message-ID: <200303240950.h2O9ooe3082809@menelaos.informatik.rwth-aachen.de>
next in thread | raw e-mail | index | archive | help
>Number: 50239 >Category: ports >Synopsis: [patch] x11-toolkits/open-motif: colordemo doesn't find rgb.txt >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 24 02:00:13 PST 2003 >Closed-Date: >Last-Modified: >Originator: Volker Stolz >Release: FreeBSD 4.7-STABLE i386 >Organization: Lehrstuhl für Informatik II >Environment: System: FreeBSD menelaos.informatik.rwth-aachen.de 4.7-STABLE FreeBSD 4.7-STABLE #2: Fri Feb 7 12:48:00 CET 2003 root@menelaos.informatik.rwth-aachen.de:/usr/src/sys/compile/MENELAOS i386 >Description: 'colordemo' from open-motif can be used to select colors by either RGB values or from the file rgb.txt. However, the underlying library doesn't honour XBASE and looks for the file in the wrong place. >How-To-Repeat: >Fix: Add new patch file: --- patch-lib::Xm::ColorS.c begins here --- --- lib/Xm/ColorS.c.orig Mon Mar 24 09:01:49 2003 +++ lib/Xm/ColorS.c Mon Mar 24 09:02:44 2003 @@ -107,6 +107,10 @@ #define offset(field) XmPartOffset(XmColorSelector, field) +#ifndef LIBDIR +#define LIBDIR "/usr/lib/X11" +#endif + static XmPartResource resources[] = { { XmNcolorMode, XmCColorMode, XmRXmColorMode, sizeof(XmColorMode), offset(color_mode), XmRImmediate, (XtPointer) XmScaleMode }, @@ -117,7 +121,7 @@ offset(rgb_file), XmRString, (XtPointer) "sys$manager:decw$rgb.dat" }, #else { XmNrgbFile, XmCString, XmRString, sizeof(String), - offset(rgb_file), XmRString, (XtPointer) "/usr/lib/X11/rgb.txt" }, + offset(rgb_file), XmRString, (XtPointer) LIBDIR"/rgb.txt" }, #endif { XmNmarginWidth, XmCMargin, XmRHorizontalDimension,sizeof(Dimension), offset(margin_width), XmRImmediate, (XtPointer) 2 }, --- patch-lib::Xm::ColorS.c ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303240950.h2O9ooe3082809>