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
F170045474: D24994.id.diff
Thu, Sep 3, 8:42 AM
Unknown Object (File)
Wed, Sep 2, 8:33 AM
Unknown Object (File)
Wed, Aug 26, 5:15 PM
Unknown Object (File)
Thu, Aug 20, 1:35 AM
Unknown Object (File)
Tue, Aug 18, 5:25 PM
Unknown Object (File)
Wed, Aug 12, 8:58 AM
Unknown Object (File)
Sun, Aug 9, 7:38 PM
Unknown Object (File)
Sat, Aug 8, 2:02 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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 31285
Build 28926: arc lint + arc unit

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