[Bug 271293] ports-mgmt/portmaster: recompiles ports multiple times

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 May 2023 08:35:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271293

            Bug ID: 271293
           Summary: ports-mgmt/portmaster: recompiles ports multiple times
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: se@FreeBSD.org
          Reporter: d8zNeCFG@aon.at
          Assignee: se@FreeBSD.org
             Flags: maintainer-feedback?(se@FreeBSD.org)

Scenario:
- FreeBSD 13.1 latest
- About 1750 installed ports, latest
- Upgraded FreeBSD to 13.2 latest
- Want to recompile all installed ports
  . Find the current date:
    cutoff=`date +%s`
  . Run portmater:
    portmaster --no-confirm `pkg query -e "%t < $cutoff" %n-%v`
  . Keep restarting this last command until success (after errors, deliberate
interrupting, etc.)

Result:
- On the first run of the command above, all ports are selected for rebuild
(obviously)
- It seems that the solver does not correctly consider ports that have already
been built as a dependency of a previous port
- This means that many ports are built often or very often, e.g., meson, or
llvm15.

Expected result:
- Each port should be rebuilt only once

Notes:
- If I remember correctly this was working correctly some time ago.

-- Martin

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