samba4: update to upstream patches
PATCH 1/1 samba4: update to upstream patches
Update the package to use patches that have been applied upstream and update their status comment accordingly.
f_fsid checks have been fixed via upstream patch that allows the cache to work properly on the result.
Builtin heimdal tools can be worked around via the --bundled-libraries option to disable those components (even if they are not libraries it can be done that way).
---
...-0001-build-don-t-execute-tests-summary.c.patch | 2 +-
...a4-0002-Minor-typo-fix-in-source3-wscript.patch | 35 ++++++++++++++++++
...ld-don-t-execute-statfs-and-f_fsid-checks.patch | 31 ----------------
...003-build-find-FILE_OFFSET_BITS-via-array.patch | 2 +-
...uild-allow-some-python-variable-overrides.patch | 2 +-
...-0005-build-find-blkcnt_t-size-via-array.patch} | 2 ++
...amba4-0005-builtin-heimdal-external-tools.patch | 42 ----------------------
...a4-0006-build-unify-and-fix-endian-tests.patch} | 2 ++
...samba-CHECK_SIZEOF-cross-compile-friendl.patch} | 2 ++
...ba4-0008-build-tweak-SIZEOF-utmp-ut_line.patch} | 2 ++
package/samba4/samba4-cache.txt | 1 +
package/samba4/samba4.mk | 1 +
12 files changed, 48 insertions(+), 76 deletions(-)
create mode 100644 package/samba4/samba4-0002-Minor-typo-fix-in-source3-wscript.patch
delete mode 100644 package/samba4/samba4-0002-build-don-t-execute-statfs-and-f_fsid-checks.patch
rename package/samba4/{samba4-0007-build-find-blkcnt_t-size-via-array.patch => samba4-0005-build-find-blkcnt_t-size-via-array.patch} (99%)
delete mode 100644 package/samba4/samba4-0005-builtin-heimdal-external-tools.patch
rename package/samba4/{samba4-0008-build-unify-and-fix-endian-tests.patch => samba4-0006-build-unify-and-fix-endian-tests.patch} (99%)
rename package/samba4/{samba4-0009-build-make-wafsamba-CHECK_SIZEOF-cross-compile-friendl.patch => samba4-0007-build-make-wafsamba-CHECK_SIZEOF-cross-compile-friendl.patch} (99%)
rename package/samba4/{samba4-0010-build-tweak-SIZEOF-utmp-ut_line.patch => samba4-0008-build-tweak-SIZEOF-utmp-ut_line.patch} (98%)package/samba4/samba4-0001-build-don-t-execute-tests-summary.c.patch +1 -1
@@ -7,7 +7,7 @@ tests/summary.c will never be able to be executed when cross compiling. Use #error and #warning directives to fail or warn accordingly when compiling it. -Status: upstream for next branch. +Status: Upstream. Signed-off-by: Gustavo Zacarias <[email protected]> ---
package/samba4/samba4-0002-Minor-typo-fix-in-source3-wscript.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 8dc24d4006a2e936baf73e116129d2b0a5d71ed7 Mon Sep 17 00:00:00 2001 +From: "Jose A. Rivera" <[email protected]> +Date: Mon, 5 May 2014 07:29:57 -0500 +Subject: [PATCH] Minor typo fix in source3/wscript. + +Signed-off-by: Jose A. Rivera <[email protected]> +Reviewed-by: Volker Lendecke <[email protected]> +Reviewed-by: Jeremy Allison <[email protected]> + +Autobuild-User(master): Jeremy Allison <[email protected]> +Autobuild-Date(master): Mon May 5 22:41:19 CEST 2014 on sn-devel-104 + +Status: Upstream. + +Signed-off-by: Gustavo Zacarias <[email protected]> +--- + source3/wscript | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/source3/wscript b/source3/wscript +index 4fe49fa..8cbd9bc 100644 +--- a/source3/wscript ++++ b/source3/wscript +@@ -475,7 +475,7 @@ return acl_get_perm_np(permset_d, perm); + + conf.CHECK_CODE('struct statfs fsd; fsid_t fsid = fsd.f_fsid; return statfs(".", &fsd);', + 'HAVE_STATFS_F_FSID', +- msg="vfs_fileid: checking for statfs() and struct statfs.f_fsid", ++ msg="vfs_fileid checking for statfs() and struct statfs.f_fsid", + headers='sys/types.h sys/statfs.h', + execute=True) + +-- +1.8.5.5 +
package/samba4/samba4-0002-build-don-t-execute-statfs-and-f_fsid-checks.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From 5e0bafd6504916dd7de5b1ae90e7253d11498435 Mon Sep 17 00:00:00 2001 -From: Gustavo Zacarias <[email protected]> -Date: Mon, 20 Jan 2014 10:17:19 -0300 -Subject: [PATCH 1/5] build: don't execute statfs and f_fsid checks - -There's no need to execute the statfs and statfs.f_fsid checks, the -return value is of no consequence since it's undefined in some -platforms and prevents cross-compiling. - -Signed-off-by: Gustavo Zacarias <[email protected]> ---- - source3/wscript | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/source3/wscript b/source3/wscript -index 4fe49fa..e81a47b 100644 ---- a/source3/wscript -+++ b/source3/wscript -@@ -476,8 +476,7 @@ return acl_get_perm_np(permset_d, perm); - conf.CHECK_CODE('struct statfs fsd; fsid_t fsid = fsd.f_fsid; return statfs(".", &fsd);', - 'HAVE_STATFS_F_FSID', - msg="vfs_fileid: checking for statfs() and struct statfs.f_fsid", -- headers='sys/types.h sys/statfs.h', -- execute=True) -+ headers='sys/types.h sys/statfs.h') - - if conf.CONFIG_SET('HAVE_FALLOCATE'): - conf.CHECK_CODE(''' --- -1.8.3.2 -
package/samba4/samba4-0003-build-find-FILE_OFFSET_BITS-via-array.patch +1 -1
@@ -17,7 +17,7 @@ array. If it's false it gives array[(-1 * 1)] thus failing with a negative-sized array. -Status: upstream for next branch. +Status: Upstream. Signed-off-by: Gustavo Zacarias <[email protected]> ---
package/samba4/samba4-0004-build-allow-some-python-variable-overrides.patch +1 -1
@@ -11,7 +11,7 @@ Allow some of these variables to be redefined via environment variables in order to aid cross-compiling. According to testing python_LDFLAGS and python_LIBDIR should be enough. -Status: upstream for next branch. +Status: Upstream. Signed-off-by: Gustavo Zacarias <[email protected]> ---
package/samba4/samba4-0005-build-find-blkcnt_t-size-via-array.patch renamed from package/samba4/samba4-0007-build-find-blkcnt_t-size-via-array.patch +2 -0
@@ -7,6 +7,8 @@ Using the same trick as commit 0d9bb86293c9d39298786df095c73a6251b08b7e find blkcnt_t size via an array so that it can be determined via build rather than running it. +Status: Upstream. + Signed-off-by: Gustavo Zacarias <[email protected]> --- source3/wscript | 22 ++++++++++++----------
package/samba4/samba4-0005-builtin-heimdal-external-tools.patch deleted +0 -42
42 lines not on this page · raw message
package/samba4/samba4-0006-build-unify-and-fix-endian-tests.patch renamed from package/samba4/samba4-0008-build-unify-and-fix-endian-tests.patch +2 -0
@@ -10,6 +10,8 @@ of main scope since that will fail. And keep the WORDS_BIGENDIAN, HAVE_LITTLE_ENDIAN and HAVE_BIG_ENDIAN defines separate because of different codebases. +Status: Upstream. + Signed-off-by: Gustavo Zacarias <[email protected]> --- buildtools/wafsamba/wscript | 65 ++++++++++++++++++++++++++++++++++++++++++---
package/samba4/samba4-0007-build-make-wafsamba-CHECK_SIZEOF-cross-compile-friendl.patch renamed from package/samba4/samba4-0009-build-make-wafsamba-CHECK_SIZEOF-cross-compile-friendl.patch +2 -0
@@ -12,6 +12,8 @@ according to each test. The default is True since normally it's expected to find a proper result and should error out if not. +Status: Upstream. + Signed-off-by: Gustavo Zacarias <[email protected]> --- buildtools/wafsamba/samba_autoconf.py | 28 ++++++++++++++++------------
package/samba4/samba4-0008-build-tweak-SIZEOF-utmp-ut_line.patch renamed from package/samba4/samba4-0010-build-tweak-SIZEOF-utmp-ut_line.patch +2 -0
@@ -8,6 +8,8 @@ it's used to find out if utmp support should be enabled. This is necessary with the introduction of the cross-compile aware CHECK_SIZEOF. +Status: Upstream. + Signed-off-by: Gustavo Zacarias <[email protected]> --- source3/wscript | 2 +-
package/samba4/samba4-cache.txt +1 -0
@@ -27,6 +27,7 @@ Checking for the maximum value of the 'time_t' type: OK Checking whether the realpath function allows a NULL argument: OK Checking whether POSIX capabilities are available: OK Checking for ftruncate extend: OK +vfs_fileid checking for statfs() and struct statfs.f_fsid: OK getcwd takes a NULL argument: OK Checking uname sysname type: "Linux" Checking uname release type: "3.0.0"
package/samba4/samba4.mk +1 -0
@@ -88,6 +88,7 @@ define SAMBA4_CONFIGURE_CMDS --without-ldap \ --without-cluster-support \ --without-ads \ + --bundled-libraries='!asn1_compile,!compile_et' \ $(SAMBA4_CONF_OPT) \ ) endef
Signature · 1 line
1.8.5.5
PATCH 1/1 samba4: update to upstream patches
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Update the package to use patches that have been applied upstream and update their status comment accordingly.
Quoted 8 lines
f_fsidchecks have been fixed via upstream patch that allows the cache to work properly on the result.Builtin heimdal tools can be worked around via the --bundled-libraries option to disable those components (even if they are not libraries it can be done that way).
Signed-off-by Gustavo Zacarias <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard