Bug 251316

Summary: freebsd-version: present -v option, to print verbose information
Product: Base System Reporter: Vinícius Zavam <egypcio>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: gbe, grahamperrin
Priority: --- Keywords: feature
Version: CURRENT   
Hardware: Any   
OS: Any   
URL: https://reviews.freebsd.org/D27318
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265594
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265789
Attachments:
Description Flags
[PATCH] freebsd-version: present -v option, to print verbose information
none
[PATCH] freebsd-version: present -v option, to print verbose information (OSVERSION)
none
[PATCH] freebsd-version: present -v option, to print verbose information
none
[PATCH] freebsd-version: present -v option, to print verbose information
none
[PATCH] freebsd-version: present -v option, to print verbose information none

Description Vinícius Zavam freebsd_committer freebsd_triage 2020-11-22 16:59:44 UTC
Created attachment 219890 [details]
[PATCH] freebsd-version: present -v option, to print verbose information

by applying this patch, we would be able to extend freebsd-version's features to:

  * print verbose information of the base system (using existing userland_version() function);
  * print verbose information of the kernel (using existing running_version() function);

we kept kernel_version() as is - it uses the bootfile, which may not be present if one is running any FreeBSD jail.
-----


  * default output, kept as is

# freebsd-version
13.0-CURRENT

  * output using verbose information

# freebsd-version -v
13.0-CURRENT 1300126

  * output using verbose information (running_version, for its kernel)

# freebsd-version -rv
13.0-CURRENT 1300126

  * userland and running_version, kept as is

# freebsd-version -ru
13.0-CURRENT
13.0-CURRENT

  * userland and running_version with all verbose information

# freebsd-version -ruv
13.0-CURRENT 1300126
13.0-CURRENT 1300126
Comment 1 Vinícius Zavam freebsd_committer freebsd_triage 2021-01-25 15:14:09 UTC
ping?
Comment 3 Vinícius Zavam freebsd_committer freebsd_triage 2021-11-15 12:29:53 UTC
Created attachment 229511 [details]
[PATCH] freebsd-version: present -v option, to print verbose information (OSVERSION)

ping?

sync from latest patch published on https://reviews.freebsd.org/D27318
Comment 4 Vinícius Zavam freebsd_committer freebsd_triage 2021-11-15 13:03:28 UTC
Created attachment 229512 [details]
[PATCH] freebsd-version: present -v option, to print verbose information

% rebase freebsd/main origin/D27318
Comment 5 Vinícius Zavam freebsd_committer freebsd_triage 2021-11-15 15:03:12 UTC
Created attachment 229515 [details]
[PATCH] freebsd-version: present -v option, to print verbose information
Comment 6 Vinícius Zavam freebsd_committer freebsd_triage 2022-01-16 17:16:25 UTC
ping?
Comment 7 Vinícius Zavam freebsd_committer freebsd_triage 2022-04-24 13:34:43 UTC
ping? :3
Comment 8 Gordon Bergling freebsd_committer freebsd_triage 2022-08-07 10:03:38 UTC
Could you open a differential for this enhancement? It should be get integrated very soon after review.
Comment 9 Vinícius Zavam freebsd_committer freebsd_triage 2022-08-07 15:51:48 UTC
(In reply to Gordon Bergling from comment #8)

hello there! thank you for taking this one in concern; much appreciated.

diff on phabricator was open already under https://reviews.freebsd.org/D27318
Comment 10 Vinícius Zavam freebsd_committer freebsd_triage 2022-08-10 20:28:04 UTC
Created attachment 235834 [details]
[PATCH] freebsd-version: present -v option, to print verbose information

sync patch file from most recent version updated on Phabricator.