Date: Thu, 06 Mar 2025 12:56:51 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 285194] [patch] ports-mgmt/pkg: IGNORE_OSVERSION inappropriate for minor version mismatch Message-ID: <bug-285194-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285194 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=3D258349&action= =3Dedit 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 strict= ly 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=3Dyes option is not an appropria= te 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=3Dno doesn't completely skip the OSVERSION che= ck as IGNORE_OSVERSION=3Dyes does, hence major (thus problematic) mismatch will be catched. I'd prefer to have MINOR_OSVER_CONFIRM=3Dno as the default, contrary to wha= t the patch currently defines! --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-285194-7788>