Skip to contentSkip to conversation

new package: zeromq

PATCH RESEND Superseded Thomas De Schampheleire 2 participants 4 messages Mar 14, 2012 – Mar 15, 2012

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 new package: zeromq

---
I hope the ? symbol in Config.in is not a problem.

 package/Config.in        |   1 +
 package/zeromq/Config.in |  22 ++++++++++++++++++++++
 package/zeromq/zeromq.mk |  12 ++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)
package/Config.in +1 -0
@@ -366,6 +366,7 @@ source "package/librsync/Config.in"
 source "package/libsoup/Config.in"
 source "package/libupnp/Config.in"
 source "package/libvncserver/Config.in"
+source "package/zeromq/Config.in"
 endmenu
 
 menu "Other"
package/zeromq/Config.in new file +22 -0
new file mode 100644
@@ -0,0 +1,22 @@
+comment "zeromq requires a toolchain with WCHAR support"
+	depends on !BR2_USE_WCHAR
+
+config BR2_PACKAGE_ZEROMQ
+	bool "zeromq"
+	depends on BR2_USE_WCHAR # util-linux
+	select BR2_PACKAGE_UTIL_LINUX
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	help
+	  ?MQ (ZeroMQ, 0MQ, zmq) looks like an embeddable networking library but
+	  acts like a concurrency framework. It gives you sockets that carry
+	  whole messages across various transports like in-process, inter-
+	  process, TCP, and multicast. You can connect sockets N-to-N with
+	  patterns like fanout, pub-sub, task distribution, and request-reply.
+	  It's fast enough to be the fabric for clustered products. Its
+	  asynchronous I/O model gives you scalable multicore applications,
+	  built as asynchronous message-processing tasks. It has a score of
+	  language APIs and runs on most operating systems.
+
+	  ?MQ is from iMatix and is LGPL open source.
+
+	  http://www.zeromq.org/
package/zeromq/zeromq.mk new file +12 -0
new file mode 100644
@@ -0,0 +1,12 @@
+#############################################################
+#
+# zeromq
+#
+#############################################################
+
+ZEROMQ_VERSION = 2.1.11
+ZEROMQ_SITE = http://download.zeromq.org/
+
+ZEROMQ_DEPENDENCIES = util-linux
+
+$(eval $(call AUTOTARGETS))
#1 lore raw

PATCH RESEND 1/1 new package: zeromq

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

Thomas> Signed-off-by: Thomas De Schampheleire <[email protected]> Thomas> ---
Thomas> I hope the ? symbol in Config.in is not a problem.

It doesn't render nicely in menuconfig here, but ok.

 Thomas>  package/Config.in        |   1 +
 Thomas>  package/zeromq/Config.in |  22 ++++++++++++++++++++++
 Thomas>  package/zeromq/zeromq.mk |  12 ++++++++++++

Thomas> 3 files changed, 35 insertions(+), 0 deletions(-)

Thomas> diff --git a/package/Config.in b/package/Config.in Thomas> --- a/package/Config.in
Thomas> +++ b/package/Config.in
Thomas> @@ -366,6 +366,7 @@ source "package/librsync/Config.in"

 Thomas>  source "package/libsoup/Config.in"
 Thomas>  source "package/libupnp/Config.in"
 Thomas>  source "package/libvncserver/Config.in"

Thomas> +source "package/zeromq/Config.in"
Thomas> endmenu

Thomas> menu "Other"
Thomas> diff --git a/package/zeromq/Config.in b/package/zeromq/Config.in Thomas> new file mode 100644
Thomas> --- /dev/null
Thomas> +++ b/package/zeromq/Config.in
Thomas> @@ -0,0 +1,22 @@
Thomas> +comment "zeromq requires a toolchain with WCHAR support"
Thomas> + depends on !BR2_USE_WCHAR
Thomas> +
Thomas> +config BR2_PACKAGE_ZEROMQ
Thomas> + bool "zeromq"
Thomas> + depends on BR2_USE_WCHAR # util-linux

Util-linux also depends on LARGEFILE, so you need that as well. Zeromq is written in C++, so you also need INSTALL_LIBSTDCPP.

Thomas> + select BR2_PACKAGE_UTIL_LINUX
Thomas> + select BR2_PACKAGE_UTIL_LINUX_LIBUUID
Thomas> + help

 Thomas> +	  ?MQ (ZeroMQ, 0MQ, zmq) looks like an embeddable networking library but
 Thomas> +	  acts like a concurrency framework. It gives you sockets that carry
 Thomas> +	  whole messages across various transports like in-process, inter-
 Thomas> +	  process, TCP, and multicast. You can connect sockets N-to-N with
 Thomas> +	  patterns like fanout, pub-sub, task distribution, and request-reply.
 Thomas> +	  It's fast enough to be the fabric for clustered products. Its
 Thomas> +	  asynchronous I/O model gives you scalable multicore applications,
 Thomas> +	  built as asynchronous message-processing tasks. It has a score of
 Thomas> +	  language APIs and runs on most operating systems.

Thomas> +
Thomas> + ?MQ is from iMatix and is LGPL open source.

I reformatted the help text to fit in menuconfig.

Thomas> +
Thomas> + http://www.zeromq.org/
Thomas> diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk Thomas> new file mode 100644
Thomas> --- /dev/null
Thomas> +++ b/package/zeromq/zeromq.mk
Thomas> @@ -0,0 +1,12 @@
Thomas> +############################################################# Thomas> +#
Thomas> +# zeromq
Thomas> +#
Thomas> +############################################################# Thomas> +
Thomas> +ZEROMQ_VERSION = 2.1.11
Thomas> +ZEROMQ_SITE = http://download.zeromq.org/
Thomas> +

ZEROMQ is a library, so you need to install into staging as well.

Committed with these fixes, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH RESEND 1/1 new package: zeromq

Quoted 36 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

?Thomas> Signed-off-by: Thomas De Schampheleire <[email protected]> ?Thomas> ---
?Thomas> I hope the ? symbol in Config.in is not a problem.

It doesn't render nicely in menuconfig here, but ok.

?Thomas> ?package/Config.in ? ? ? ?| ? 1 +
?Thomas> ?package/zeromq/Config.in | ?22 ++++++++++++++++++++++
?Thomas> ?package/zeromq/zeromq.mk | ?12 ++++++++++++

?Thomas> ?3 files changed, 35 insertions(+), 0 deletions(-)

?Thomas> diff --git a/package/Config.in b/package/Config.in ?Thomas> --- a/package/Config.in
?Thomas> +++ b/package/Config.in
?Thomas> @@ -366,6 +366,7 @@ source "package/librsync/Config.in" ?Thomas> ?source "package/libsoup/Config.in"
?Thomas> ?source "package/libupnp/Config.in"
?Thomas> ?source "package/libvncserver/Config.in" ?Thomas> +source "package/zeromq/Config.in"
?Thomas> ?endmenu

?Thomas> ?menu "Other"
?Thomas> diff --git a/package/zeromq/Config.in b/package/zeromq/Config.in ?Thomas> new file mode 100644
?Thomas> --- /dev/null
?Thomas> +++ b/package/zeromq/Config.in
?Thomas> @@ -0,0 +1,22 @@
?Thomas> +comment "zeromq requires a toolchain with WCHAR support" ?Thomas> + ? ? ?depends on !BR2_USE_WCHAR
?Thomas> +
?Thomas> +config BR2_PACKAGE_ZEROMQ
?Thomas> + ? ? ?bool "zeromq"
?Thomas> + ? ? ?depends on BR2_USE_WCHAR # util-linux

Quoted 2 lines

Util-linux also depends on LARGEFILE, so you need that as well. Zeromq is written in C++, so you also need INSTALL_LIBSTDCPP.

Is there somewhere some documentation that explains these rules? The C++ thing is new to me for example.
It would make sense to me that this is described.

Quoted 35 lines

?Thomas> + ? ? ?select BR2_PACKAGE_UTIL_LINUX
?Thomas> + ? ? ?select BR2_PACKAGE_UTIL_LINUX_LIBUUID
?Thomas> + ? ? ?help
?Thomas> + ? ? ? ??MQ (ZeroMQ, 0MQ, zmq) looks like an embeddable networking library but ?Thomas> + ? ? ? ?acts like a concurrency framework. It gives you sockets that carry ?Thomas> + ? ? ? ?whole messages across various transports like in-process, inter- ?Thomas> + ? ? ? ?process, TCP, and multicast. You can connect sockets N-to-N with ?Thomas> + ? ? ? ?patterns like fanout, pub-sub, task distribution, and request-reply. ?Thomas> + ? ? ? ?It's fast enough to be the fabric for clustered products. Its ?Thomas> + ? ? ? ?asynchronous I/O model gives you scalable multicore applications, ?Thomas> + ? ? ? ?built as asynchronous message-processing tasks. It has a score of ?Thomas> + ? ? ? ?language APIs and runs on most operating systems. ?Thomas> +
?Thomas> + ? ? ? ??MQ is from iMatix and is LGPL open source.

I reformatted the help text to fit in menuconfig.

?Thomas> +
?Thomas> + ? ? ? ?http://www.zeromq.org/
?Thomas> diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk ?Thomas> new file mode 100644
?Thomas> --- /dev/null
?Thomas> +++ b/package/zeromq/zeromq.mk
?Thomas> @@ -0,0 +1,12 @@
?Thomas> +############################################################# ?Thomas> +#
?Thomas> +# zeromq
?Thomas> +#
?Thomas> +############################################################# ?Thomas> +
?Thomas> +ZEROMQ_VERSION = 2.1.11
?Thomas> +ZEROMQ_SITE = http://download.zeromq.org/
?Thomas> +

Quoted 3 lines

ZEROMQ is a library, so you need to install into staging as well.

Committed with these fixes, thanks.

Thanks!
Thomas

#3 lore raw

PATCH RESEND 1/1 new package: zeromq

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

Hi,

Quoted 2 lines
Quoted 2 lines

Util-linux also depends on LARGEFILE, so you need that as well. Zeromq is written in C++, so you also need INSTALL_LIBSTDCPP.

Thomas> Is there somewhere some documentation that explains these rules? The Thomas> C++ thing is new to me for example.

Well, it's pretty simple - There's basically 2 kind of dependencies:

1: Toolchain configuration options (largefile, wchar, C++, ..) 2: Libraries

For the first type we use 'depends by' and add a comment so people know what to change in their toolchain to be able to use the package. For the second we automatically enable the dependencies using 'select'.

There's a few special situations that fall outside this (an example is when you have multiple backends like X11 and directfb), but this covers 90%+ of the situations.

Signature · 1 line
Bye, Peter Korsgaard