Bug 189180 - uname(1): show last changed rev in uname -a output
Summary: uname(1): show last changed rev in uname -a output
Status: Closed Overcome By Events
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
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-01 11:10 UTC by Mark Willson
Modified: 2024-10-28 22:52 UTC (History)
3 users (show)

See Also:


Attachments
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 freebsd_triage 2018-11-08 12:33:49 UTC
Reopen, see review D17653
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:34:51 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>
Comment 4 Ed Maste freebsd_committer freebsd_triage 2024-10-28 22:52:31 UTC
With the migration to git we no longer have this situation.