summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/samba/samba-4.1.12/17-execute-prog-by-qemu.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-connectivity/samba/samba-4.1.12/17-execute-prog-by-qemu.patch')
-rw-r--r--meta-oe/recipes-connectivity/samba/samba-4.1.12/17-execute-prog-by-qemu.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/samba/samba-4.1.12/17-execute-prog-by-qemu.patch b/meta-oe/recipes-connectivity/samba/samba-4.1.12/17-execute-prog-by-qemu.patch
new file mode 100644
index 000000000..1a31e0d0e
--- /dev/null
+++ b/meta-oe/recipes-connectivity/samba/samba-4.1.12/17-execute-prog-by-qemu.patch
@@ -0,0 +1,22 @@
1samba: execute prog on target directly is impossible.
2
3Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
4
5diff -Nurp samba-4.1.12.orig/lib/ccan/wscript samba-4.1.12/lib/ccan/wscript
6--- samba-4.1.12.orig/lib/ccan/wscript 2013-06-13 18:21:02.000000000 +0900
7+++ samba-4.1.12/lib/ccan/wscript 2015-04-27 14:26:25.123000238 +0900
8@@ -127,10 +127,10 @@ def configure(conf):
9 # Only check for FILE_OFFSET_BITS=64 if off_t is normally small:
10 # use raw routines because wrappers include previous _GNU_SOURCE
11 # or _FILE_OFFSET_BITS defines.
12- conf.check(fragment="""#include <sys/types.h>
13- int main(void) { return !(sizeof(off_t) < 8); }""",
14- execute=True, msg='Checking for small off_t',
15- define_name='SMALL_OFF_T')
16+ conf.CHECK_CODE("""#include <sys/types.h>
17+ int main(void) { return !(sizeof(off_t) < 8); }""",
18+ link=True, execute=True, addmain=False, msg='Checking for small off_t',
19+ define='HAVE_SMALL_OFF_T')
20 # Unreliable return value above, hence use define.
21 if conf.CONFIG_SET('SMALL_OFF_T'):
22 conf.check(fragment="""#include <sys/types.h>