Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/smartmontools smartmontools: update to 7.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fe6eedcacefd
branches:  trunk
changeset: 437055:fe6eedcacefd
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Aug 15 08:28:48 2020 +0000

description:
smartmontools: update to 7.1

- smartctl: Fixed bogus exception on unknown form factor value (regression).
- smartctl '--json=cg': Suppresses extra spaces also in 'g' format.
- smartctl '-i': ATA ACS-4 and ACS-5 enhancements.
- smartd: No longer truncates very long device names in warning emails.
- smartd: No longer skips scheduled tests if system clock has been adjusted
  to the past.
- smartd '-A': Attribute logs now use local time instead of UTC.
- ATA: Device type '-d jmb39x,N' for drives behind JMicron JMB39x RAID port
  multipliers.
- SCSI: Workaround for incomplete Log subpages response from some SAS SSDs.
- HDD, SSD and USB additions to drive database.
- Autodetection of '-d sntjmicron' type for JMicron USB to NVMe bridges.
- configure: Defines '_FORTIFY_SOURCE=2' if supported and not defined.
- Linux/FreeBSD: Fixed segfault on CCISS transfer sizes > 512 bytes.
- Linux: Fixed smartd.service 'Type' if libsystemd-dev is not available.
- Linux: Fixed '/dev/megaraid_sas_ioctl_node' fd leak.
- Linux: Fixed GPL licensing problem of 'linux_nvme_ioctl.h'.
- FreeBSD update-smart-drivedb: Now uses 'fetch' as default download tool.
- FreeBSD big endian: Fixed NVMe access.
- FreeBSD: Compile fix for FreeBSD 12.
- NetBSD: Fixed device scan crash on empty name list.
- NetBSD: Fixed memory leak in device scan.

diffstat:

 sysutils/smartmontools/Makefile                      |   6 ++--
 sysutils/smartmontools/PLIST                         |   6 +++-
 sysutils/smartmontools/distinfo                      |  12 ++++------
 sysutils/smartmontools/patches/patch-os__freebsd.cpp |  21 --------------------
 sysutils/smartmontools/patches/patch-os__netbsd.cpp  |  19 ------------------
 5 files changed, 12 insertions(+), 52 deletions(-)

diffs (116 lines):

diff -r 94da54830e2b -r fe6eedcacefd sysutils/smartmontools/Makefile
--- a/sysutils/smartmontools/Makefile   Sat Aug 15 08:03:35 2020 +0000
+++ b/sysutils/smartmontools/Makefile   Sat Aug 15 08:28:48 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.40 2020/03/20 11:58:23 nia Exp $
+# $NetBSD: Makefile,v 1.41 2020/08/15 08:28:48 tnn Exp $
 
-DISTNAME=              smartmontools-7.0
-PKGREVISION=           3
+DISTNAME=              smartmontools-7.1
 CATEGORIES=            sysutils
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=smartmontools/}
 
@@ -30,6 +29,7 @@
 
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
 CONFIGURE_ARGS+=       --docdir=${PREFIX}/share/doc/smartmontools
+CONFIGURE_ARGS+=       --with-scriptpath=${PREFIX}/bin:${PREFIX}/sbin:/usr/bin:/usr/sbin:/bin:/sbin
 INSTALL_MAKE_FLAGS=    ${MAKE_FLAGS} sysconfdir=${EGDIR}
 
 INSTALLATION_DIRS=     ${EGDIR}
diff -r 94da54830e2b -r fe6eedcacefd sysutils/smartmontools/PLIST
--- a/sysutils/smartmontools/PLIST      Sat Aug 15 08:03:35 2020 +0000
+++ b/sysutils/smartmontools/PLIST      Sat Aug 15 08:28:48 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2015/09/24 22:30:29 tnn Exp $
+@comment $NetBSD: PLIST,v 1.10 2020/08/15 08:28:48 tnn Exp $
 man/man5/smartd.conf.5
 man/man8/smartctl.8
 man/man8/smartd.8
@@ -9,7 +9,7 @@
 share/doc/smartmontools/AUTHORS
 share/doc/smartmontools/COPYING
 share/doc/smartmontools/ChangeLog
-share/doc/smartmontools/ChangeLog-5.0-6.0
+share/doc/smartmontools/ChangeLog-6.0-7.0
 share/doc/smartmontools/INSTALL
 share/doc/smartmontools/NEWS
 share/doc/smartmontools/README
@@ -20,6 +20,8 @@
 share/doc/smartmontools/examplescripts/Example4
 share/doc/smartmontools/examplescripts/Example5
 share/doc/smartmontools/examplescripts/Example6
+share/doc/smartmontools/examplescripts/Example7
+share/doc/smartmontools/examplescripts/Example8
 share/doc/smartmontools/examplescripts/README
 share/examples/smartmontools/smartd.conf
 share/examples/smartmontools/smartd_warning.sh
diff -r 94da54830e2b -r fe6eedcacefd sysutils/smartmontools/distinfo
--- a/sysutils/smartmontools/distinfo   Sat Aug 15 08:03:35 2020 +0000
+++ b/sysutils/smartmontools/distinfo   Sat Aug 15 08:28:48 2020 +0000
@@ -1,11 +1,9 @@
-$NetBSD: distinfo,v 1.35 2019/06/13 07:58:31 alnsn Exp $
+$NetBSD: distinfo,v 1.36 2020/08/15 08:28:48 tnn Exp $
 
-SHA1 (smartmontools-7.0.tar.gz) = 00e6a7bb26b283695ab0deaf521be6723ba44f0a
-RMD160 (smartmontools-7.0.tar.gz) = db20533115aa05a52836dbef0006c664083fbe90
-SHA512 (smartmontools-7.0.tar.gz) = 96e18a201182579f699d541539ce393e7bc2191e027cfdf7f87455a63da3a14451574f8fe391232047ac941ace453a017193d0a4987a4edb8f7ed9d5007f0512
-Size (smartmontools-7.0.tar.gz) = 944925 bytes
+SHA1 (smartmontools-7.1.tar.gz) = 207dc2b50cab1c6fba7bc248665fbbe3189374e1
+RMD160 (smartmontools-7.1.tar.gz) = dd123b516b915a4240a9f5b411eb4971fbca5dab
+SHA512 (smartmontools-7.1.tar.gz) = 440b2a957da10d240a8ef0008bd3358b83adb9eaca0f8d3e049b25d56a139c61dcd0bb4b27898faef6f189a27e159bdca3331e52e445c0eebf35e5d930f9e295
+Size (smartmontools-7.1.tar.gz) = 971468 bytes
 SHA1 (patch-aa) = bd08aff267f0e9e9307ebc57858e61e35144bf16
 SHA1 (patch-ag) = 01b0b35d89d6d6a11b13b3c05a141c46a0c1590b
 SHA1 (patch-nvmecmds.cpp) = 0fec043f00b4a7fde2974e1a4670ce42343f2d52
-SHA1 (patch-os__freebsd.cpp) = 96db45ca207e3a2f0d454f7b5c8b1b0d4e8a3e9c
-SHA1 (patch-os__netbsd.cpp) = abbaec99e900ca6e58b63417e4ff201d8fa071c0
diff -r 94da54830e2b -r fe6eedcacefd sysutils/smartmontools/patches/patch-os__freebsd.cpp
--- a/sysutils/smartmontools/patches/patch-os__freebsd.cpp      Sat Aug 15 08:03:35 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-$NetBSD: patch-os__freebsd.cpp,v 1.1 2019/02/15 20:38:29 triaxx Exp $
-
-* Big-endian support has been added to NVMe in FreeBSD 1200059: status field of
-  struct nvme_completion changed from struct nvme_status to uint16_t.
-  https://svnweb.freebsd.org/base/stable/12/sys/dev/nvme/nvme.h?revision=329824
-
---- os_freebsd.cpp.orig        2018-12-05 18:30:46.000000000 +0000
-+++ os_freebsd.cpp
-@@ -542,7 +542,12 @@ bool freebsd_nvme_device::nvme_pass_through(const nvme
-   out.result=cp_p->cdw0; // Command specific result (DW0)
- 
-   if (nvme_completion_is_error(cp_p)) {  /* ignore DNR and More bits */
-+#if __FreeBSD_version < 1200059
-     uint16_t nvme_status = ((cp_p->status.sct << 8) | cp_p->status.sc) & 0x3ff;
-+#else
-+    uint16_t nvme_status = NVME_STATUS_GET_SCT(cp_p->status) |
-+                           NVME_STATUS_GET_SC(cp_p->status);
-+#endif
- 
-     return set_nvme_err(out, nvme_status);
-   }
diff -r 94da54830e2b -r fe6eedcacefd sysutils/smartmontools/patches/patch-os__netbsd.cpp
--- a/sysutils/smartmontools/patches/patch-os__netbsd.cpp       Sat Aug 15 08:03:35 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-$NetBSD: patch-os__netbsd.cpp,v 1.5 2019/06/13 07:58:31 alnsn Exp $
-
-Apply upstream commit r4919 to fix memory corruption.
-
---- os_netbsd.cpp.orig 2018-09-16 15:03:22.000000000 +0000
-+++ os_netbsd.cpp
-@@ -602,6 +602,12 @@ int netbsd_smart_interface::get_dev_name
-     sprintf(mp[n], "%s%s%c", net_dev_raw_prefix, p, 'a' + getrawpartition());
-     n++;
-   }
-+  free(disknames);
-+
-+  if (n == 0) {
-+    free(mp);
-+    return 0;
-+  }
- 
-   char ** tmp = (char **)realloc(mp, n * (sizeof(char *)));
-   if (NULL == tmp) {



Home | Main Index | Thread Index | Old Index