diff options
author | Ming Liu <ming.liu@windriver.com> | 2014-01-22 15:57:01 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-02-01 08:51:04 +0100 |
commit | 79a0ab967000360889381d5d5e2c32d7073e2741 (patch) | |
tree | 67fd84ffe077145eeaa290df2ea62fd888b01407 | |
parent | fb6ed3dfe6596aa9f511563d0c7274cac4274236 (diff) | |
download | meta-openembedded-79a0ab967000360889381d5d5e2c32d7073e2741.tar.gz |
samba: add PACKAGECONFIG for libunwind
Also add --enable-libunwind option for samba source3, otherwise, it will
be auto-detected from sysroot, which will lead implicit results.
Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-oe/recipes-connectivity/samba/samba-3.6.8/configure-libunwind.patch | 82 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/samba/samba_3.6.8.bb | 4 |
2 files changed, 86 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/samba/samba-3.6.8/configure-libunwind.patch b/meta-oe/recipes-connectivity/samba/samba-3.6.8/configure-libunwind.patch new file mode 100644 index 0000000000..9a2cb00eba --- /dev/null +++ b/meta-oe/recipes-connectivity/samba/samba-3.6.8/configure-libunwind.patch | |||
@@ -0,0 +1,82 @@ | |||
1 | samba: add --enable-libunwind option | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | This let the end user explicitly enable/disable libunwind support. | ||
6 | --- | ||
7 | configure | 28 ++++++++++++++++++++++++++-- | ||
8 | 1 file changed, 26 insertions(+), 2 deletions(-) | ||
9 | |||
10 | diff -urpN a/source3/configure b/source3/configure | ||
11 | --- a/source3/configure | ||
12 | +++ b/source3/configure | ||
13 | @@ -1007,6 +1007,7 @@ with_included_iniparser | ||
14 | with_static_modules | ||
15 | with_shared_modules | ||
16 | enable_dmalloc | ||
17 | +enable_libunwind | ||
18 | ' | ||
19 | ac_precious_vars='build_alias | ||
20 | host_alias | ||
21 | @@ -1670,6 +1671,7 @@ Optional Features: | ||
22 | --enable-avahi Enable Avahi support (default=auto) | ||
23 | --enable-pthreadpool Enable pthreads pool helper support (default=no) | ||
24 | --enable-dmalloc Enable heap debugging [default=no] | ||
25 | + --enable-libunwind Enable libunwind support if available (default=no) | ||
26 | |||
27 | Optional Packages: | ||
28 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
29 | @@ -16458,7 +16460,7 @@ done | ||
30 | |||
31 | |||
32 | # Find a method of generating a stack trace | ||
33 | -for ac_header in execinfo.h libexc.h libunwind.h | ||
34 | +for ac_header in execinfo.h libexc.h | ||
35 | do : | ||
36 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
37 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
38 | @@ -16684,6 +16686,13 @@ fi | ||
39 | |||
40 | LIBS="$save_LIBS" | ||
41 | |||
42 | +# Check whether --enable-libunwind was given. | ||
43 | +if test "${enable_libunwind+set}" = set; then : | ||
44 | + enableval=$enable_libunwind; | ||
45 | +fi | ||
46 | + | ||
47 | +if test "x$enable_libunwind" != xno | ||
48 | +then | ||
49 | # Note that all the libunwind symbols in the API are defined to internal | ||
50 | # platform-specific version, so we must include libunwind.h before checking | ||
51 | # any of them. | ||
52 | @@ -16691,6 +16700,21 @@ LIBS="$save_LIBS" | ||
53 | $as_echo_n "checking for libunwind... " >&6; } | ||
54 | save_LIBS=$LIBS | ||
55 | |||
56 | +# Check for libunwind.h present | ||
57 | +for ac_header in libunwind.h | ||
58 | +do : | ||
59 | + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
60 | +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
61 | +eval as_val=\$$as_ac_Header | ||
62 | + if test "x$as_val" = x""yes; then : | ||
63 | + cat >>confdefs.h <<_ACEOF | ||
64 | +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
65 | +_ACEOF | ||
66 | + | ||
67 | +fi | ||
68 | + | ||
69 | +done | ||
70 | + | ||
71 | UNWIND_ARCH="unknown" | ||
72 | if test x"$UNAME_I" != x"unknown"; then | ||
73 | UNWIND_ARCH="$UNAME_I" | ||
74 | @@ -16877,7 +16901,7 @@ fi | ||
75 | rm -f core conftest.err conftest.$ac_objext \ | ||
76 | conftest$ac_exeext conftest.$ac_ext | ||
77 | fi | ||
78 | - | ||
79 | +fi | ||
80 | |||
81 | |||
82 | for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir | ||
diff --git a/meta-oe/recipes-connectivity/samba/samba_3.6.8.bb b/meta-oe/recipes-connectivity/samba/samba_3.6.8.bb index 255c0b4868..20b609de5f 100644 --- a/meta-oe/recipes-connectivity/samba/samba_3.6.8.bb +++ b/meta-oe/recipes-connectivity/samba/samba_3.6.8.bb | |||
@@ -29,12 +29,16 @@ SRC_URI += "\ | |||
29 | file://only_export_public_symbols.patch;patchdir=.. \ | 29 | file://only_export_public_symbols.patch;patchdir=.. \ |
30 | file://configure-disable-getaddrinfo-cross.patch;patchdir=.. \ | 30 | file://configure-disable-getaddrinfo-cross.patch;patchdir=.. \ |
31 | file://configure-disable-core_pattern-cross-check.patch;patchdir=.. \ | 31 | file://configure-disable-core_pattern-cross-check.patch;patchdir=.. \ |
32 | file://configure-libunwind.patch;patchdir=.. \ | ||
32 | " | 33 | " |
33 | SRC_URI[md5sum] = "fbb245863eeef2fffe172df779a217be" | 34 | SRC_URI[md5sum] = "fbb245863eeef2fffe172df779a217be" |
34 | SRC_URI[sha256sum] = "4f5a171a8d902c6b4f822ed875c51eb8339196d9ccf0ecd7f6521c966b3514de" | 35 | SRC_URI[sha256sum] = "4f5a171a8d902c6b4f822ed875c51eb8339196d9ccf0ecd7f6521c966b3514de" |
35 | 36 | ||
36 | S = "${WORKDIR}/samba-${PV}/source3" | 37 | S = "${WORKDIR}/samba-${PV}/source3" |
37 | 38 | ||
39 | PACKAGECONFIG ??= "" | ||
40 | PACKAGECONFIG[libunwind] = "--enable-libunwind,--disable-libunwind,libunwind" | ||
41 | |||
38 | EXTRA_OECONF += "\ | 42 | EXTRA_OECONF += "\ |
39 | ac_cv_path_PYTHON=/not/exist \ | 43 | ac_cv_path_PYTHON=/not/exist \ |
40 | ac_cv_path_PYTHON_CONFIG=/not/exist \ | 44 | ac_cv_path_PYTHON_CONFIG=/not/exist \ |