From owner-freebsd-ports@freebsd.org Wed Apr 29 15:19:59 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 903B32B816E for ; Wed, 29 Apr 2020 15:19:59 +0000 (UTC) (envelope-from rde@tavi.co.uk) Received: from kipling.tavi.co.uk (kipling.tavi.co.uk [81.187.145.130]) by mx1.freebsd.org (Postfix) with ESMTP id 49C2Hy0yRGz4LwC for ; Wed, 29 Apr 2020 15:19:57 +0000 (UTC) (envelope-from rde@tavi.co.uk) Received: from kipling.tavi.co.uk (localhost [127.0.0.1]) by kipling.tavi.co.uk (Postfix) with ESMTP id 85785139CE for ; Wed, 29 Apr 2020 16:19:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=tavi.co.uk; h=date:from:to :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=selector1; bh=i2BHXLP Kf890WyaFc98OGnDYcZo=; b=gETCmZ+8B6hltzERyOO1MRF6PbQWnR3OJj6jhla SROPNdGiMKP40dPdvome7pPaS2AmlHNet8jwOSyIrOgkq+z+dL9q2NNZCZbLm4On 45/V/orF68GgevGUVi5GBoZWmKj+ojAxabqsg5ppB4b6USxWNwIRpoJ2FLYZZFdl Q7iA= Received: from raksha.tavi.co.uk (raksha.tavi.co.uk [81.187.145.139]) (Authenticated sender: rde@tavi.co.uk) by kipling.tavi.co.uk (Postfix) with ESMTPA id 4DA06139CC for ; Wed, 29 Apr 2020 16:19:56 +0100 (BST) Date: Wed, 29 Apr 2020 16:19:56 +0100 From: Bob Eager To: freebsd-ports@freebsd.org Subject: Re: smartmontools and update-smart-drivedb Message-ID: <20200429161956.7525adaa@raksha.tavi.co.uk> In-Reply-To: References: <20200429135204.1411a8cc@raksha.tavi.co.uk> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd12.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUwXjFLc0vD0cS7y7zw9PDZ4tkWSRaVrZZ+m39qi2tXfVj////7+/utwK4IPggAOAAJUUA7AAABKklEQVQ4jWPYjQMwDFYJp0NKEKCNJmEf9h8CsimXiL2e33s3/e7F7K2Cs3f3dCMkQkMKj4YuCY3K3iR+e7fMaiSjvkX0/5cFGrWpe2uLzOpaExUVqMS/8PX/Re5ey960OLBTZpFA8+IlSBKPQ92zNyUUBsosN58uIY0k8f+/ONCoYytkVuhWzVwNkYiYbqk5M3NmOVBi41YZ8RsGF7shEtFb5KJ3r969CyixM7OTPeFUxG2IxLO8/9/SvqXlc+/x3h295YzLlj2nIRJQj//nRvc5TEIal8RsXBLVuCQwIgoq/u80DomP6HEOk/iOS+IJLonZOCT+ReOQ+Lkbh0QKLonbOCR+7MYhsRqHBJrVcIl/1TgklqKLQyQ+tGKIgyQOqXpjig94diZRAgAXmDX6jyWafAAAAABJRU5ErkJggg====== MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49C2Hy0yRGz4LwC X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tavi.co.uk header.s=selector1 header.b=gETCmZ+8; dmarc=pass (policy=none) header.from=tavi.co.uk; spf=pass (mx1.freebsd.org: domain of rde@tavi.co.uk designates 81.187.145.130 as permitted sender) smtp.mailfrom=rde@tavi.co.uk X-Spamd-Result: default: False [-6.55 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[tavi.co.uk:s=selector1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:kipling.tavi.co.uk:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[tavi.co.uk:+]; DMARC_POLICY_ALLOW(-0.50)[tavi.co.uk,none]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-3.65)[ip: (-9.64), ipnet: 81.187.0.0/16(-4.78), asn: 20712(-3.74), country: GB(-0.07)]; ASN(0.00)[asn:20712, ipnet:81.187.0.0/16, country:GB] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2020 15:19:59 -0000 On Wed, 29 Apr 2020 10:43:40 -0400 Carmel NY wrote: > 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 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 The port doesn't get updated every time there is a new drive database; that would be unworkable. > 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. It's not the file; it seems to be a problem with github. https://www.smartmontools.org/wiki/Download#Updatethedrivedatabase