From 0ec73cec03b0a344d2aa4dad638cac47219e3611 Mon Sep 17 00:00:00 2001 From: Yixun Lan Date: Fri, 21 May 2021 09:06:21 +0800 Subject: net-fs/autofs: fix musl build error Closes: https://bugs.gentoo.org/791202 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Yixun Lan --- net-fs/autofs/autofs-5.1.6-r1.ebuild | 1 + net-fs/autofs/autofs-5.1.7.ebuild | 1 + net-fs/autofs/files/autofs-5.1.6-musl.patch | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 net-fs/autofs/files/autofs-5.1.6-musl.patch (limited to 'net-fs/autofs') diff --git a/net-fs/autofs/autofs-5.1.6-r1.ebuild b/net-fs/autofs/autofs-5.1.6-r1.ebuild index 3422926b94dd..743ec6519497 100644 --- a/net-fs/autofs/autofs-5.1.6-r1.ebuild +++ b/net-fs/autofs/autofs-5.1.6-r1.ebuild @@ -38,6 +38,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}/${P}-glibc.patch" + "${FILESDIR}/${P}-musl.patch" "${FILESDIR}/${P}-pid.patch" ) diff --git a/net-fs/autofs/autofs-5.1.7.ebuild b/net-fs/autofs/autofs-5.1.7.ebuild index 5dfef5feafa3..5387d293f411 100644 --- a/net-fs/autofs/autofs-5.1.7.ebuild +++ b/net-fs/autofs/autofs-5.1.7.ebuild @@ -38,6 +38,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}/${P}-glibc.patch" + "${FILESDIR}/${PN}-5.1.6-musl.patch" "${FILESDIR}/${PN}-5.1.6-pid.patch" ) diff --git a/net-fs/autofs/files/autofs-5.1.6-musl.patch b/net-fs/autofs/files/autofs-5.1.6-musl.patch new file mode 100644 index 000000000000..bdcc0db9a9f3 --- /dev/null +++ b/net-fs/autofs/files/autofs-5.1.6-musl.patch @@ -0,0 +1,12 @@ +--- a/include/automount.h ++++ b/include/automount.h +@@ -25,6 +25,9 @@ + #include "list.h" + + #include ++#ifndef __GLIBC__ ++#include ++#endif + + #include "defaults.h" + #include "state.h" -- cgit v1.2.3-65-gdbad