Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580424 - sys-apps/smartmontools: update-smart-drivedb cannot fetch drivedb.h file amynore
Summary: sys-apps/smartmontools: update-smart-drivedb cannot fetch drivedb.h file amynore
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://www.smartmontools.org/ticket/659
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-18 12:42 UTC by Chicago
Modified: 2016-04-18 14:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Update the SRCEXPR in update-smart-drivedb.in (smartmontools.patch,477 bytes, patch)
2016-04-18 12:42 UTC, Chicago
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chicago 2016-04-18 12:42:25 UTC
Created attachment 431126 [details, diff]
Update the SRCEXPR in update-smart-drivedb.in

smartmontools includes a utility to update the smartmontools drive database. See the on-line reference manual, UPDATE-SMART-DRIVEDB(8) for more information. update-smart-drivedb fetches the drivedb.h file from upstream which is frequently amended as drives are added to the database.

    Not so long ago, SourceForge moved the smartmontools repository to a new location which breaks the released update-smart-drivedb script, causing it to return in error.

        "rejected by /usr/sbin/smartctl, probably no longer compatible"

    The attached smartmontools.patch changes the SRCEXPR within update-smart-drivedb.in, leading to successful execution of update-smart-drivedb.

    Perhaps the correct approach is different than simply patching the SRCEXPR.
    At your discretion, maybe the trunk versions of update-smart-drivedb.8.in, update-smart-drivedb.in and their man pages should be included in the next revision of the in-tree sys-apps/smartmontools packages.

    I found this problem in sys-apps/smartmontools-6.4 and assume it is also present in sys-apps/smartmontools-6.3.

    For your reference, here is a link to a thread from the mailing list describing the SourceForge repository change breaking update-smart-drivedb.
        https://sourceforge.net/p/smartmontools/mailman/message/31696637/

    Also, in case you're curious how new drives are added to the database, you may find the following FAQ answer useful.
        https://www.smartmontools.org/wiki/FAQ#SmartmontoolsDatabase

    The trunk versions of the above referenced update-smart-drivedb related files may be found at the following location.
        https://sourceforge.net/p/smartmontools/code/HEAD/tree/trunk/smartmontools/

Kind Regards,
-Chicago
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-04-18 13:56:21 UTC
commit 1a1f6c1d1327664ccf81805b01cc435a4cd9fc69
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Mon Apr 18 15:44:31 2016

    sys-apps/smartmontools: Revbump to fix bugs #575292 and #580424
    
    Don't install drivedb.h into /usr and don't add it to the PM's file
    database (#575292). Fix download location of latest drivedb.h file
    (#580424).
    
    Package-Manager: portage-2.2.28
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>