Bug 251316 - freebsd-version: present -v option, to print verbose information
Summary: freebsd-version: present -v option, to print verbose information
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL: https://reviews.freebsd.org/D27318
Keywords: feature
Depends on:
Blocks:
 
Reported: 2020-11-22 16:59 UTC by Vinícius Zavam
Modified: 2023-10-01 15:29 UTC (History)
2 users (show)

See Also:


Attachments
[PATCH] freebsd-version: present -v option, to print verbose information (3.87 KB, patch)
2020-11-22 16:59 UTC, Vinícius Zavam
no flags Details | Diff
[PATCH] freebsd-version: present -v option, to print verbose information (OSVERSION) (1.13 KB, patch)
2021-11-15 12:29 UTC, Vinícius Zavam
no flags Details | Diff
[PATCH] freebsd-version: present -v option, to print verbose information (1.63 KB, patch)
2021-11-15 13:03 UTC, Vinícius Zavam
no flags Details | Diff
[PATCH] freebsd-version: present -v option, to print verbose information (2.44 KB, patch)
2021-11-15 15:03 UTC, Vinícius Zavam
no flags Details | Diff
[PATCH] freebsd-version: present -v option, to print verbose information (3.31 KB, patch)
2022-08-10 20:28 UTC, Vinícius Zavam
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.