dee1cf0cdf
Samba 4.1.x uses the waf build system which isn't very cross-compile friendly, and also some tests are formulated in a way that isn't cross-build friendly either by needing to run them. For this reason the samba4 build system includes a way to define answers for many of the tests, but this support isn't complete and some tests still want to be executed. Samba 4.1.x also requires a proper answers file for each architecture, and at the moment i've only tested for ARM and PowerPC so only those architectures are supported to begin with. To add support for another architecture basically copy one of the cache files to the proper name, enable it in Config.in and adjust endianess and all of the "size of" answers. I'm in the process of automating the sizeof and endianess answers within the samba build system to make them cross friendly to simplify the answers file to just one generic linux variant. The 3.6.x branch is still security supported for the forseeable future. I'm currently working with samba upstream to solve many of these issues but this will probably happen with the yet unreleased 4.2 branch only. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 3c16a171c008b584ed427988dde73c1d9a9de4ad Mon Sep 17 00:00:00 2001
|
|
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
Date: Mon, 20 Jan 2014 10:17:19 -0300
|
|
Subject: [PATCH 2/3] 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.
|
|
|
|
Status: sent, not yet upstream pending more testing.
|
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
---
|
|
source3/wscript | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/source3/wscript b/source3/wscript
|
|
index 501707b..2d0a62e 100644
|
|
--- a/source3/wscript
|
|
+++ b/source3/wscript
|
|
@@ -468,8 +468,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
|
|
|