maintainer-feedback requested: [Bug 291200] ports-mgmt/pkg periodic script weekly/400.status-pkg uses a wrong pkg -R option
Date: Tue, 25 Nov 2025 00:34:39 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg (Nobody) <pkg@FreeBSD.org> for maintainer-feedback: Bug 291200: ports-mgmt/pkg periodic script weekly/400.status-pkg uses a wrong pkg -R option https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291200 --- Description --- beginning with version 2.4.x the periodic script weekly/400.status-pkg uses pkg version -CRv index so the -R option checks versions ALWAYS remotely with a repository to compare which ports/pkg are out of date. This only works with pkg-only installations. If ports are used, the INDEX and the ports tree should be used for comparison, which are automatically checked without the -R option. Then it also works with ports installed just like in all other version before. If no -R option is used, then (according to the manual) pkg version looks into ports tree and INDEX and if both not found, automatically uses -R. That behaviour also can not be overridden with -I or other options set in $pkgargs. Summary: IMHO is the use of -R is simply wrong and it should be removed.