samba4-0002-build-don-t-execute-statfs-and-f_fsid-checks.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. From 3c16a171c008b584ed427988dde73c1d9a9de4ad Mon Sep 17 00:00:00 2001
  2. From: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. Date: Mon, 20 Jan 2014 10:17:19 -0300
  4. Subject: [PATCH 2/3] build: don't execute statfs and f_fsid checks
  5. There's no need to execute the statfs and statfs.f_fsid checks, the
  6. return value is of no consequence since it's undefined in some
  7. platforms and prevents cross-compiling.
  8. Status: sent, not yet upstream pending more testing.
  9. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  10. ---
  11. source3/wscript | 3 +--
  12. 1 file changed, 1 insertion(+), 2 deletions(-)
  13. diff --git a/source3/wscript b/source3/wscript
  14. index 501707b..2d0a62e 100644
  15. --- a/source3/wscript
  16. +++ b/source3/wscript
  17. @@ -468,8 +468,7 @@ return acl_get_perm_np(permset_d, perm);
  18. conf.CHECK_CODE('struct statfs fsd; fsid_t fsid = fsd.f_fsid; return statfs(".", &fsd);',
  19. 'HAVE_STATFS_F_FSID',
  20. msg="vfs_fileid: checking for statfs() and struct statfs.f_fsid",
  21. - headers='sys/types.h sys/statfs.h',
  22. - execute=True)
  23. + headers='sys/types.h sys/statfs.h')
  24. if conf.CONFIG_SET('HAVE_FALLOCATE'):
  25. conf.CHECK_CODE('''
  26. --
  27. 1.8.3.2