[Bug 263665] ports-mgmt/pkg: attempt to open archive named "(null)"

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 29 Apr 2022 20:07:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263665

            Bug ID: 263665
           Summary: ports-mgmt/pkg: attempt to open archive named "(null)"
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg@FreeBSD.org
          Reporter: jfc@mit.edu
          Assignee: pkg@FreeBSD.org
             Flags: maintainer-feedback?(pkg@FreeBSD.org)

After building some ports with poudriere:

root@monax:/usr/local/poudriere/data/packages/builder-default/All # pkg install
gcc10-10.3.0.pkg 
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
        gcc10-10.3.0

Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: y
pkg: archive_read_open_filename((null)): Failed to open '(null)'


The same error happens if I use pkg upgrade instead of pkg install.  With a
debugger I see pkg_add_common is being called with path = "(null)".  This comes
from the variable target in pkg_jobs_handle_install.

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