package/samba4: bump version to 4.14.2
PATCH v2 1/1 package/samba4: bump version to 4.14.2
Added patch to fix build error.
Removed patch which was applied upstream.
Added two options to samba4-cache.txt to fix cross build, values were taken from GnuTLS source:
https://gitlab.com/gnutls/gnutls/-/blob/3.6.15/lib/includes/gnutls/gnutls.h.in#L180
https://gitlab.com/gnutls/gnutls/-/blob/3.6.15/lib/includes/gnutls/gnutls.h.in#L341
host-perl is now mandatory, also host-perl-parse-yapp is needed.
Added option to fix build without dbus, this change needed a rework of the shared-modules configure option, due to this upstream commit:
https://gitlab.com/samba-team/devel/samba/-/commit/b6805d5e0bcf1716f87e84bcbb2fd8f93c38a8a3
---
v2: - updated patch 0005 following upstream comment
- added comment about new cache values (Yann)
- reworked with-shared-modules handling (Yann)
.../samba4/0005-dcesrv_core-fix-build.patch | 56 ++++++++++ ...-function-conflicts-with-glibc-nss-h.patch | 104 ------------------ package/samba4/samba4-cache.txt | 2 + package/samba4/samba4.hash | 4 +- package/samba4/samba4.mk | 14 ++- 5 files changed, 71 insertions(+), 109 deletions(-) create mode 100644 package/samba4/0005-dcesrv_core-fix-build.patch delete mode 100644 package/samba4/0005-nsswitch-nsstest-c-Avoid-nss-function-conflicts-with-glibc-nss-h.patch
package/samba4/0005-dcesrv_core-fix-build.patch new file +56 -0
@@ -0,0 +1,56 @@ +From 44bccdf7d158ae93ba9a5515038aac2a5ac4fd85 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls <[email protected]> +Date: Sat, 27 Mar 2021 17:17:34 +0100 +Subject: [PATCH] dcesrv_core: fix build +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Move include of system/network.h to avoid a build error: + +In file included from ../../lib/replace/system/network.h:35, + from ../../librpc/rpc/dcesrv_core.c:2658: +usr/include/unistd.h: At top level: +usr/include/unistd.h:675:16: error: conflicting types for ?geteuid? + 675 | extern __uid_t geteuid (void) __THROW; + +Patch sent upstream: +https://gitlab.com/samba-team/samba/-/merge_requests/1871 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + librpc/rpc/dcesrv_core.c | 11 +---------- + 1 file changed, 1 insertion(+), 10 deletions(-) + +diff --git a/librpc/rpc/dcesrv_core.c b/librpc/rpc/dcesrv_core.c +index 70e0245532e..e761329d157 100644 +--- a/librpc/rpc/dcesrv_core.c ++++ b/librpc/rpc/dcesrv_core.c +@@ -32,6 +32,7 @@ + #include "lib/tsocket/tsocket.h" + #include "librpc/gen_ndr/ndr_dcerpc.h" + #include "lib/util/tevent_ntstatus.h" ++#include "system/network.h" + + + #undef DBGC_CLASS +@@ -2633,16 +2634,6 @@ _PUBLIC_ void dcesrv_cleanup_broken_connections(struct dcesrv_context *dce_ctx) + } + } + +-/* We need this include to be able to compile on some plateforms +- * (ie. freebsd 7.2) as it seems that <sys/uio.h> is not included +- * correctly. +- * It has to be that deep because otherwise we have a conflict on +- * const struct dcesrv_interface declaration. +- * This is mostly due to socket_wrapper defining #define bind swrap_bind +- * which conflict with the bind used before. +- */ +-#include "system/network.h" +- + struct dcesrv_sock_reply_state { + struct dcesrv_connection *dce_conn; + struct dcesrv_call_state *call; +-- +2.29.2 +
package/samba4/0005-nsswitch-nsstest-c-Avoid-nss-function-conflicts-with-glibc-nss-h.patch deleted +0 -104
104 lines not on this page · raw message
package/samba4/samba4-cache.txt +2 -0
@@ -40,3 +40,5 @@ Checking value of SIGRTMIN: "34" Checking errno of iconv for illegal multibyte sequence: "0" checking for clnt_create(): OK Checking for a 64-bit host to support lmdb: NO +Checking value of GNUTLS_CIPHER_AES_128_CFB8: 29 +Checking value of GNUTLS_MAC_AES_CMAC_128: 203
package/samba4/samba4.hash +2 -2
@@ -1,4 +1,4 @@ # Locally calculated after checking pgp signature -# https://download.samba.org/pub/samba/stable/samba-4.11.17.tar.asc -sha256 15167da19922c7be210ecf8149b73abcb7c2be051de05b756f7f24e7ec9e5b04 samba-4.11.17.tar.gz +# https://download.samba.org/pub/samba/stable/samba-4.14.2.tar.asc +sha256 95651da478743f7cb407aec81287536c096e3e18bb4981dbe47ca70bf6181f96 samba-4.14.2.tar.gz sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING
package/samba4/samba4.mk +11 -3
@@ -4,7 +4,7 @@ # ################################################################################ -SAMBA4_VERSION = 4.11.17 +SAMBA4_VERSION = 4.14.2 SAMBA4_SITE = https://download.samba.org/pub/samba/stable SAMBA4_SOURCE = samba-$(SAMBA4_VERSION).tar.gz SAMBA4_INSTALL_STAGING = YES
@@ -13,7 +13,8 @@ SAMBA4_LICENSE_FILES = COPYING SAMBA4_CPE_ID_VENDOR = samba SAMBA4_CPE_ID_PRODUCT = samba SAMBA4_DEPENDENCIES = \ - host-e2fsprogs host-heimdal host-nfs-utils host-python3 \ + host-e2fsprogs host-heimdal host-nfs-utils \ + host-perl host-perl-parse-yapp host-python3 \ cmocka e2fsprogs gnutls popt zlib \ $(if $(BR2_PACKAGE_LIBAIO),libaio) \ $(if $(BR2_PACKAGE_LIBCAP),libcap) \
@@ -58,6 +59,9 @@ endif ifeq ($(BR2_PACKAGE_DBUS),y) SAMBA4_DEPENDENCIES += dbus +SAMBA4_SHARED_MODULES += vfs_snapper +else +SAMBA4_SHARED_MODULES += !vfs_snapper endif ifeq ($(BR2_PACKAGE_DBUS)$(BR2_PACKAGE_AVAHI_DAEMON),yy)
@@ -104,6 +108,7 @@ define SAMBA4_CONFIGURE_CMDS $(SAMBA4_PYTHON) \ python_LDFLAGS="" \ python_LIBDIR="" \ + PERL="$(HOST_DIR)/bin/perl" \ $(TARGET_CONFIGURE_OPTS) \ $(SAMBA4_CONF_ENV) \ ./buildtools/bin/waf configure \
@@ -125,6 +130,7 @@ define SAMBA4_CONFIGURE_CMDS --disable-glusterfs \ --with-cluster-support \ --bundled-libraries='!asn1_compile,!compile_et' \ + --with-shared-modules=$(subst $(space),$(comma),$(strip $(SAMBA4_SHARED_MODULES))) \ $(SAMBA4_CONF_OPTS) \ ) endef
@@ -148,10 +154,12 @@ SAMBA4_CONF_OPTS += --without-ad-dc --without-json endif ifeq ($(BR2_PACKAGE_SAMBA4_ADS),y) -SAMBA4_CONF_OPTS += --with-ads --with-ldap --with-shared-modules=idmap_ad +SAMBA4_CONF_OPTS += --with-ads --with-ldap SAMBA4_DEPENDENCIES += openldap +SAMBA4_SHARED_MODULES += idmap_ad else SAMBA4_CONF_OPTS += --without-ads --without-ldap +SAMBA4_SHARED_MODULES += !idmap_ad endif ifeq ($(BR2_PACKAGE_SAMBA4_SMBTORTURE),)
Signature · 1 line
2.29.2
Thomas Petazzoni
AppliedPATCH v2 1/1 package/samba4: bump version to 4.14.2
Quoted 14 lines · On Sun, 28 Mar 2021 11:45:54 +0200 Bernd Kuhls <[email protected]> wrote:
Added patch to fix build error.
Removed patch which was applied upstream.Added two options to samba4-cache.txt to fix cross build, values were taken from GnuTLS source:
https://gitlab.com/gnutls/gnutls/-/blob/3.6.15/lib/includes/gnutls/gnutls.h.in#L180
https://gitlab.com/gnutls/gnutls/-/blob/3.6.15/lib/includes/gnutls/gnutls.h.in#L341host-perl is now mandatory, also host-perl-parse-yapp is needed.
Added option to fix build without dbus, this change needed a rework of the shared-modules configure option, due to this upstream commit:
https://gitlab.com/samba-team/devel/samba/-/commit/b6805d5e0bcf1716f87e84bcbb2fd8f93c38a8a3
Quoted 5 lines
Signed-off-by Bernd Kuhls <[email protected]>---
v2: - updated patch 0005 following upstream comment
- added comment about new cache values (Yann)
- reworked with-shared-modules handling (Yann)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 1/1 package/samba4: bump version to 4.14.2
In reply to Bernd KuhlsQuoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Added patch to fix build error.
Removed patch which was applied upstream.Added two options to samba4-cache.txt to fix cross build, values were taken from GnuTLS source:
https://gitlab.com/gnutls/gnutls/-/blob/3.6.15/lib/includes/gnutls/gnutls.h.in#L180
https://gitlab.com/gnutls/gnutls/-/blob/3.6.15/lib/includes/gnutls/gnutls.h.in#L341
Quoted 7 lines
host-perl is now mandatory, also host-perl-parse-yapp is needed.
Added option to fix build without dbus, this change needed a rework of the shared-modules configure option, due to this upstream commit:
https://gitlab.com/samba-team/devel/samba/-/commit/b6805d5e0bcf1716f87e84bcbb2fd8f93c38a8a3Signed-off-by Bernd Kuhls <[email protected]>
samba 4.14.2 is a security bump, and the 4.11.x series seems to be EOL :/
For backporting it would have been nicer to only move to 4.12.x first, as the 4.11..4.14 changes look a bit scary.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 1/1 package/samba4: bump version to 4.14.2
Quoted 17 lines
Quoted 16 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
"Peter" == Peter Korsgaard <[email protected]> writes:
"Bernd" == Bernd Kuhls <[email protected]> writes:
Added patch to fix build error.
Removed patch which was applied upstream.Added two options to samba4-cache.txt to fix cross build, values were taken from GnuTLS source:
https://gitlab.com/gnutls/gnutls/-/blob/3.6.15/lib/includes/gnutls/gnutls.h.in#L180
https://gitlab.com/gnutls/gnutls/-/blob/3.6.15/lib/includes/gnutls/gnutls.h.in#L341host-perl is now mandatory, also host-perl-parse-yapp is needed.
Added option to fix build without dbus, this change needed a rework of the shared-modules configure option, due to this upstream commit:
https://gitlab.com/samba-team/devel/samba/-/commit/b6805d5e0bcf1716f87e84bcbb2fd8f93c38a8a3
Quoted 7 lines
Quoted 1 line
Signed-off-by Bernd Kuhls <[email protected]>samba 4.14.2 is a security bump, and the 4.11.x series seems to be EOL :/
For backporting it would have been nicer to only move to 4.12.x first, as the 4.11..4.14 changes look a bit scary.
I applied it anyway to 2021.02.x after looking at the
https://wiki.samba.org/index.php/Samba_Release_Planning. 4.12.x will go EOL in September, so we will most likely need to move to 4.13 / 4.14 anyway.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 1/1 package/samba4: bump version to 4.14.2
In reply to Bernd KuhlsQuoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Added patch to fix build error.
Removed patch which was applied upstream.Added two options to samba4-cache.txt to fix cross build, values were taken from GnuTLS source:
https://gitlab.com/gnutls/gnutls/-/blob/3.6.15/lib/includes/gnutls/gnutls.h.in#L180
https://gitlab.com/gnutls/gnutls/-/blob/3.6.15/lib/includes/gnutls/gnutls.h.in#L341host-perl is now mandatory, also host-perl-parse-yapp is needed.
Added option to fix build without dbus, this change needed a rework of the shared-modules configure option, due to this upstream commit:
https://gitlab.com/samba-team/devel/samba/-/commit/b6805d5e0bcf1716f87e84bcbb2fd8f93c38a8a3
Quoted 5 lines
Signed-off-by Bernd Kuhls <[email protected]>---
v2: - updated patch 0005 following upstream comment
- added comment about new cache values (Yann)
- reworked with-shared-modules handling (Yann)
Committed to 2021.02.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard