[Bug 278456] ports-mgmt/pkg: needless reinstall of packages with multiple repos [1.21.2]

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 19 Apr 2024 10:11:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278456

            Bug ID: 278456
           Summary: ports-mgmt/pkg: needless reinstall of packages with
                    multiple repos [1.21.2]
           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: mandree@FreeBSD.org
             Flags: maintainer-feedback?(pkg@FreeBSD.org)
          Assignee: pkg@FreeBSD.org

Created attachment 250081
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=250081&action=edit
log from: pkg -ddd upgrade -n

Greetings,

pkg 1.21.2 which I use with FreeBSD-latest repo and a local repo that has
mostly the same packages very often wants to reinstall one package without any
visible reason, in this case, boost-libs-This is a package that I do not
knowingly reconfigure away from the default settings.  

I build my local packages with poudriere-devel, upstream are built with
poudriere stable.

Please find attached three console (stdout + stderr merged) logs, zstd
compressed, from three pkg -ddd upgrade -n runs, one without -r option, one
with -r FreeBSD-latest to reference ONLY the upstream, one with -r local to
ONLY reference my local repo.  

(My local repo does not build all of ports because that's way too slow on an
old 8-core Ryzen VM -- please ignore the fact that pkg is going to uninstall
some packages with the -r local option -- this is to show that using one REPO
for me does NOT want to reinstall boost-libs)

So... is this a solver bug which doesn't figure that the installed boost-libs
package is the same, or not check everything? (grep DBG.1.*request  to
understand this question)?  

Where else in the debug output do I need to look to understand why pkg wants to
reinstall boost-libs ONLY IF I enable both repositories?

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