Package: smartmontools
Version: 6.3+svn4002-2+b2
Severity: normal

Update page has been moved and now update-smart-drivedb command fails
when curl is installed on the system.

$ which curl
/usr/bin/curl

$ sudo update-smart-drivedb
/var/lib/smartmontools/drivedb/drivedb.h.error: rejected by /usr/sbin/smartctl,
probably no longer compatible

$ cat /var/lib/smartmontools/drivedb/drivedb.h.error
<html>
 <head>
  <title>302 Found</title>
 </head>
 <body>
  <h1>302 Found</h1>
  The resource was found at <a
href="https://sourceforge.net/p/smartmontools/code/HEAD/tree/branches/RELEASE_6_4_DRIVEDB/smartmontools/drivedb.h?format=raw";>https://sourceforge.net/p/smartmontools/code/HEAD/tree/branches/RELEASE_6_4_DRIVEDB/smartmontools/drivedb.h?format=raw</a>;
you should be redirected automatically.


 </body>
</html>

After adding -L option to curl command in update-smart-drivedb:

$ diff -u /usr/sbin/update-smart-drivedb{,.org}
--- /usr/sbin/update-smart-drivedb      2016-05-13 00:42:15.831879006 +0300
+++ /usr/sbin/update-smart-drivedb.org  2016-05-13 00:41:26.215632972 +0300
@@ -77,7 +77,7 @@
 for t in $os_dltools; do
   if which $t >/dev/null 2>/dev/null; then
     case $t in
-      curl)  DOWNLOAD="curl ${q:+-s }"'-L -f -o "$DEST.new" "$SRC"' ;;
+      curl)  DOWNLOAD="curl ${q:+-s }"'-f -o "$DEST.new" "$SRC"' ;;
       lynx)  DOWNLOAD='lynx -source "$SRC" >"$DEST.new"' ;;
       wget)  DOWNLOAD="wget $q"'-O "$DEST.new" "$SRC"' ;;
       fetch) DOWNLOAD='fetch -o "$DEST.new" "$SRC"' ;; # FreeBSD

$ sudo update-smart-drivedb
/var/lib/smartmontools/drivedb/drivedb.h updated from
branches/RELEASE_6_4_DRIVEDB

$ fgrep '$Id' /var/lib/smartmontools/drivedb/drivedb.h
  { "$Id: drivedb.h 4317 2016-05-06 20:17:21Z chrfranke $",



-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500,
'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64, armhf

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages smartmontools depends on:
ii  debianutils          4.4+b1
ii  init-system-helpers  1.22
ii  libc6                2.19-18+deb8u4
ii  libcap-ng0           0.7.4-2
ii  libgcc1              1:4.9.2-10
ii  libselinux1          2.3-2
ii  libstdc++6           4.9.2-10
ii  lsb-base             4.1+Debian13+nmu1

Versions of packages smartmontools recommends:
ii  heirloom-mailx [mailx]  12.5-4

Versions of packages smartmontools suggests:
pn  gsmartcontrol   <none>
ii  smart-notifier  0.28-5

-- Configuration Files:
/etc/default/smartmontools changed [not included]
/etc/smartd.conf changed [not included]

Reply via email to