Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2002 21:40:44 -0500 (EST)
From:      "Brandon S. Allbery KF8NH" <allbery@ece.cmu.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34510: ruby hardcodes /usr/local $LOAD_PATH, ignoring $LOCALBASE
Message-ID:  <200202010240.g112eii44816@pyanfar.ece.cmu.edu>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202010240.g112eii44816>