Bug 189180

Summary: uname(1): show last changed rev in uname -a output
Product: Base System Reporter: Mark Willson <cdr.nil>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: Alexander88207, emaste, w.schwarzenfeld
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
URL: https://reviews.freebsd.org/D17653
Attachments:
Description Flags
file.diff none

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.