summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixun Lan <dlan@gentoo.org>2021-05-21 09:06:21 +0800
committerYixun Lan <dlan@gentoo.org>2021-05-21 09:06:36 +0800
commit0ec73cec03b0a344d2aa4dad638cac47219e3611 (patch)
treeb31d196d6fb7e2bd7cb9d4b1e84fe2f62cff98d5 /net-fs/autofs
parentx11-misc/xdg-user-dirs-gtk: add riscv keyword (diff)
downloadgentoo-0ec73cec03b0a344d2aa4dad638cac47219e3611.tar.gz
gentoo-0ec73cec03b0a344d2aa4dad638cac47219e3611.tar.bz2
gentoo-0ec73cec03b0a344d2aa4dad638cac47219e3611.zip
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 <dlan@gentoo.org>
Diffstat (limited to 'net-fs/autofs')
-rw-r--r--net-fs/autofs/autofs-5.1.6-r1.ebuild1
-rw-r--r--net-fs/autofs/autofs-5.1.7.ebuild1
-rw-r--r--net-fs/autofs/files/autofs-5.1.6-musl.patch12
3 files changed, 14 insertions, 0 deletions
diff --git a/net-fs/autofs/autofs-5.1.6-r1.ebuild b/net-fs/autofs/autofs-5.1.6-r1.ebuild
index 3422926b94d..743ec651949 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 5dfef5feafa..5387d293f41 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 00000000000..bdcc0db9a9f
--- /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 <linux/auto_fs4.h>
++#ifndef __GLIBC__
++#include <bits/reg.h>
++#endif
+
+ #include "defaults.h"
+ #include "state.h"