diff options
Diffstat (limited to 'meta-networking')
4 files changed, 50 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/libmemcached/files/crosscompile.patch b/meta-networking/recipes-support/libmemcached/files/crosscompile.patch new file mode 100644 index 0000000000..63511bff5f --- /dev/null +++ b/meta-networking/recipes-support/libmemcached/files/crosscompile.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | libmemcached/backtrace.cc | 3 ++- | ||
| 2 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 3 | |||
| 4 | --- libmemcached-1.0.15.orig/libmemcached/backtrace.cc | ||
| 5 | +++ libmemcached-1.0.15/libmemcached/backtrace.cc | ||
| 6 | @@ -75,10 +75,11 @@ void custom_backtrace(void) | ||
| 7 | { | ||
| 8 | for (int x= 0; x < stack_frames; x++) | ||
| 9 | { | ||
| 10 | bool was_demangled= false; | ||
| 11 | |||
| 12 | +#if USE_DEMANGLE == 1 | ||
| 13 | if (USE_DEMANGLE) | ||
| 14 | { | ||
| 15 | #ifdef HAVE_DLFCN_H | ||
| 16 | Dl_info dlinfo; | ||
| 17 | if (dladdr(backtrace_buffer[x], &dlinfo)) | ||
| 18 | @@ -107,11 +108,11 @@ void custom_backtrace(void) | ||
| 19 | dlinfo.dli_fname); | ||
| 20 | } | ||
| 21 | } | ||
| 22 | #endif | ||
| 23 | } | ||
| 24 | - | ||
| 25 | +#endif | ||
| 26 | if (was_demangled == false) | ||
| 27 | { | ||
| 28 | fprintf(stderr, "?%d %p in %s\n", x, backtrace_buffer[x], symbollist[x]); | ||
| 29 | } | ||
| 30 | } | ||
diff --git a/meta-networking/recipes-support/libmemcached/libmemcached.inc b/meta-networking/recipes-support/libmemcached/libmemcached.inc new file mode 100644 index 0000000000..448a15d0ed --- /dev/null +++ b/meta-networking/recipes-support/libmemcached/libmemcached.inc | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | DESCRIPTION = "open source C/C++ client library and tools for the memcached server" | ||
| 2 | DEPENDS = "libevent util-linux" | ||
| 3 | LICENSE = "BSD" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=865490941c91ba790f0ea78dec93bd60" | ||
| 5 | |||
| 6 | SRC_URI = "http://launchpad.net/libmemcached/1.0/${PV}/+download/libmemcached-${PV}.tar.gz" | ||
| 7 | |||
| 8 | TARGET_LDFLAGS += "-luuid" | ||
| 9 | |||
| 10 | inherit autotools gettext pkgconfig | ||
diff --git a/meta-networking/recipes-support/libmemcached/libmemcached_1.0.15.bb b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.15.bb new file mode 100644 index 0000000000..18232b4ceb --- /dev/null +++ b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.15.bb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | require libmemcached.inc | ||
| 2 | |||
| 3 | SRC_URI += "file://crosscompile.patch" | ||
| 4 | |||
| 5 | SRC_URI[md5sum] = "616297a1aedefc52b3f6922eda5d559a" | ||
| 6 | SRC_URI[sha256sum] = "dd7e9560029835bddf761a5b4c2339d9e5c7374558659b6c11b2c95e7d3a4325" | ||
diff --git a/meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb new file mode 100644 index 0000000000..cdf8415ff7 --- /dev/null +++ b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | require libmemcached.inc | ||
| 2 | |||
| 3 | SRC_URI[md5sum] = "d59a462a92d296f76bff2d9bc72b2516" | ||
| 4 | SRC_URI[sha256sum] = "3efa86c9733eaad55d7119cb16769424e2aa6c22b3392e8f973946fce6678d81" | ||
