net-fs/samba: Fix compatibility issues with the timespec struct
authorCraig Andrews <candrews@gentoo.org>
Mon, 12 Nov 2018 03:32:28 +0000 (22:32 -0500)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 16 Nov 2018 07:46:31 +0000 (08:46 +0100)
Closes: https://bugs.gentoo.org/666548
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/10396
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
net-fs/samba/files/samba-4.9.2-timespec.patch [new file with mode: 0644]
net-fs/samba/samba-4.9.2-r1.ebuild [moved from net-fs/samba/samba-4.9.2.ebuild with 99% similarity]

diff --git a/net-fs/samba/files/samba-4.9.2-timespec.patch b/net-fs/samba/files/samba-4.9.2-timespec.patch
new file mode 100644 (file)
index 0000000..c82f4af
--- /dev/null
@@ -0,0 +1,21 @@
+From 11e8c14b78e2423041f3846882f74cd6490a3e44 Mon Sep 17 00:00:00 2001
+From: Joan Karadimov <joan@profuzdigital.com>
+Date: Thu, 18 Oct 2018 18:16:17 +0300
+Subject: [PATCH] Fix compatibility issues with the timespec struct
+
+---
+ source3/include/libsmbclient.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h
+index 5e4a1715402..6487ea7a8aa 100644
+--- a/source3/include/libsmbclient.h
++++ b/source3/include/libsmbclient.h
+@@ -78,6 +78,7 @@ extern "C" {
+ #include <sys/statvfs.h>
+ #include <stdint.h>
+ #include <fcntl.h>
++#include <time.h>
+ #include <utime.h>
+ #define SMBC_BASE_FD        10000 /* smallest file descriptor returned */
similarity index 99%
rename from net-fs/samba/samba-4.9.2.ebuild
rename to net-fs/samba/samba-4.9.2-r1.ebuild
index 474ff007b0b69bca94ae979e4bce1d025b584fdb..9552e026df24572f26f08046b5b8bb4c171b71eb 100644 (file)
@@ -132,6 +132,7 @@ S="${WORKDIR}/${MY_P}"
 PATCHES=(
        "${FILESDIR}/${PN}-4.4.0-pam.patch"
        "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
+       "${FILESDIR}/${PN}-4.9.2-timespec.patch"
 )
 
 #CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"