Closes: https://bugs.gentoo.org/644586
Package-Manager: Portage-2.3.19, Repoman-2.3.6
--- /dev/null
+Bug: https://bugs.gentoo.org/644586
+
+Upstream fix: https://www.smartmontools.org/changeset/4603
+
+--- smartmontools-6.6/os_linux.cpp
++++ smartmontools-6.6/os_linux.cpp
+@@ -3177,5 +3177,5 @@
+ char path[128];
+ snprintf(path, sizeof(path), "/sys/block/%s/device", name);
+- char * syshostpath = canonicalize_file_name(path);
++ char * syshostpath = realpath(name, (char *)0);
+ if (!syshostpath)
+ return false;
REQUIRED_USE="( caps? ( daemon ) )"
+PATCHES=( "${FILESDIR}"/${P}-fix-build-on-musl.patch )
+
src_prepare() {
default