[Bug 284054] ports-mgmt/pkg: Does not recognize .pkg as a valid suffix (triggered by portupgrade)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 14 Jan 2025 04:19:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284054

            Bug ID: 284054
           Summary: ports-mgmt/pkg: Does not recognize .pkg as a valid
                    suffix (triggered by portupgrade)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg@FreeBSD.org
          Reporter: terry-freebsd@glaver.org
             Flags: maintainer-feedback?(pkg@FreeBSD.org)
          Assignee: pkg@FreeBSD.org

For quite some time now (since at least FreeBSD 12, if not earlier) pkg
complains about "pkg: unknown format pkg, using the default" when using
portupgrade on a port.

This bug could also be consider a bug in portugrade, but since both are
essential parts of the "core" ports system for people who build their own
ports, one or the other maintainer should be able to address this. Give that
.pkg seems like a reasonable suffix for ports-mgmt/pkg to support, I'm filing
it against pkg. Feel free to reassign.

To reproduce (on 14.2-stable), just "portupgrade -f" any port you have
installed. You will see output like this:

[...]
====> Compressing man pages (compress-man)
--->  Backing up the old version
pkg: unknown format pkg, using the default     <--------------
--->  Uninstalling the old version
[Reading data from pkg(8) ... - 279 packages found - done]
--->  Deinstalling 'xev-1.2.4'
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
[...]

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