Bug 189180 - [patch] uname(1): show last changed rev in uname -a output
Summary: [patch] uname(1): show last changed rev in uname -a output
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL: https://reviews.freebsd.org/D17653
Depends on:
Reported: 2014-05-01 11:10 UTC by Mark Willson
Modified: 2018-11-08 12:33 UTC (History)
2 users (show)

See Also:

file.diff (709 bytes, patch)
2014-05-01 11:10 UTC, Mark Willson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Willson 2014-05-01 11:10:00 UTC
uname -a displays a svn rev number which appears to be from the 'top' of the svn repository, not the latest revision in the current branch (releng/10.0 in my case).

With the attached patch the uname -a output would look like:

FreeBSD topaz 10.0-RELEASE-p2 FreeBSD 10.0-RELEASE-p2 #0 r265124: Wed Apr 30 18\
:35:11 BST 2014     root@cobalt:/usr/obj/usr/src/sys/GENERIC  i386

Now it shows the actual revision for the -p2 update. This I would find useful; not sure how many other people would agree.

Fix: Add -c argument to /usr/bin/svnliteversion, and extract release number.

See attached patch.

Patch attached with submission follows:
How-To-Repeat: make buildworld
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:35 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Ed Maste freebsd_committer 2018-11-08 12:33:49 UTC
Reopen, see review D17653