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)
Feb 10 2024, 11:29 AM
Unknown Object (File)
Feb 10 2024, 11:29 AM
Unknown Object (File)
Feb 10 2024, 11:29 AM
Unknown Object (File)
Feb 10 2024, 11:17 AM
Unknown Object (File)
Aug 13 2023, 6:30 AM
Unknown Object (File)
Aug 7 2023, 5:56 AM
Unknown Object (File)
Aug 5 2023, 7:48 AM
Unknown Object (File)
Aug 2 2023, 6: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