From owner-freebsd-ports-bugs Mon Mar 24 2: 0:19 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE84537B401 for ; Mon, 24 Mar 2003 02:00:15 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FBAF43F85 for ; Mon, 24 Mar 2003 02:00:14 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2OA0ENS094743 for ; Mon, 24 Mar 2003 02:00:14 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2OA0Eg0094742; Mon, 24 Mar 2003 02:00:14 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D51C937B401; Mon, 24 Mar 2003 01:50:52 -0800 (PST) Received: from atlas.informatik.rwth-aachen.de (atlas.Informatik.RWTH-Aachen.DE [137.226.194.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6057B43F85; Mon, 24 Mar 2003 01:50:51 -0800 (PST) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from menelaos.informatik.rwth-aachen.de (menelaos.Informatik.RWTH-Aachen.DE [137.226.194.73]) by atlas.informatik.rwth-aachen.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id h2O9ooa20270; Mon, 24 Mar 2003 10:50:50 +0100 Received: (from stolz@localhost) by menelaos.informatik.rwth-aachen.de (8.12.6/8.12.6/Submit) id h2O9ooe3082809; Mon, 24 Mar 2003 10:50:50 +0100 (CET) (envelope-from stolz) Message-Id: <200303240950.h2O9ooe3082809@menelaos.informatik.rwth-aachen.de> Date: Mon, 24 Mar 2003 10:50:50 +0100 (CET) From: Volker Stolz Reply-To: Volker Stolz To: FreeBSD-gnats-submit@FreeBSD.org Cc: steve@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/50239: [patch] x11-toolkits/open-motif: colordemo doesn't find rgb.txt X-Spam-Status: No, hits=-6.8 required=5.0 tests=PATCH_UNIFIED_DIFF,RESENT_TO autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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