From b8ae5cfef2c3784d0eeb9e5fbbfda3ad0a8f7ebb Mon Sep 17 00:00:00 2001 From: Maxim Storchak Date: Sat, 9 Dec 2017 15:30:22 +0200 Subject: [PATCH] smartmontools: update to 6.6 Signed-off-by: Maxim Storchak --- utils/smartmontools/Makefile | 4 ++-- .../patches/001-musl-compat-realpath.patch | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 utils/smartmontools/patches/001-musl-compat-realpath.patch diff --git a/utils/smartmontools/Makefile b/utils/smartmontools/Makefile index 56c2b4832..fc0c1008c 100644 --- a/utils/smartmontools/Makefile +++ b/utils/smartmontools/Makefile @@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/uclibc++.mk PKG_NAME:=smartmontools -PKG_VERSION:=6.5 +PKG_VERSION:=6.6 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/smartmontools -PKG_HASH:=89e8bb080130bc6ce148573ba5bb91bfe30236b64b1b5bbca26515d4b5c945bc +PKG_HASH:=51f43d0fb064fccaf823bbe68cf0d317d0895ff895aa353b3339a3b316a53054 PKG_MAINTAINER:=Maxim Storchak PKG_LICENSE:=GPL-2.0+ PKG_LICENSE_FILES:=COPYING diff --git a/utils/smartmontools/patches/001-musl-compat-realpath.patch b/utils/smartmontools/patches/001-musl-compat-realpath.patch new file mode 100644 index 000000000..cc11023f5 --- /dev/null +++ b/utils/smartmontools/patches/001-musl-compat-realpath.patch @@ -0,0 +1,19 @@ +commit 2473c5e01ea14fae96c157d8bce3a3ec1da124f3 +Author: Maxim Storchak +Date: Sat Dec 9 15:21:51 2017 +0200 + + Replace canonicalize_file_name with realpath equivalent + +diff --git a/os_linux.cpp b/os_linux.cpp +index 134d5bc..0575a13 100644 +--- a/os_linux.cpp ++++ b/os_linux.cpp +@@ -3176,7 +3176,7 @@ static bool is_hpsa(const char * name) + { + char path[128]; + snprintf(path, sizeof(path), "/sys/block/%s/device", name); +- char * syshostpath = canonicalize_file_name(path); ++ char * syshostpath = realpath(path, NULL); + if (!syshostpath) + return false; +