Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Mar 2004 09:04:23 -0800 (PST)
From:      Armijn Hemel <armijn@uulug.nl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/63601: missing file(s) in ruby break portupgrade
Message-ID:  <200403011704.i21H4NCe084751@www.freebsd.org>
Resent-Message-ID: <200403011710.i21HADLj041862@freefall.freebsd.org>

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

>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:



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