commit:     0ec73cec03b0a344d2aa4dad638cac47219e3611
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Fri May 21 01:06:21 2021 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Fri May 21 01:06:36 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ec73cec

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 <AT> gentoo.org>

 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(+)

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"

Reply via email to