All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libuv: new package
@ 2014-07-18 20:24 Gustavo Zacarias
  2014-07-18 20:47 ` Yann E. MORIN
  2014-07-19  9:40 ` Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2014-07-18 20:24 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/Config.in       |  1 +
 package/libuv/Config.in | 14 ++++++++++++++
 package/libuv/libuv.mk  | 22 ++++++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 package/libuv/Config.in
 create mode 100644 package/libuv/libuv.mk

diff --git a/package/Config.in b/package/Config.in
index 0828172..ae3dd0f 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -849,6 +849,7 @@ menu "Other"
 	source "package/libuci/Config.in"
 	source "package/libunwind/Config.in"
 	source "package/liburcu/Config.in"
+	source "package/libuv/Config.in"
 	source "package/linux-pam/Config.in"
 	source "package/lttng-libust/Config.in"
 	source "package/mpc/Config.in"
diff --git a/package/libuv/Config.in b/package/libuv/Config.in
new file mode 100644
index 0000000..6083837
--- /dev/null
+++ b/package/libuv/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_LIBUV
+	bool "libuv"
+	depends on BR2_INET_IPV6
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_USE_MMU # fork()
+	help
+	  libuv is a multi-platform support library with a focus
+	  on asynchronous I/O.
+
+	  https://github.com/joyent/libuv
+
+comment "libuv needs a toolchain w/ IPv6, threads"
+	depends on !BR2_INET_IPV6 || !BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_USE_MMU
diff --git a/package/libuv/libuv.mk b/package/libuv/libuv.mk
new file mode 100644
index 0000000..6074e9c
--- /dev/null
+++ b/package/libuv/libuv.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# libuv
+#
+################################################################################
+
+LIBUV_VERSION = v0.11.26
+LIBUV_SITE = $(call github,joyent,libuv,$(LIBUV_VERSION))
+LIBUV_DEPENDENCIES = host-pkgconf
+LIBUV_INSTALL_STAGING = YES
+LIBUV_AUTORECONF = YES
+LIBUV_LICENSE = BSD-2c, BSD-3c, ISC, MIT
+LIBUV_LICENSE_FILES = LICENSE
+
+# Tweaked autogen.sh
+define LIBUV_FIXUP_AUTOGEN
+	echo "m4_define([UV_EXTRA_AUTOMAKE_FLAGS], [serial-tests])" \
+	        >$(@D)/m4/libuv-extra-automake-flags.m4
+endef
+LIBUV_POST_PATCH_HOOKS += LIBUV_FIXUP_AUTOGEN
+
+$(eval $(autotools-package))
-- 
1.8.5.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] libuv: new package
  2014-07-18 20:24 [Buildroot] [PATCH] libuv: new package Gustavo Zacarias
@ 2014-07-18 20:47 ` Yann E. MORIN
  2014-07-19  9:40 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2014-07-18 20:47 UTC (permalink / raw)
  To: buildroot

Gustavo, All,

On 2014-07-18 17:24 -0300, Gustavo Zacarias spake thusly:
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

However, I have a small comment...

[--SNIP--]
> diff --git a/package/libuv/libuv.mk b/package/libuv/libuv.mk
> new file mode 100644
> index 0000000..6074e9c
> --- /dev/null
> +++ b/package/libuv/libuv.mk
> @@ -0,0 +1,22 @@
> +################################################################################
> +#
> +# libuv
> +#
> +################################################################################
> +
> +LIBUV_VERSION = v0.11.26
> +LIBUV_SITE = $(call github,joyent,libuv,$(LIBUV_VERSION))
> +LIBUV_DEPENDENCIES = host-pkgconf
> +LIBUV_INSTALL_STAGING = YES
> +LIBUV_AUTORECONF = YES
> +LIBUV_LICENSE = BSD-2c, BSD-3c, ISC, MIT
> +LIBUV_LICENSE_FILES = LICENSE
> +
> +# Tweaked autogen.sh

This is pretty terse, and slightly recondite. What about:

    # Upstream needs tests to be run sequentially. This is the default
    # in automake 1.11 and before, but not starting in 1.12. To maintain
    # sequentiality in 1.12 and later, the automake option 'serial-tests'
    # must be used, Unfortunately, it is not recognised by 1.11 and
    # before. So upstream only adds it conditionally. We use automake
    # 1.14, so we need it.

Alternatively, I'm OK with adding that in the commit log instead of in a
comment.

Regards,
Yann E. MORIN.

> +define LIBUV_FIXUP_AUTOGEN
> +	echo "m4_define([UV_EXTRA_AUTOMAKE_FLAGS], [serial-tests])" \
> +	        >$(@D)/m4/libuv-extra-automake-flags.m4
> +endef
> +LIBUV_POST_PATCH_HOOKS += LIBUV_FIXUP_AUTOGEN
> +
> +$(eval $(autotools-package))
> -- 
> 1.8.5.5
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] libuv: new package
  2014-07-18 20:24 [Buildroot] [PATCH] libuv: new package Gustavo Zacarias
  2014-07-18 20:47 ` Yann E. MORIN
@ 2014-07-19  9:40 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-07-19  9:40 UTC (permalink / raw)
  To: buildroot

Dear Gustavo Zacarias,

On Fri, 18 Jul 2014 17:24:18 -0300, Gustavo Zacarias wrote:
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
>  package/Config.in       |  1 +
>  package/libuv/Config.in | 14 ++++++++++++++
>  package/libuv/libuv.mk  | 22 ++++++++++++++++++++++
>  3 files changed, 37 insertions(+)
>  create mode 100644 package/libuv/Config.in
>  create mode 100644 package/libuv/libuv.mk

Thanks, applied, after taking into account Yann's suggestion.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-19  9:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-18 20:24 [Buildroot] [PATCH] libuv: new package Gustavo Zacarias
2014-07-18 20:47 ` Yann E. MORIN
2014-07-19  9:40 ` Thomas Petazzoni

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.