summaryrefslogtreecommitdiffstats
path: root/package/samba4/samba4-0002-build-don-t-execute-statfs-and-f_fsid-checks.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/samba4/samba4-0002-build-don-t-execute-statfs-and-f_fsid-checks.patch')
-rw-r--r--package/samba4/samba4-0002-build-don-t-execute-statfs-and-f_fsid-checks.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/samba4/samba4-0002-build-don-t-execute-statfs-and-f_fsid-checks.patch b/package/samba4/samba4-0002-build-don-t-execute-statfs-and-f_fsid-checks.patch
new file mode 100644
index 0000000000..ec46650041
--- /dev/null
+++ b/package/samba4/samba4-0002-build-don-t-execute-statfs-and-f_fsid-checks.patch
@@ -0,0 +1,33 @@
+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
+
OpenPOWER on IntegriCloud