commit: 245e296b2cf5918d52b52e33af1822d424732ebe Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Sun Jan 14 19:10:55 2018 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Sun Jan 14 19:11:11 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=245e296b
sys-apps/smartmontools: Fix build on MUSL Closes: https://bugs.gentoo.org/644586 Package-Manager: Portage-2.3.19, Repoman-2.3.6 .../files/smartmontools-6.6-fix-build-on-musl.patch | 13 +++++++++++++ sys-apps/smartmontools/smartmontools-6.6.ebuild | 2 ++ 2 files changed, 15 insertions(+) diff --git a/sys-apps/smartmontools/files/smartmontools-6.6-fix-build-on-musl.patch b/sys-apps/smartmontools/files/smartmontools-6.6-fix-build-on-musl.patch new file mode 100644 index 00000000000..2cd36e0dce5 --- /dev/null +++ b/sys-apps/smartmontools/files/smartmontools-6.6-fix-build-on-musl.patch @@ -0,0 +1,13 @@ +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; diff --git a/sys-apps/smartmontools/smartmontools-6.6.ebuild b/sys-apps/smartmontools/smartmontools-6.6.ebuild index e96fcf91947..5edbb8d138d 100644 --- a/sys-apps/smartmontools/smartmontools-6.6.ebuild +++ b/sys-apps/smartmontools/smartmontools-6.6.ebuild @@ -47,6 +47,8 @@ RDEPEND="${DEPEND} REQUIRED_USE="( caps? ( daemon ) )" +PATCHES=( "${FILESDIR}"/${P}-fix-build-on-musl.patch ) + src_prepare() { default