From owner-freebsd-ports Thu Jan 31 18:50: 6 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 704D337B416 for ; Thu, 31 Jan 2002 18:50:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g112o0r92490; Thu, 31 Jan 2002 18:50:00 -0800 (PST) (envelope-from gnats) Received: from pyanfar.ece.cmu.edu (VPN7.ECE.CMU.EDU [128.2.138.7]) by hub.freebsd.org (Postfix) with ESMTP id B643037B416 for ; Thu, 31 Jan 2002 18:40:55 -0800 (PST) Received: (from allbery@localhost) by pyanfar.ece.cmu.edu (8.11.6/8.11.6) id g112eii44816; Thu, 31 Jan 2002 21:40:44 -0500 (EST) (envelope-from allbery) Message-Id: <200202010240.g112eii44816@pyanfar.ece.cmu.edu> Date: Thu, 31 Jan 2002 21:40:44 -0500 (EST) From: "Brandon S. Allbery KF8NH" Reply-To: "Brandon S. Allbery KF8NH" To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/34510: ruby hardcodes /usr/local $LOAD_PATH, ignoring $LOCALBASE Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34510 >Category: ports >Synopsis: ruby hardcodes /usr/local $LOAD_PATH, ignoring $LOCALBASE >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 31 18:50:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Brandon S. Allbery KF8NH >Release: FreeBSD 4.5-RC i386 >Organization: Carnegie Mellon University ECE Computing Facilities >Environment: System: FreeBSD pyanfar.ece.cmu.edu 4.5-RC FreeBSD 4.5-RC #9: Wed Jan 23 12:16:19 EST 2002 allbery@pyanfar.ece.cmu.edu:/usr/src/sys/compile/PYANFAR i386 >Description: In the ECE environment, /usr/local on all machines holds software packages built by Facilities and is maintained by syncset or depot; therefore, FreeBSD packages and ports must install to a different hierarchy (currently /usr/mach). If ruby is built with LOCALBASE != /usr/local, it installs its own library files under $LOCALBASE/lib/ruby, but it sets $LOAD_PATH to /usr/local/lib/ruby without regard to the value of $LOCALBASE. As a result, it can't find its library files when run. >How-To-Repeat: cd /usr/ports/lang/ruby make LOCALBASE=/usr/mach install Run /usr/mach/bin/ruby on any Ruby script which does a "require", and watch it spit out a "can't find file" error. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message