All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH V2] new package: redis
Date: Sat, 2 Mar 2013 18:32:49 +0100	[thread overview]
Message-ID: <20130302183249.52df2dee@skate> (raw)
In-Reply-To: <1362178999-16577-1-git-send-email-daniel.price@gmail.com>

Dear Daniel Price,

Looks mostly good, thanks! A few comments below.

On Fri,  1 Mar 2013 15:03:19 -0800, Daniel Price wrote:

> +config BR2_PACKAGE_REDIS
> +	bool "redis"
> +	depends on BR2_USE_MMU # fork()
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on BR2_LARGEFILE
> +	help
> +	  Redis is an open source, advanced key-value store. It is often referred
> +	  to as a data structure server since keys can contain strings, hashes,
> +	  lists, sets and sorted sets.
> +
> +	  http://www.redis.io

We usually add a comment:

comment "redis needs largefile and thread support in toolchain"
	depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS

> diff --git a/package/redis/redis-2.6.10-001-uclibc.patch b/package/redis/redis-2.6.10-001-uclibc.patch
> new file mode 100644
> index 0000000..22206eb
> --- /dev/null
> +++ b/package/redis/redis-2.6.10-001-uclibc.patch

Please don't put the version number in the patch file name. It should
be just redis-001-uclibc.patch.

> +REDIS_VERSION = 2.6.10
> +REDIS_SOURCE = redis-$(REDIS_VERSION).tar.gz
> +REDIS_SITE = http://redis.googlecode.com/files
> +REDIS_LICENSE = BSD-3c
> +REDIS_LICENSE_FILES = COPYING
> +
> +# Redis doesn't support DESTDIR (yet, see
> +# https://github.com/antirez/redis/pull/609).  We set PREFIX
> +# instead.
> +REDIS_BUILDOPTS = MALLOC=libc CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
> +    PREFIX=$(TARGET_DIR)/usr

Can you try instead:

REDIS_BUILDOPTS = MALLOC=libc $(TARGET_CONFIGURE_OPTS) \
	PREFIX=$(TARGET_DIR)/usr

i.e, TARGET_CONFIGURE_OPTS already contains the definition for CC,
CFLAGS and more, so we generally prefer to use $(TARGET_CONFIGURE_OPTS)
when possible.

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2013-03-02 17:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-01 22:56 [Buildroot] [PATCH] new package: redis Daniel Price
2013-03-01 23:03 ` [Buildroot] [PATCH V2] " Daniel Price
2013-03-02 17:32   ` Thomas Petazzoni [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-03-12  1:47 [Buildroot] [PATCH v2] " Daniel Price
2013-03-18 21:44 ` Peter Korsgaard

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=20130302183249.52df2dee@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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.