[oe] [meta-oe][PATCH] libmemcached: add 1.0.15 and 1.0.7 versions

Martin Jansa martin.jansa at gmail.com
Fri Feb 15 21:40:48 UTC 2013


On Fri, Feb 15, 2013 at 12:46:05PM +0100, Marcin Juszkiewicz wrote:
> 1.0.15 is latest
> 1.0.7 is required by HipHopVM
> 
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz at linaro.org>
> ---
>  .../libmemcached/files/crosscompile.patch          | 30 ++++++++++++++++++++++
>  .../recipes-support/libmemcached/libmemcached.inc  | 10 ++++++++
>  .../libmemcached/libmemcached_1.0.15.bb            |  6 +++++
>  .../libmemcached/libmemcached_1.0.7.bb             |  8 ++++++
>  .../recipes-support/libunwind/files/aarch64.patch  |  8 ++++++

does this one belong here?

>  5 files changed, 62 insertions(+)
>  create mode 100644 meta-networking/recipes-support/libmemcached/files/crosscompile.patch
>  create mode 100644 meta-networking/recipes-support/libmemcached/libmemcached.inc
>  create mode 100644 meta-networking/recipes-support/libmemcached/libmemcached_1.0.15.bb
>  create mode 100644 meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb
> 
> 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 0000000..63511bf
> --- /dev/null
> +++ b/meta-networking/recipes-support/libmemcached/files/crosscompile.patch
> @@ -0,0 +1,30 @@
> + libmemcached/backtrace.cc |    3 ++-
> + 1 file changed, 2 insertions(+), 1 deletion(-)
> +
> +--- libmemcached-1.0.15.orig/libmemcached/backtrace.cc
> ++++ libmemcached-1.0.15/libmemcached/backtrace.cc
> +@@ -75,10 +75,11 @@ void custom_backtrace(void)
> +     {
> +       for (int x= 0; x < stack_frames; x++) 
> +       {
> +         bool was_demangled= false;
> + 
> ++#if USE_DEMANGLE == 1
> +         if (USE_DEMANGLE)
> +         {
> + #ifdef HAVE_DLFCN_H
> +           Dl_info dlinfo;
> +           if (dladdr(backtrace_buffer[x], &dlinfo))
> +@@ -107,11 +108,11 @@ void custom_backtrace(void)
> +                       dlinfo.dli_fname);
> +             }
> +           }
> + #endif
> +         }
> +-
> ++#endif
> +         if (was_demangled == false)
> +         {
> +           fprintf(stderr, "?%d  %p in %s\n", x, backtrace_buffer[x], symbollist[x]);
> +         }
> +       }
> diff --git a/meta-networking/recipes-support/libmemcached/libmemcached.inc b/meta-networking/recipes-support/libmemcached/libmemcached.inc
> new file mode 100644
> index 0000000..448a15d
> --- /dev/null
> +++ b/meta-networking/recipes-support/libmemcached/libmemcached.inc
> @@ -0,0 +1,10 @@
> +DESCRIPTION = "open source C/C++ client library and tools for the memcached server"
> +DEPENDS = "libevent util-linux"
> +LICENSE = "BSD"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=865490941c91ba790f0ea78dec93bd60"
> +
> +SRC_URI = "http://launchpad.net/libmemcached/1.0/${PV}/+download/libmemcached-${PV}.tar.gz"
> +
> +TARGET_LDFLAGS += "-luuid"
> +
> +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 0000000..18232b4
> --- /dev/null
> +++ b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.15.bb
> @@ -0,0 +1,6 @@
> +require libmemcached.inc
> +
> +SRC_URI += "file://crosscompile.patch"
> +
> +SRC_URI[md5sum] = "616297a1aedefc52b3f6922eda5d559a"
> +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 0000000..0aa3050
> --- /dev/null
> +++ b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb
> @@ -0,0 +1,8 @@
> +require libmemcached.inc
> +
> +SRC_URI[md5sum] = "d59a462a92d296f76bff2d9bc72b2516"
> +SRC_URI[sha256sum] = "3efa86c9733eaad55d7119cb16769424e2aa6c22b3392e8f973946fce6678d81"
> +
> +do_configure_prepend_aarch64() {
> +    export ac_cv_c_endian=little
> +}
> diff --git a/meta-oe/recipes-support/libunwind/files/aarch64.patch b/meta-oe/recipes-support/libunwind/files/aarch64.patch
> index 9ea8d83..bb19747 100644
> --- a/meta-oe/recipes-support/libunwind/files/aarch64.patch
> +++ b/meta-oe/recipes-support/libunwind/files/aarch64.patch
> @@ -1,3 +1,11 @@
> +Author: Marcin Juszkiewicz <marcin.juszkiewicz at linaro.org>
> +
> +Upstream-Status: unsuitable
> +
> +We need to port it for AArch64 first. This patch just makes it die during
> +compilation.
> +
> +https://bugs.launchpad.net/linaro-aarch64/+bug/1099810
>  ---
>   configure.ac |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> -- 
> 1.8.1.2
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20130215/71b07f80/attachment-0002.sig>


More information about the Openembedded-devel mailing list