Page MenuHomeFreeBSD

sysutils/etc_os-release: fallback to uname if freebsd-version not found
ClosedPublic

Authored by lwhsu on May 25 2020, 7:01 AM.
Tags
None
Referenced Files
F176368902: D24994.id72215.diff
Sun, Oct 18, 7:23 AM
F176368893: D24994.id.diff
Sun, Oct 18, 7:23 AM
F176368892: D24994.id72541.diff
Sun, Oct 18, 7:23 AM
F176368887: D24994.diff
Sun, Oct 18, 7:23 AM
Unknown Object (File)
Wed, Oct 7, 12:42 PM
Unknown Object (File)
Thu, Oct 1, 3:27 PM
Unknown Object (File)
Tue, Sep 22, 8:28 AM
Unknown Object (File)
Sep 8 2026, 2:23 PM
Subscribers

Details

Summary

On 11, there is no freebsd-version, fallback to uname.

Discovered by:

https://lists.freebsd.org/pipermail/freebsd-ports/2020-May/118597.html

sh: freebsd-version: not found
make[5]: "/home/indexbuild/tindex/ports/sysutils/etc_os-release/Makefile" line 18: warning: "freebsd-version -u" returned non-zero status

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lwhsu requested review of this revision.May 25 2020, 7:01 AM

Sure, looks good to me. I wonder whether 12.x already got it in base or not... So that the port could be made 11-only.

This revision is now accepted and ready to land.May 26 2020, 7:18 PM

Sure, looks good to me. I wonder whether 12.x already got it in base or not... So that the port could be made 11-only.

/etc/os-release is not yet in 12.x so we still need this port. It has been marked IGNORE in 13.x