Discussion:
[smartmontools-support] SRCEXPR pointing to wrong SVN URL on CentOS 6.x
Sysadmin Team
2016-10-07 23:46:20 UTC
Permalink
Hello!

We are having an issue with /usr/sbin/update-smart-drivedb with package:



# rpm -qf /usr/sbin/update-smart-drivedb
smartmontools-5.43-1.el6.x86_64




CentOS 6.7 x86_64




It appears that the SRCEXPR points to the wrong URL, for example:




SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD'






This should be:




SRCEXPR='https://sourceforge.net/p/smartmontools/code/HEAD/tree/$location/smartmontools/drivedb.h?format=raw';






~ curl -I "http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/trunk/smartmontools/drivedb.h?revision=HEAD"
HTTP/1.1 302 Found
Server: nginx
Date: Fri, 07 Oct 2016 23:45:43 GMT
Content-Type: text/html; charset=iso-8859-1
Connection: keep-alive
Location: http://sourceforge.net/p/smartmontools/code/






☁ ~ curl -I "https://sourceforge.net/p/smartmontools/code/HEAD/tree/trunk/smartmontools/drivedb.h?format=raw"
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 07 Oct 2016 23:45:57 GMT
Content-Type: text/x-chdr; charset=utf-8
Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Disposition: attachment;filename="drivedb.h"
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN









Just notifying the list of this issue, so it can be corrected in the next update.
Gabriele Pohl
2016-10-08 09:58:10 UTC
Permalink
On Fri, 7 Oct 2016 23:46:20 +0000 (UTC)
Post by Sysadmin Team
# rpm -qf /usr/sbin/update-smart-drivedb
smartmontools-5.43-1.el6.x86_64
CentOS 6.7 x86_64
btw: you should upgrade to current CentOS release 6.8
https://lists.centos.org/pipermail/centos-announce/2016-May/021895.html
Post by Sysadmin Team
SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD'
SRCEXPR='https://sourceforge.net/p/smartmontools/code/HEAD/tree/$location/smartmontools/drivedb.h?format=raw';
Just notifying the list of this issue, so it can be corrected in the next update.
As we don't build CentOS Packages Bugzilla is the platform to address.
I saw that there exist a bugticket for this issue already

https://bugzilla.redhat.com/show_bug.cgi?id=1367234#c2

As a workaround you can also download drivedb.h manually:
https://www.smartmontools.org/wiki/Download#Updatethedrivedatabase

HTH and cheers,

Gabriele

Loading...