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
Unknown Object (File)
Sat, Jan 17, 8:23 AM
Unknown Object (File)
Sat, Dec 27, 9:22 PM
Unknown Object (File)
Nov 30 2025, 3:55 PM
Unknown Object (File)
Nov 24 2025, 3:48 AM
Unknown Object (File)
Nov 21 2025, 4:14 AM
Unknown Object (File)
Nov 21 2025, 12:03 AM
Unknown Object (File)
Nov 21 2025, 12:02 AM
Unknown Object (File)
Nov 21 2025, 12:02 AM
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