[Bug 294746] ports-mgmt/pkg : pkg version incorrectly marks a port as orphaned

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 24 Apr 2026 08:58:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294746

            Bug ID: 294746
           Summary: ports-mgmt/pkg : pkg version incorrectly marks a port
                    as orphaned
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg@FreeBSD.org
          Reporter: guido@gvr.org
          Assignee: pkg@FreeBSD.org
             Flags: maintainer-feedback?(pkg@FreeBSD.org)

I have ruby-3.3.11,1 installed as dependency for zfstools-0.3.6_2.
pkg version -v -n ruby gives:
ruby-3.3.11,1                      ?   orphaned: lang/ruby33
but lang/ruby33 is a valid port.
This is due to version.c:port_version() calling make -C ../../lang/ruby33
flavors-package-names which returns: ruby33-3.3.11,1 and that doesn't match the
installed port name. 
This behaviour is observed since 2026-04-23 which seems to coincide with the
installation of pkg rev 2.7.4

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