From: Joe MacDonald <Joe_MacDonald@mentor.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: [meta-networking][PATCH] memcached: add knob to detect whether hugetlbfs are checked
Date: Tue, 9 Sep 2014 09:06:19 -0400 [thread overview]
Message-ID: <20140909130619.GC2125@mentor.com> (raw)
In-Reply-To: <1408441112-10650-1-git-send-email-Chong.Lu@windriver.com>
[-- Attachment #1: Type: text/plain, Size: 3661 bytes --]
Merged, thanks.
-J.
[[oe] [meta-networking][PATCH] memcached: add knob to detect whether hugetlbfs are checked] On 14.08.19 (Tue 17:38) Chong Lu wrote:
> Add knob to detect whether hugetlbfs are checked or not.
> This patch fixed the error:
> ld: cannot find -lhugetlbfs
>
> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> ---
> .../memcached/memcached-add-hugetlbfs-check.patch | 32 ++++++++++++++++++++++
> .../recipes-support/memcached/memcached_1.4.17.bb | 13 +++++++--
> 2 files changed, 42 insertions(+), 3 deletions(-)
> create mode 100644 meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch
>
> diff --git a/meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch b/meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch
> new file mode 100644
> index 0000000..544b840
> --- /dev/null
> +++ b/meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch
> @@ -0,0 +1,32 @@
> +memcached: add knob to detect whether hugetlbfs are checked
> +
> +Add knob to detect whether hugetlbfs are checked or not.
> +
> +Upstream-Status: Pending
> +
> +Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> +---
> + configure.ac | 7 ++++++-
> + 1 file changed, 6 insertions(+), 1 deletion(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index 7f22f21..21691b9 100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -314,7 +314,12 @@ fi
> + dnl ----------------------------------------------------------------------------
> +
> + AC_SEARCH_LIBS(umem_cache_create, umem)
> +-AC_SEARCH_LIBS(gethugepagesizes, hugetlbfs)
> ++AC_ARG_ENABLE(hugetlbfs,
> ++ [AS_HELP_STRING([--enable-hugetlbfs],[Enable hugetlbfs])])
> ++
> ++if test "x$enable_hugetlbfs" = "xyes"; then
> ++ AC_SEARCH_LIBS(gethugepagesizes, hugetlbfs)
> ++fi
> +
> + AC_HEADER_STDBOOL
> + AH_BOTTOM([#if HAVE_STDBOOL_H
> +--
> +1.8.3.4
> +
> diff --git a/meta-networking/recipes-support/memcached/memcached_1.4.17.bb b/meta-networking/recipes-support/memcached/memcached_1.4.17.bb
> index 5d37df0..e61bc74 100644
> --- a/meta-networking/recipes-support/memcached/memcached_1.4.17.bb
> +++ b/meta-networking/recipes-support/memcached/memcached_1.4.17.bb
> @@ -18,7 +18,11 @@ DEPENDS += "libevent"
> RDEPENDS_${PN} += "perl perl-module-posix perl-module-autoloader perl-module-tie-hash"
>
> SRC_URI = "http://www.memcached.org/files/${BP}.tar.gz \
> - file://configure.patch"
> + file://configure.patch \
> + file://memcached-add-hugetlbfs-check.patch"
> +
> +# set the same COMPATIBLE_HOST as libhugetlbfs
> +COMPATIBLE_HOST = '(i.86|x86_64|powerpc|powerpc64|arm).*-linux'
>
> SRC_URI[md5sum] = "46402dfbd7faadf6182283dbbd18b1a6"
> SRC_URI[sha256sum] = "d9173ef6d99ba798c982ea4566cb4f0e64eb23859fdbf9926a89999d8cdc0458"
> @@ -26,11 +30,14 @@ SRC_URI[sha256sum] = "d9173ef6d99ba798c982ea4566cb4f0e64eb23859fdbf9926a89999d8c
> python __anonymous () {
> endianness = d.getVar('SITEINFO_ENDIANNESS', True)
> if endianness == 'le':
> - d.setVar('EXTRA_OECONF', "ac_cv_c_endian=little")
> + d.appendVar('EXTRA_OECONF', " ac_cv_c_endian=little")
> else:
> - d.setVar('EXTRA_OECONF', "ac_cv_c_endian=big")
> + d.appendVar('EXTRA_OECONF', " ac_cv_c_endian=big")
> }
>
> +PACKAGECONFIG ??= ""
> +PACKAGECONFIG[hugetlbfs] = "--enable-hugetlbfs, --disable-hugetlbfs, libhugetlbfs"
> +
> inherit update-rc.d
>
> INITSCRIPT_NAME = "memcached"
> --
> 1.9.1
>
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 501 bytes --]
prev parent reply other threads:[~2014-09-09 13:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-19 9:38 [meta-networking][PATCH] memcached: add knob to detect whether hugetlbfs are checked Chong Lu
2014-08-25 2:10 ` Chong Lu
2014-09-09 13:06 ` Joe MacDonald [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140909130619.GC2125@mentor.com \
--to=joe_macdonald@mentor.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.