[Bug 285194] [patch] ports-mgmt/pkg: IGNORE_OSVERSION inappropriate for minor version mismatch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 06 Mar 2025 12:56:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285194 Bug ID: 285194 Summary: [patch] ports-mgmt/pkg: IGNORE_OSVERSION inappropriate for minor version mismatch 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: bugzilla.freebsd@omnilan.de Flags: maintainer-feedback?(pkg@FreeBSD.org) Assignee: pkg@FreeBSD.org Created attachment 258349 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=258349&action=edit Introduce MINOR_OSVER_CONFIRM option If we compile ports on stable branch, packages created by pkg(1) show Annotations : FreeBSD_version: __FreeBSD_version which increases for each base API change, while ABI compatibility is strictly maintained throughout the branch (fixed major OS version). pkg(1) checks for th OS version mismatch before installing a package, but currently doesn't allow to catch MAJOR version mismatches only, which is the only necessary check. In my opinion, the default to not install a package with a minor version mismatch is wrong and the IGNORE_OSVERSION=yes option is not an appropriate setting to allow minor version mismatches. To keep the old behaviour, my proposed patch, introducing the MINOR_OSVER_CONFIRM config option, keeps the confirmation dialog for minor version mismatches, but defaults to install the package. Defining MINOR_OSVER_CONFIRM=no doesn't completely skip the OSVERSION check as IGNORE_OSVERSION=yes does, hence major (thus problematic) mismatch will be catched. I'd prefer to have MINOR_OSVER_CONFIRM=no as the default, contrary to what the patch currently defines! -- You are receiving this mail because: You are the assignee for the bug.