[Bug 277410] After upgrading ruby31 to rubu32, portupgrade broke.

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 01 Mar 2024 06:04:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277410

            Bug ID: 277410
           Summary: After upgrading ruby31 to rubu32, portupgrade broke.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: bagas1983@mail.ru
                CC: bdrewery@FreeBSD.org, mandree@FreeBSD.org,
                    ruby@FreeBSD.org
                CC: bdrewery@FreeBSD.org, mandree@FreeBSD.org,
                    ruby@FreeBSD.org

Hello.
After upgrading ruby31 to rubu32, portupgrade broke.

# pkg delete -f ruby portupgrade ruby31-bdb
# make -C /usr/ports/ports-mgmt/portupgrade install clean
# pkg autoremove
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 3 packages:

Installed packages to be REMOVED:
rubygem-psych: 5.1.2
rubygem-rdoc: 6.6.2
rubygem-stringio: 3.1.0

Number of packages to be removed: 3

The operation will free 2 MiB.

Proceed with deinstalling packages? [y/N]: y
[test_site] [1/3] Deinstalling rubygem-rdoc-6.6.2...
[test_site] [1/3] Deleting files for rubygem-rdoc-6.6.2: 100%
[test_site] [2/3] Deinstalling rubygem-psych-5.1.2...
[test_site] [2/3] Deleting files for rubygem-psych-5.1.2: 100%
[test_site] [3/3] Deinstalling rubygem-stringio-3.1.0...
[test_site] [3/3] Deleting files for rubygem-stringio-3.1.0: 100%

# pkg set -o lang/ruby31:lang/ruby32
Change origin from lang/ruby31 to lang/ruby32 for all dependencies? [y/N]: y
# portupgrade -x ruby-3.2.\* -fr lang/ruby32
[Reading data from pkg(8) ... - 185 packages found - done]
[Updating the portsdb <format:bdb_btree> in /usr/ports ... - 34405 port entries
found
.........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000.........24000.........25000.........26000.........27000.........28000.........29000.........30000.........31000.........32000.........33000.........34000....
..... done]
---> Reinstalling 'ruby32-gems-3.4.20' (devel/ruby-gems)
---> Building '/usr/ports/devel/ruby-gems'
---> Skipping 'textproc/rubygem-asciidoctor' (rubygem-asciidoctor-2.0.20)
because a requisite package 'ruby32-gems-3.4.20' (devel/ruby-gems) failed
(specify -k to force)
---> Reinstalling 'ruby32-bdb-0.6.6_9' (databases/ruby-bdb)
---> Building '/usr/ports/databases/ruby-bdb'
---> Skipping 'ports-mgmt/portupgrade' (portupgrade-2.4.16_1,2) because a
requisite package 'ruby32-bdb-0.6.6_9' (databases/ruby-bdb) failed (specify -k
to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! devel/ruby-gems (ruby32-gems-3.4.20) (undefined method `exists?' for
File:Class)
* textproc/rubygem-asciidoctor (rubygem-asciidoctor-2.0.20)
! databases/ruby-bdb (ruby32-bdb-0.6.6_9) (undefined method `exists?' for
File:Class)
* ports-mgmt/portupgrade (portupgrade-2.4.16_1,2)


# pkg version -v | egrep "ruby|portupgrade|\?"
portupgrade-2.4.16_1,2 = up-to-date with index
ruby-3.2.3,1 = up-to-date with index
ruby32-bdb-0.6.6_9 = up-to-date with index
ruby32-gems-3.4.20 = up-to-date with index
rubygem-asciidoctor-2.0.20 = up-to-date with index

# pkg version -vl '<'
Imath-3.1.10 < needs updating (index has 3.1.11)

# portupgrade -arR
[Reading data from pkg(8) ... - 185 packages found - done]
---> Upgrading 'Imath-3.1.10' to 'Imath-3.1.11' (math/Imath)
---> Building '/usr/ports/math/Imath'
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! math/Imath (Imath-3.1.10) (undefined method `exists?' for File:Class)

I tried uninstalling portupgrade and installing portupgrade, it didn't help.
How to fix the error?

-- 
You are receiving this mail because:
You are the assignee for the bug.