Bug 647521

Summary: smartmontools: 'smartctl -V' output insufficient for gsmartcontrol
Product: [openSUSE] openSUSE 11.4 Reporter: Matthias Schnatbaum <com1>
Component: OtherAssignee: Petr Gajdos <pgajdos>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: com1, crrodriguez, pgajdos
Version: Milestone 2 of 6   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Matthias Schnatbaum 2010-10-18 20:58:40 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.10) Gecko/20100914 SUSE/3.6.10-3.4 Firefox/3.6.10

Output of 'smartctl -V' does not contain smartctl version. This causes gsmartcontrol to fail.
smartmontools: 5.39.1_git201009281647-1.1

An own build of smartmontools-5.40 solved the problem for me. 'smartctl -V' output contains the version (again) in the first line:

smartctl 5.40 2010-10-16 r3189 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

smartctl comes with ABSOLUTELY NO WARRANTY. This is free
software, and you are welcome to redistribute it under
the terms of the GNU General Public License Version 2.
See http://www.gnu.org for further details.

smartmontools release 5.40 dated 2010-10-16 at 16:34:38 UTC
smartmontools SVN rev 3189 dated 2010-10-16 at 16:35:49
smartmontools build host: x86_64-unknown-linux-gnu
smartmontools build configured: 2010-10-17 21:47:39 UTC
smartctl compile dated Oct 17 2010 at 23:48:14
smartmontools configure arguments: [no arguments given]


Reproducible: Always

Steps to Reproduce:
1. Install gsmartcontrol.
2. Invoke gsmartcontrol from Konsole, and leave it immediately.
3. The error output is:
<error> [app] bool SmartctlParser::parse_version(): No smartctl version information found in supplied string.
Actual Results:  
gsmartcontrol can not detect drive(s).

Expected Results:  
gsmartcontrol detects drive(s) and provides SMART information.
Comment 1 Petr Gajdos 2011-02-03 13:50:19 UTC
(In reply to comment #0)
> An own build of smartmontools-5.40 solved the problem for me. 'smartctl -V'
     ^^^^^^^^^

This is because our version contains smartmontools-nobuild-date.patch.

Reason for this patch:
- Do not include build enviroment infon in the binaries
 including date and time of compilation, makes build-compare
 happier.

I will try to fix that.
Comment 2 Petr Gajdos 2011-02-03 16:26:39 UTC
Could you please test smartmontools from Base:System?
Comment 3 Matthias Schnatbaum 2011-02-03 22:47:04 UTC
Please tell me more detailed where to download the actualized smartmontools.
Comment 4 Matthias Schnatbaum 2011-02-04 13:22:21 UTC
Found Base:System and the package now. Will test it this evening and give you feedback then.
Comment 5 Matthias Schnatbaum 2011-02-04 19:40:52 UTC
gsmartcontrol can invoke smartctl correctly again. Version information appears in output of 'smartctl -V' again,
Problem solved.
Comment 6 Petr Gajdos 2011-02-07 07:11:32 UTC
Submit request #60188.
Closing as fixed.

Thanks for reporting!