Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] monkey: new package
Date: Fri, 26 Jun 2015 20:19:26 +0200	[thread overview]
Message-ID: <20150626201926.1cfe52a5@free-electrons.com> (raw)
In-Reply-To: <db63e621-3318-439a-9bbe-6bbc26980f84@MAIL-SINTERS-01.sinters-int.fr>

Julien, Morgan,

On Fri, 26 Jun 2015 15:37:36 +0000, Julien CORJON wrote:

> diff --git a/package/monkey/0001-Configure-accept-all-conf.patch b/package/monkey/0001-Configure-accept-all-conf.patch
> new file mode 100644
> index 0000000..471e25b
> --- /dev/null
> +++ b/package/monkey/0001-Configure-accept-all-conf.patch

All patches should have a description + Signed-off-by. See
http://buildroot.org/downloads/manual/manual.html#_format_and_licensing_of_the_package_patches.


> diff --git a/package/monkey/Config.in b/package/monkey/Config.in
> new file mode 100644
> index 0000000..519fd65
> --- /dev/null
> +++ b/package/monkey/Config.in
> @@ -0,0 +1,11 @@
> +config BR2_PACKAGE_MONKEY
> +        bool "monkey"
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on BR2_TOOLCHAIN_USES_GLIBC

Wrong indentation, should be one tab.

> +        help
> +          Money Server is a fast and lightweight web server for Linux platforms.
> +
> +          http://monkey-project.com/
> +
> +comment "monkey needs an (e)glibc toolchain w/ threads, headers >= 2.6"

No need to indicate headers >= 2.6.

> +        depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_USES_GLIBC
> diff --git a/package/monkey/monkey.mk b/package/monkey/monkey.mk
> new file mode 100644
> index 0000000..20ce048
> --- /dev/null
> +++ b/package/monkey/monkey.mk
> @@ -0,0 +1,20 @@
> +#############################################################
> +#
> +# monkey
> +#
> +#############################################################

Wrong number of # signs, there should be 80 of them.

> +MONKEY_VERSION_MAJOR = 1
> +MONKEY_VERSION_MINOR = 5
> +MONKEY_VERSION_PATCH = 6
> +MONKEY_VERSION = $(MONKEY_VERSION_MAJOR).$(MONKEY_VERSION_MINOR).$(MONKEY_VERSION_PATCH)

No need to split that much:

MONKEY_VERSION_MAJOR = 1.5
MONKEY_VERSION = $(MONKEY_VERSION_MAJOR).6

> +MONKEY_SOURCE = monkey-$(MONKEY_VERSION).tar.gz
> +MONKEY_SITE = http://monkey-project.com/releases/$(MONKEY_VERSION_MAJOR).$(MONKEY_VERSION_MINOR)/

And:

MONKEY_SITE = http://monkey-project.com/releases/$(MONKEY_VERSION_MAJOR)/

> +MONKEY_INSTALL_STAGING = YES
> +MONKEY_INSTALL_TARGET = YES

MONKEY_INSTALL_TARGET = YES is not needed, that's the default.

> +
> +# Monkey default memory allocator should be jemalloc
> +# but monkey configure script does not handle
> +# cross-compilation in a good way
> +MONKEY_CONF_OPTS =--malloc-libc
> +
> +$(eval $(call autotools-package))

No need for $(eval $(call ...)), just $(eval $(autotools-package)).

Also, this package is not using the autotools, so please don't use
autotools-package but generic-package instead. This way, your patch
will also no longer be needed.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

      parent reply	other threads:[~2015-06-26 18:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-26 15:37 [Buildroot] [PATCH 1/1] monkey: new package Julien CORJON
2015-06-26 16:50 ` Alexandre Belloni
2015-06-26 18:19 ` Thomas Petazzoni [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=20150626201926.1cfe52a5@free-electrons.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox