Improve warning in is_valid_os_version(): explain worst-case
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 84/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- c
- Domain
- cli, operating-systems
Research direction
Open libpkg/utils.c at is_valid_os_version(), especially the warning near line 476, and review the current message. Update the warning so it explains the worst-case ABI risk for /usr/local while retaining the version details and ignore guidance. Done means users can understand the possible impact of proceeding from the warning alone.
Written by the indexing model from the issue text.
Description
Hi,
I would suggest for libpkg/utils.c to extend the warning text (e.g. with a worst-case scenario hint).
Example
Newer FreeBSD version for package foo:
This package was built for a newer ABI than the one currently running.
Installing/using it may cause shared libraries to be unresolvable.
advice: update your kernel
- package: 1501501
- running kernel: 1500507
To ignore this error set IGNORE_OSVERSION=yes
is_valid_os_version() warns when a package's FreeBSD_version is newer than the running system's ABI version, but the message currently only states the version numbers involved
For users unfamiliar with FreeBSD's ABI versioning scheme, this doesn't convey the actual risk of proceeding (or of having already installed such a package). In practice, a mismatch like this can mean that shared libraries under /usr/local/lib are no longer ABI-compatible, causing binaries that depend on them to fail to run — up to the point where large parts of /usr/local stop working.
- Dominant language
- C
- Stars
- 826
- Forks
- 310
- Avg merge
- 6d 17h
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from freebsd/pkg
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Similar issues
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
spack/spack-packages#6586 ·
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100