smartmontools and update-smart-drivedb

Carmel NY carmel_ny at outlook.com
Wed Apr 29 14:43:49 UTC 2020


On Wed, 29 Apr 2020 13:52:04 +0100, Bob Eager stated:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA256
>
>On Wed, 29 Apr 2020 08:30:31 -0400
>Carmel NY <carmel_ny at outlook.com> wrote:
>
>> FreeBSD 11.3-RELEASE-p8
>> 
>> Output of smartctl -V
>> 
>> smartctl 7.1 2019-12-30 r5022 [FreeBSD 11.3-RELEASE-p7 amd64] (local
>> build) Copyright (C) 2002-19, Bruce Allen, Christian Franke,
>> www.smartmontools.org
>> 
>> 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; either
>> version 2, or (at your option) any later version.
>> See http://www.gnu.org for further details.
>> 
>> smartmontools release 7.1 dated 2019-12-30 at 15:00:11 UTC
>> smartmontools SVN rev 5022 dated 2019-12-30 at 15:00:49
>> smartmontools build host: amd64-portbld-freebsd11.3
>> smartmontools build with: C++14, GCC 4.2.1 Compatible FreeBSD Clang
>> 8.0.0 (tags/RELEASE_800/final 356365) smartmontools configure
>> arguments: '--disable-dependency-tracking' '--enable-sample'
>> '--with-gnupg=no' '--with-initscriptdir=/usr/local/etc/rc.d'
>> '--with-nvme-devicescan=yes' '--with-update-smart-drivedb=no'
>> '--prefix=/usr/local' '--localstatedir=/var'
>> '--mandir=/usr/local/man' '--disable-silent-rules'
>> '--infodir=/usr/local/share/info/'
>> '--build=amd64-portbld-freebsd11.3'
>> 'build_alias=amd64-portbld-freebsd11.3' 'CXX=c++' 'CXXFLAGS=-O2
>> -pipe -fstack-protector-strong -fno-strict-aliasing  ' 'LDFLAGS=
>> -fstack-protector-strong ' 'LIBS=' 'CPPFLAGS=' 'CC=cc' 'CFLAGS=-O2
>> -pipe  -fstack-protector-strong -fno-strict-aliasing '
>> 
>> This is from the sysutils/smartmontools/ Makefile:
>> 
>> CONFIGURE_ARGS= --disable-dependency-tracking \
>>                 --enable-sample \
>>                 --with-gnupg=no \
>>                 --with-initscriptdir=${PREFIX}/etc/rc.d \
>>                 --with-nvme-devicescan=yes \
>>                 --with-update-smart-drivedb=no
>> 
>> As can be clearly seen, the "update-smart-drivedb" ability has been
>> eliminated from the port. Why is that? I am unable to update the
>> database to include my HD, which is available. There is a
>> "/usr/local/share/smartmontools/drivedb.h " present; however, it is
>> out of date.
>> 
>> So, I guess my question is:
>> 
>> 1) Why is the "update" procedure deliberately removed from the port?
>>  
>
>I think it was broken for a while.
>
>> 2) What is the recommended procedure on FreeBSD to update this file?
>>  
>
>All that command does is retrieve the header file drivedb.h. You can do
>that manually from:
>
> https://www.smartmontools.org/browser/branches/RELEASE_7_0_DRIVEDB/smartmontools/drivedb.h
>
>then put it in /usr/local/share/smartmontools/.
>
>It doesn't need compiling; it parses it!

Thanks, I downloaded it and replaced the outdated file with the new
one. However, I would still like to know the rationale behind shipping
the port with an outdated 'drivedb.h' file and what is broken with the
"update-smart-drivedb" application. I guess I am going to have to get a
copy of that file and examine it myself.

-- 
Carmel



More information about the freebsd-ports mailing list