ports/63601: missing file(s) in ruby break portupgrade
Armijn Hemel
armijn at uulug.nl
Mon Mar 1 17:10:14 UTC 2004
>Number: 63601
>Category: ports
>Synopsis: missing file(s) in ruby break portupgrade
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 01 09:10:13 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Armijn Hemel
>Release: 4.8
>Organization:
>Environment:
>Description:
After an upgrade of ruby and ruby-bdb1 to the latest version in the ports (today) portupgrade is broken:
# portupgrade
/usr/local/sbin/portupgrade:35:in `require': No such file to load -- pkgtools (LoadError)
from /usr/local/sbin/portupgrade:35
An strace showed that portupgrade does not find a file:
stat("/usr/local/lib/ruby/1.8/i386-freebsd4/pkgtools.rb", 0xbfbff410) = -1 ENOENT (No such file or directory)
which is indeed not present in that directory.
>How-To-Repeat:
Upgrade to ruby that was in the ports on March 1.
>Fix:
Remove /usr/local/bin/ruby and make it a symlink to /usr/local/bin/ruby16 (if present) or reinstall portupgrade (and how are you going to do that without portinstall/portupgrade ;-). The case is that portupgrade installs pkgtools.rb, but because the ruby binary was upgraded from 1.6 to 1.8 it couldn't find pkgtools.rb anymore.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list