|
@@ -1,16 +1,25 @@
|
|
|
|
+From fc0304ba92ec7ae9a2f75fbc31d97fee39d19665 Mon Sep 17 00:00:00 2001
|
|
|
|
+From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
|
+Date: Wed, 7 Sep 2016 23:03:43 -0300
|
|
|
|
+Subject: [PATCH] libreplace: disable libbsd support
|
|
|
|
+
|
|
Disable libbsd support, samba4 uses a global config.h for its own
|
|
Disable libbsd support, samba4 uses a global config.h for its own
|
|
codebase and that of heimdal (when building with builtin).
|
|
codebase and that of heimdal (when building with builtin).
|
|
-This causes redefinition conflicts for link(2) when both standard unistd.h
|
|
|
|
-and bsd/unistd.h get included.
|
|
|
|
|
|
+This causes redefinition conflicts for link(2) when both standard
|
|
|
|
+unistd.h and bsd/unistd.h get included.
|
|
|
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
|
+---
|
|
|
|
+ lib/replace/wscript | 12 ------------
|
|
|
|
+ 1 file changed, 12 deletions(-)
|
|
|
|
|
|
-diff -Nura samba-4.2.0rc1.orig/lib/replace/wscript samba-4.2.0rc1/lib/replace/wscript
|
|
|
|
---- samba-4.2.0rc1.orig/lib/replace/wscript 2014-10-01 06:17:32.000000000 -0300
|
|
|
|
-+++ samba-4.2.0rc1/lib/replace/wscript 2014-10-01 07:21:13.559498987 -0300
|
|
|
|
-@@ -282,15 +282,6 @@
|
|
|
|
- conf.CHECK_FUNCS('strtouq strtoll __strtoll strtoq memalign posix_memalign')
|
|
|
|
- conf.CHECK_FUNCS('prctl')
|
|
|
|
|
|
+diff --git a/lib/replace/wscript b/lib/replace/wscript
|
|
|
|
+index 1dfd902..456be9b 100644
|
|
|
|
+--- a/lib/replace/wscript
|
|
|
|
++++ b/lib/replace/wscript
|
|
|
|
+@@ -248,18 +248,6 @@ def configure(conf):
|
|
|
|
+
|
|
|
|
+ conf.CHECK_FUNCS('prctl dirname basename')
|
|
|
|
|
|
- # libbsd on some platforms provides strlcpy and strlcat
|
|
- # libbsd on some platforms provides strlcpy and strlcat
|
|
- if not conf.CHECK_FUNCS('strlcpy strlcat'):
|
|
- if not conf.CHECK_FUNCS('strlcpy strlcat'):
|
|
@@ -20,7 +29,13 @@ diff -Nura samba-4.2.0rc1.orig/lib/replace/wscript samba-4.2.0rc1/lib/replace/ws
|
|
- conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
|
|
- conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
|
|
- if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
|
|
- if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
|
|
- conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h')
|
|
- conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h')
|
|
|
|
+-
|
|
|
|
+- if not conf.CHECK_FUNCS('closefrom'):
|
|
|
|
+- conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
|
|
-
|
|
-
|
|
conf.CHECK_CODE('''
|
|
conf.CHECK_CODE('''
|
|
struct ucred cred;
|
|
struct ucred cred;
|
|
socklen_t cred_len;
|
|
socklen_t cred_len;
|
|
|
|
+--
|
|
|
|
+2.7.3
|
|
|
|
+
|