net-fs/samba: Replaced no_ads patch with official upstream version.
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 17 Apr 2018 08:09:47 +0000 (10:09 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 17 Apr 2018 08:09:47 +0000 (10:09 +0200)
Package-Manager: Portage-2.3.29, Repoman-2.3.9

net-fs/samba/files/samba-4.6-no_ads.patch [new file with mode: 0644]
net-fs/samba/files/samba-4.7.4-no_ads.patch [deleted file]
net-fs/samba/samba-4.6.14.ebuild
net-fs/samba/samba-4.7.6.ebuild
net-fs/samba/samba-4.8.0.ebuild

diff --git a/net-fs/samba/files/samba-4.6-no_ads.patch b/net-fs/samba/files/samba-4.6-no_ads.patch
new file mode 100644 (file)
index 0000000..e3f3dfd
--- /dev/null
@@ -0,0 +1,37 @@
+From 655504d97a98541bebac812953fd48c49526312d Mon Sep 17 00:00:00 2001
+From: Volker Lendecke <vl@samba.org>
+Date: Sat, 3 Feb 2018 07:07:24 +0100
+Subject: [PATCH] libads: Fix the build --without-ads
+
+Signed-off-by: Volker Lendecke <vl@samba.org>
+Reviewed-by: David Disseldorp <ddiss@samba.org>
+
+Autobuild-User(master): David Disseldorp <ddiss@samba.org>
+Autobuild-Date(master): Tue Feb  6 02:47:44 CET 2018 on sn-devel-144
+
+Bug: https://bugzilla.samba.org/show_bug.cgi?id=13273
+
+(cherry picked from commit 859698d29b547217356851094ed8188236e717b6)
+---
+ source3/libads/kerberos_keytab.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c
+index ffd100c..37ac7ba 100644
+--- a/source3/libads/kerberos_keytab.c
++++ b/source3/libads/kerberos_keytab.c
+@@ -640,7 +640,11 @@ int ads_keytab_list(const char *keytab_name)
+       }
+ 
+       if (keytab_name == NULL) {
++#ifdef HAVE_ADS
+               ret = ads_keytab_open(context, &keytab);
++#else
++              ret = ENOENT;
++#endif
+       } else {
+               ret = smb_krb5_kt_open(context, keytab_name, False, &keytab);
+       }
+-- 
+1.9.1
+
diff --git a/net-fs/samba/files/samba-4.7.4-no_ads.patch b/net-fs/samba/files/samba-4.7.4-no_ads.patch
deleted file mode 100644 (file)
index d4c26a3..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-https://lists.samba.org/archive/samba-technical/2017-December/124629.html
-
---- a/source3/libads/kerberos_keytab.c
-+++ b/source3/libads/kerberos_keytab.c
-@@ -32,8 +32,6 @@
- 
- #ifdef HAVE_KRB5
- 
--#ifdef HAVE_ADS
--
- /* This MAX_NAME_LEN is a constant defined in krb5.h */
- #ifndef MAX_KEYTAB_NAME_LEN
- #define MAX_KEYTAB_NAME_LEN 1100
-@@ -85,6 +83,8 @@
-       return ret;
- }
- 
-+#ifdef HAVE_ADS
-+
- /**********************************************************************
-  Adds a single service principal, i.e. 'host' to the system keytab
- ***********************************************************************/
index e12d8c119d60d15c7c1a85d04ef76406ad20c186..ac34ac0c5aa6eab7e9869041d85c2a25e8018dc9 100644 (file)
@@ -122,6 +122,7 @@ 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
+       "${FILESDIR}/${PN}-4.6-no_ads.patch"
 )
 
 #CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
index 48e53c45e323412a94c3b9aa14245217716ac788..5b1399ed756fe3c42a3b95830666046ca28d90fc 100644 (file)
@@ -132,7 +132,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
        "${FILESDIR}"/talloc-disable-python.patch
        "${FILESDIR}/${PN}-4.7.3-krb-cross-compile.patch"
-       "${FILESDIR}/${PN}-4.7.4-no_ads.patch"
+       "${FILESDIR}/${PN}-4.6-no_ads.patch"
 )
 
 #CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
index fe8425877744d5d6e173029a3431a9b346ef7b9f..7a9862d6d28e2a94050115ac4daf9dbd2d02a55c 100644 (file)
@@ -131,7 +131,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.7.4-no_ads.patch"
+       "${FILESDIR}/${PN}-4.6-no_ads.patch"
 )
 
 #CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"