net-fs/samba: Fixed build with rpc-less glibc.
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 13 Nov 2017 15:49:04 +0000 (16:49 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 13 Nov 2017 15:49:29 +0000 (16:49 +0100)
Closes: https://bugs.gentoo.org/606542
Closes: https://bugs.gentoo.org/637320
Package-Manager: Portage-2.3.13, Repoman-2.3.4

net-fs/samba/files/samba-glibc-2.26-no_rpc.patch [new file with mode: 0644]
net-fs/samba/samba-4.6.9.ebuild
net-fs/samba/samba-4.7.1.ebuild

diff --git a/net-fs/samba/files/samba-glibc-2.26-no_rpc.patch b/net-fs/samba/files/samba-glibc-2.26-no_rpc.patch
new file mode 100644 (file)
index 0000000..e664468
--- /dev/null
@@ -0,0 +1,14 @@
+https://attachments.samba.org/attachment.cgi?id=13172
+https://bugs.gentoo.org/637320
+
+--- a/lib/replace/wscript
++++ b/lib/replace/wscript
+@@ -71,7 +71,7 @@
+     conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h')
+     conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h')
+-    conf.CHECK_CODE('', headers='rpc/rpc.h rpcsvc/yp_prot.h', define='HAVE_RPCSVC_YP_PROT_H')
++    conf.CHECK_CODE('ypstat s;', headers='rpc/rpc.h rpcsvc/yp_prot.h', define='HAVE_RPCSVC_YP_PROT_H')
+     conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h valgrind/memcheck.h')
+     conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h')
index 43d075a4a99484e70806432c120c4d418216c3e4..3f12fb2f123b741925243cb146b0d0498bb99360 100644 (file)
@@ -119,6 +119,7 @@ S="${WORKDIR}/${MY_P}"
 PATCHES=(
        "${FILESDIR}/${PN}-4.4.0-pam.patch"
        "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
+       "${FILESDIR}/${PN}-glibc-2.26-no_rpc.patch" #637320
 )
 
 #CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
index 8e9afc791ab59e511e51df727b1a8fbc31a34728..e04ebce2c5bb29187709a6dd0946be13e09fd5fe 100644 (file)
@@ -118,6 +118,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-4.4.0-pam.patch"
        "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
        "${FILESDIR}"/talloc-disable-python.patch
+       "${FILESDIR}/${PN}-glibc-2.26-no_rpc.patch" #637320
 )
 
 #CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"