Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Feb 2024 18:32:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        ruby@FreeBSD.org
Subject:   [Bug 277395] ports-mgmt/portupgrade with lang/ruby32 fails with: undefined method `exists?' for File:Class
Message-ID:  <bug-277395-21402@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277395

            Bug ID: 277395
           Summary: ports-mgmt/portupgrade with lang/ruby32 fails with:
                    undefined method `exists?' for File:Class
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: fabian@wenks.ch
                CC: bdrewery@FreeBSD.org, ruby@FreeBSD.org
                CC: bdrewery@FreeBSD.org, ruby@FreeBSD.org

The entry 20240228: in /usr/ports/UPDATING (www/redmine50) mention this:
The default vesion of ruby has been switched from 3.1 to 3.2.

So I did the following steps to upgrade to ruby32 (as I had done in the past
based on the 20230315: entry in /usr/ports/UPDATING):

pkg delete -f ruby portupgrade libchk ruby31\* rubygem\*
nice -n 5 make -C /usr/ports/ports-mgmt/portupgrade install clean
pkg set -o lang/ruby31:lang/ruby32
nice -n 5 portupgrade -n -x ruby-3.2.\* -frp lang/ruby32   # just to see wh=
at
would be rebuilt
nice -n 5 portupgrade -x ruby-3.2.\* -frp lang/ruby32

The last step gave a confusing error (forgot to record the details), but the
last line was the same as when I just tried this:
# nice -n 5 portupgrade -pR ftp/curl
[Reading data from pkg(8) ... - 831 packages found - done]
[Gathering depends for ftp/curl ........................................ do=
ne]
[Exclude up-to-date packages .................. done]
--->  Upgrading 'curl-8.5.0_1' to 'curl-8.6.0' (ftp/curl)
--->  Building '/usr/ports/ftp/curl'
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! ftp/curl (curl-8.5.0_1)       (undefined method `exists?' for
File:Class)

To revert back to ruby31 I have done this steps and then portupgrade worked
again:
echo "DEFAULT_VERSIONS+=3Druby=3D3.1" >> /etc/make.conf
nice -n 5 make -C /usr/ports/ports-mgmt/portupgrade install clean
pkg set -o lang/ruby32:lang/ruby31

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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