Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1677414

Summary: sensors-detect version string displays 'sensors-detect revision $Revision$'
Product: Red Hat Enterprise Linux 8 Reporter: Rachel Sibley <rasibley>
Component: lm_sensorsAssignee: Ondřej Lysoněk <olysonek>
Status: CLOSED ERRATA QA Contact: Rachel Sibley <rasibley>
Severity: low Docs Contact:
Priority: low    
Version: 8.0CC: psklenar, rvr
Target Milestone: rcKeywords: Patch, Regression, Reproducer, TestCaseNeeded, Upstream
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:43:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1741517, 1743192, 1755139    
Attachments:
Description Flags
spec file patch none

Description Rachel Sibley 2019-02-14 19:45:18 UTC
Description of problem:
When you run sensors-detect the date and version are missing from the beginning output, instead you will see $REVISION$ displayed.

Version-Release number of selected component (if applicable):
lm_sensors-3.4.0-17.20180522git70f7e08.el8.x86_64

How reproducible:
Always

Steps to Reproduce:
1. run 'sensors-detect'
2.
3.

Actual results:
Something like 'sensors-detect revision 6170'

Expected results:
version string in replacement of $

Additional info:
See rhel7 bug https://bugzilla.redhat.com/show_bug.cgi?id=1362658

Comment 3 Ondřej Lysoněk 2019-08-21 13:19:47 UTC
Created attachment 1606517 [details]
spec file patch

Comment 8 Ondřej Lysoněk 2019-10-17 13:40:53 UTC
Upstream patch (the version string therein needs to be modified to 3.4.0):
https://github.com/lm-sensors/lm-sensors/commit/5c900c7e851cc1f0de81772432e37a54e9833f89

Comment 9 Ondřej Lysoněk 2019-10-17 14:23:57 UTC
Another upstream commit:
https://github.com/lm-sensors/lm-sensors/commit/f1e1a7607caa96bda67920f76c795d1dc7d9a10c

Comment 13 Rachel Sibley 2020-03-25 20:34:52 UTC
ALL TESTS PASSED

Verified version string is displayed properly now with latest lm_sensors build:

Before:
===========
root@ci-vm-10-0-137-171 ~]# rpm -q lm_sensors
lm_sensors-3.4.0-20.20180522git70f7e08.el8.x86_64

[root@ci-vm-10-0-137-171 ~]# sensors-detect
# sensors-detect revision $Revision$

After:
===========
[root@ci-vm-10-0-138-18 ~]# rpm -q lm_sensors
lm_sensors-3.4.0-21.20180522git70f7e08.el8.x86_64

[root@ci-vm-10-0-138-18 ~]# sensors-detect
# sensors-detect version 3.4.0+git

It differs from the fact that it doesn't display the entire release string as compared to RHEL7, but I don't see it 
as a blocker. I can file a separate BZ if necessary.

RHEL7 example:

~]# sensors-detect
# sensors-detect revision 3.4.0-4 (2016-06-01)

Comment 15 errata-xmlrpc 2020-04-28 16:43:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1784