package/samba4: drop unneeded second patch
PATCH 1/2 package/samba4: drop unneeded second patch
This patch is not needed since version 4.9.0 and
https://github.com/samba-team/samba/commit/859698d29b547217356851094ed8188236e717b6
---
...ion-of-Samba-4.7.4-with-disabled-ADS.patch | 41 -------------------
...on-64bit-platforms-by-including-std.patch} | 0
...build-of-manpages-and-documentation.patch} | 0
...o.c-include-stdint.h-before-cmoka.h.patch} | 0
4 files changed, 41 deletions(-)
delete mode 100644 package/samba4/0002-Fix-compilation-of-Samba-4.7.4-with-disabled-ADS.patch
rename package/samba4/{0003-Fix-uClibc-build-on-64bit-platforms-by-including-std.patch => 0002-Fix-uClibc-build-on-64bit-platforms-by-including-std.patch} (100%)
rename package/samba4/{0004-Disable-build-of-manpages-and-documentation.patch => 0003-Disable-build-of-manpages-and-documentation.patch} (100%)
rename package/samba4/{0005-test_regfio.c-include-stdint.h-before-cmoka.h.patch => 0004-test_regfio.c-include-stdint.h-before-cmoka.h.patch} (100%)package/samba4/0002-Fix-compilation-of-Samba-4.7.4-with-disabled-ADS.patch deleted +0 -41
@@ -1,41 +0,0 @@ -From da2f2cf8e7a1dfcb661b707e4649cec1e8a0e79c Mon Sep 17 00:00:00 2001 -From: Bernd Kuhls <[email protected]> -Date: Thu, 9 Aug 2018 10:03:06 +0200 -Subject: [PATCH] Fix compilation of Samba 4.7.4 with disabled ADS - -Downloaded from upstream mailinglist -https://lists.samba.org/archive/samba-technical/2017-December/124629.html - -Patch originates from FreeBSD: -https://svnweb.freebsd.org/ports/head/net/samba47/files/patch-source3__libads__kerberos_keytab.c?revision=457119&view=markup - -Signed-off-by: Bernd Kuhls <[email protected]> ---- - source3/libads/kerberos_keytab.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c -index 37ac7ba985e..71250962090 100644 ---- 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 @@ out: - return ret; - } - -+#ifdef HAVE_ADS -+ - /********************************************************************** - Adds a single service principal, i.e. 'host' to the system keytab - ***********************************************************************/ --- -2.14.4 -
package/samba4/0002-Fix-uClibc-build-on-64bit-platforms-by-including-std.patch renamed from package/samba4/0003-Fix-uClibc-build-on-64bit-platforms-by-including-std.patch +0 -0
package/samba4/0003-Disable-build-of-manpages-and-documentation.patch renamed from package/samba4/0004-Disable-build-of-manpages-and-documentation.patch +0 -0
package/samba4/0004-test_regfio.c-include-stdint.h-before-cmoka.h.patch renamed from package/samba4/0005-test_regfio.c-include-stdint.h-before-cmoka.h.patch +0 -0
Signature · 1 line
2.20.1
PATCH 2/2 package/samba4: drop third patch
Drop third patch which is not upstreamable and set XSLTPROC to False instead to disable documentation
---
...-build-of-manpages-and-documentation.patch | 123 ------------------
...o.c-include-stdint.h-before-cmoka.h.patch} | 0
package/samba4/samba4.mk | 3 +-
3 files changed, 2 insertions(+), 124 deletions(-)
delete mode 100644 package/samba4/0003-Disable-build-of-manpages-and-documentation.patch
rename package/samba4/{0004-test_regfio.c-include-stdint.h-before-cmoka.h.patch => 0003-test_regfio.c-include-stdint.h-before-cmoka.h.patch} (100%)package/samba4/0003-Disable-build-of-manpages-and-documentation.patch deleted +0 -123
@@ -1,123 +0,0 @@ -From 3cd608170b99492bdd5fe3b7b8e7db61af199845 Mon Sep 17 00:00:00 2001 -From: Bernd Kuhls <[email protected]> -Date: Thu, 9 Aug 2018 09:59:06 +0200 -Subject: [PATCH] Disable build of manpages and documentation - -This patch fixes a bug described in an upstream bug report -https://bugzilla.samba.org/show_bug.cgi?id=9515 -which was closed as WONTFIX by disabling the build of manpages and -documentation. - -If installed on the host, samba4 uses the docbook-xsl package to build -parts of the documentation. This package is broken, on Debian for -example the bug reported to samba4 was fixed in the docbook-xsl package: -https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765567 - -Since we do not provide a host version of docbook-xsl we need to disable -the build of manpages and documentation. - -Patch was downloaded from -https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/network/samba/patches/samba-950-no-man.patch - -[Bernd: rebased for samba-4.8.5] -Signed-off-by: Bernd Kuhls <[email protected]> ---- - buildtools/wafsamba/wafsamba.py | 10 ++++----- - docs-xml/wscript_build | 40 ++++++++++++++++----------------- - source4/scripting/wscript_build | 4 ++-- - 3 files changed, 27 insertions(+), 27 deletions(-) - -diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py -index 4bb19d070e2..a255d841111 100644 ---- a/buildtools/wafsamba/wafsamba.py -+++ b/buildtools/wafsamba/wafsamba.py -@@ -335,9 +335,9 @@ def SAMBA_LIBRARY(bld, libname, source, - else: - bld.PKG_CONFIG_FILES(pc_files, vnum=vnum) - -- if (manpages is not None and 'XSLTPROC_MANPAGES' in bld.env and -- bld.env['XSLTPROC_MANPAGES']): -- bld.MANPAGES(manpages, install) -+# if (manpages is not None and 'XSLTPROC_MANPAGES' in bld.env and -+# bld.env['XSLTPROC_MANPAGES']): -+# bld.MANPAGES(manpages, install) - - - Build.BuildContext.SAMBA_LIBRARY = SAMBA_LIBRARY -@@ -442,8 +442,8 @@ def SAMBA_BINARY(bld, binname, source, - samba_ldflags = pie_ldflags - ) - -- if manpages is not None and 'XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']: -- bld.MANPAGES(manpages, install) -+# if manpages is not None and 'XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']: -+# bld.MANPAGES(manpages, install) - - Build.BuildContext.SAMBA_BINARY = SAMBA_BINARY - -diff --git a/docs-xml/wscript_build b/docs-xml/wscript_build -index ec5d28fc62a..f81c125bcd4 100644 ---- a/docs-xml/wscript_build -+++ b/docs-xml/wscript_build -@@ -148,23 +148,23 @@ bld.SAMBA_GENERATOR(parameter_all, - rule=smbdotconf_generate_parameter_list, - dep_vars=bld.dynconfig_varnames()) - --def SMBDOTCONF_MANPAGE(bld, target): -- ''' assemble and build smb.conf.5 manual page''' -- bld.SAMBAMANPAGES(target, parameter_all) -- --if ('XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']): -- -- SMBDOTCONF_MANPAGE(bld, 'manpages/smb.conf.5') -- bld.SAMBAMANPAGES(manpages) -- -- if bld.CONFIG_SET('WITH_PAM_MODULES') and bld.CONFIG_SET('HAVE_PAM_START'): -- bld.SAMBAMANPAGES(pam_winbind_manpages) -- -- if bld.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'): -- bld.SAMBAMANPAGES(krb5_locator_manpages) -- -- if bld.CONFIG_SET('HAVE_KRB5_LOCALAUTH_PLUGIN_H'): -- bld.SAMBAMANPAGES(krb5_localauth_manpages) -- -- if bld.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'): -- bld.SAMBAMANPAGES('manpages/vfs_zfsacl.8') -+#def SMBDOTCONF_MANPAGE(bld, target): -+# ''' assemble and build smb.conf.5 manual page''' -+# bld.SAMBAMANPAGES(target, parameter_all) -+# -+#if ('XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']): -+# -+# SMBDOTCONF_MANPAGE(bld, 'manpages/smb.conf.5') -+# bld.SAMBAMANPAGES(manpages) -+# -+# if bld.CONFIG_SET('WITH_PAM_MODULES') and bld.CONFIG_SET('HAVE_PAM_START'): -+# bld.SAMBAMANPAGES(pam_winbind_manpages) -+# -+# if bld.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'): -+# bld.SAMBAMANPAGES(krb5_locator_manpages) -+# -+# if bld.CONFIG_SET('HAVE_KRB5_LOCALAUTH_PLUGIN_H'): -+# bld.SAMBAMANPAGES(krb5_localauth_manpages) -+# -+# if bld.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'): -+# bld.SAMBAMANPAGES('manpages/vfs_zfsacl.8') -diff --git a/source4/scripting/wscript_build b/source4/scripting/wscript_build -index 2f53cce12b7..9841ae0a116 100644 ---- a/source4/scripting/wscript_build -+++ b/source4/scripting/wscript_build -@@ -12,8 +12,8 @@ if sbin_files: - bld.INSTALL_FILES('${SBINDIR}', - sbin_files, - chmod=MODE_755, python_fixup=True, flat=True) -- if 'XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']: -- bld.MANPAGES(man_files, True) -+# if 'XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']: -+# bld.MANPAGES(man_files, True) - - if bld.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'): - bld.INSTALL_FILES('${BINDIR}', --- -2.18.0 -
package/samba4/0003-test_regfio.c-include-stdint.h-before-cmoka.h.patch renamed from package/samba4/0004-test_regfio.c-include-stdint.h-before-cmoka.h.patch +0 -0
package/samba4/samba4.mk +2 -1
@@ -21,7 +21,8 @@ SAMBA4_CFLAGS = $(TARGET_CFLAGS) SAMBA4_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS) SAMBA4_CONF_ENV = \ CFLAGS="$(SAMBA4_CFLAGS)" \ - LDFLAGS="$(SAMBA4_LDFLAGS)" + LDFLAGS="$(SAMBA4_LDFLAGS)" \ + XSLTPROC="False" ifeq ($(BR2_PACKAGE_LIBTIRPC),y) SAMBA4_CFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`
Signature · 1 line
2.20.1
PATCH 2/2 package/samba4: drop third patch
Hi Fabrice,
package/samba4/samba4.mk SAMBA4_CFLAGS = $(TARGET_CFLAGS) · line 25
Quoted 1 line · Fabrice Fontaine
package/samba4/samba4.mk +1
-0+ XSLTPROC="False"
I don't understand why you set this to False instead of false. AFAICS, this
variable only gets used as an executable to run, it doesn't get evaluated as a python expression.
Regards,
Arnout
PATCH 2/2 package/samba4: drop third patch
Hi Arnout,
Le lun. 10 juin 2019 ? 00:39, Arnout Vandecappelle <[email protected]> a ?crit :
Quoted 9 lines
Hi Fabrice,
Quoted 1 line · Fabrice Fontaine
+ XSLTPROC="False"
I don't understand why you set this to False instead of false. AFAICS, this
variable only gets used as an executable to run, it doesn't get evaluated as a python expression.
OK, I'll double check that it builds fine with false and send a v2.
Quoted 3 lines
Regards,
Arnout
Best Regards,
Fabrice
Arnout Vandecappelle
AppliedPATCH 1/2 package/samba4: drop unneeded second patch
In reply to Fabrice FontaineQuoted 4 lines · Fabrice Fontaine
This patch is not needed since version 4.9.0 and
https://github.com/samba-team/samba/commit/859698d29b547217356851094ed8188236e717b6Signed-off-by Fabrice Fontaine <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 71 lines
--- ...ion-of-Samba-4.7.4-with-disabled-ADS.patch | 41 ------------------- ...on-64bit-platforms-by-including-std.patch} | 0 ...build-of-manpages-and-documentation.patch} | 0 ...o.c-include-stdint.h-before-cmoka.h.patch} | 0 4 files changed, 41 deletions(-) delete mode 100644 package/samba4/0002-Fix-compilation-of-Samba-4.7.4-with-disabled-ADS.patch rename package/samba4/{0003-Fix-uClibc-build-on-64bit-platforms-by-including-std.patch => 0002-Fix-uClibc-build-on-64bit-platforms-by-including-std.patch} (100%) rename package/samba4/{0004-Disable-build-of-manpages-and-documentation.patch => 0003-Disable-build-of-manpages-and-documentation.patch} (100%) rename package/samba4/{0005-test_regfio.c-include-stdint.h-before-cmoka.h.patch => 0004-test_regfio.c-include-stdint.h-before-cmoka.h.patch} (100%)package/samba4/0002-Fix-compilation-of-Samba-4.7.4-with-disabled-ADS.patch deleted +0
-41@@ -1,41 +0,0 @@ -From da2f2cf8e7a1dfcb661b707e4649cec1e8a0e79c Mon Sep 17 00:00:00 2001 -From: Bernd Kuhls <[email protected]> -Date: Thu, 9 Aug 2018 10:03:06 +0200 -Subject: [PATCH] Fix compilation of Samba 4.7.4 with disabled ADS - -Downloaded from upstream mailinglist -https://lists.samba.org/archive/samba-technical/2017-December/124629.html - -Patch originates from FreeBSD: -https://svnweb.freebsd.org/ports/head/net/samba47/files/patch-source3__libads__kerberos_keytab.c?revision=457119&view=markup - -Signed-off-by: Bernd Kuhls <[email protected]> ---- - source3/libads/kerberos_keytab.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c -index 37ac7ba985e..71250962090 100644 ---- 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 @@ out: - return ret; - } - -+#ifdef HAVE_ADS -+ - /********************************************************************** - Adds a single service principal, i.e. 'host' to the system keytab - ***********************************************************************/ --- -2.14.4 -package/samba4/0002-Fix-uClibc-build-on-64bit-platforms-by-including-std.patch renamed from package/samba4/0003-Fix-uClibc-build-on-64bit-platforms-by-including-std.patch +0
-0package/samba4/0003-Disable-build-of-manpages-and-documentation.patch renamed from package/samba4/0004-Disable-build-of-manpages-and-documentation.patch +0
-0package/samba4/0004-test_regfio.c-include-stdint.h-before-cmoka.h.patch renamed from package/samba4/0005-test_regfio.c-include-stdint.h-before-cmoka.h.patch +0
-0
PATCH 1/2 package/samba4: drop unneeded second patch
In reply to Fabrice FontaineQuoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
This patch is not needed since version 4.9.0 and
https://github.com/samba-team/samba/commit/859698d29b547217356851094ed8188236e717b6Signed-off-by Fabrice Fontaine <[email protected]>
Committed to 2019.02.x and 2019.05.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard