All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][thud][PATCH] Add czmq (C bindings for ZeroMQ)
@ 2019-02-04 14:59 Adrian Bunk
  2019-02-04 15:57 ` akuster808
  2019-02-04 17:23 ` Philip Balister
  0 siblings, 2 replies; 6+ messages in thread
From: Adrian Bunk @ 2019-02-04 14:59 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
 meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb  | 30 +++++++++++++++++++++
 .../0001-Problem-out-of-date-with-zproject.patch   | 31 ++++++++++++++++++++++
 2 files changed, 61 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb
 create mode 100644 meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch

diff --git a/meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb b/meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb
new file mode 100644
index 000000000..f2db0041c
--- /dev/null
+++ b/meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb
@@ -0,0 +1,30 @@
+DESCRIPTION = "C bindings for ZeroMQ"
+HOMEPAGE = "http://www.zeromq.org"
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3"
+DEPENDS = "zeromq"
+
+SRC_URI = "https://github.com/zeromq/czmq/releases/download/v${PV}/czmq-${PV}.tar.gz \
+    file://0001-Problem-out-of-date-with-zproject.patch \
+"
+
+SRC_URI[md5sum] = "6d3a6fdd25c2bb29897c53670dce97bf"
+SRC_URI[sha256sum] = "f00ff419881dc2a05d0686c8467cd89b4882677fc56f31c0e2cc81c134cbb0c0"
+
+inherit cmake
+
+PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-staticdev ${PN} ${PN}-dbg"
+
+FILES_${PN} = "${bindir}/*"
+FILES_lib${BPN} = "${libdir}/*.so.*"
+FILES_lib${BPN}-dev = "${libdir}/*.so ${libdir}/pkgconfig ${includedir}"
+FILES_lib${BPN}-staticdev = "${libdir}/lib*.a"
+
+RDEPENDS_lib${BPN}-dev = "zeromq-dev"
+
+PACKAGECONFIG ??= "lz4 uuid"
+PACKAGECONFIG[lz4] = ",-DCMAKE_DISABLE_FIND_PACKAGE_lz4=TRUE,lz4"
+PACKAGECONFIG[uuid] = ",-DCMAKE_DISABLE_FIND_PACKAGE_uuid=TRUE,util-linux"
+
+BBCLASSEXTEND = "nativesdk"
+
diff --git a/meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch b/meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch
new file mode 100644
index 000000000..5f5702c8c
--- /dev/null
+++ b/meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch
@@ -0,0 +1,31 @@
+From d155ffd33630f80b23c31b3a6e01da221dd9bd13 Mon Sep 17 00:00:00 2001
+From: Luca Boccassi <luca.boccassi@gmail.com>
+Date: Fri, 30 Mar 2018 16:36:22 +0100
+Subject: [PATCH] Problem: out of date with zproject
+
+Upstream-Status: backport
+Signed-off-by: Adrian Bunk <bunk@stusta.de>
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a3b81722..4f203461 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -38,7 +38,7 @@ if (NOT CMAKE_BUILD_TYPE)
+             OUTPUT_STRIP_TRAILING_WHITESPACE
+         )
+         message(STATUS "git workspace root [${git_result}]: ${git_root}")
+-        if ( "${git_result}" == "0" )
++        if ( "${git_result}" STREQUAL "0" )
+             set (CMAKE_BUILD_TYPE Debug)
+         else ()
+             set (CMAKE_BUILD_TYPE Release)
+@@ -608,7 +608,7 @@ add_custom_command(
+     TARGET  distclean
+ )
+ 
+-include(ClangFormat)
++include(ClangFormat OPTIONAL)
+ 
+ ########################################################################
+ # summary
+
-- 
2.11.0



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

* Re: [meta-oe][thud][PATCH] Add czmq (C bindings for ZeroMQ)
  2019-02-04 14:59 [meta-oe][thud][PATCH] Add czmq (C bindings for ZeroMQ) Adrian Bunk
@ 2019-02-04 15:57 ` akuster808
  2019-02-04 17:23 ` Philip Balister
  1 sibling, 0 replies; 6+ messages in thread
From: akuster808 @ 2019-02-04 15:57 UTC (permalink / raw)
  To: Adrian Bunk, openembedded-devel



On 2/4/19 6:59 AM, Adrian Bunk wrote:
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
> ---
>  meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb  | 30 +++++++++++++++++++++
>  .../0001-Problem-out-of-date-with-zproject.patch   | 31 ++++++++++++++++++++++
>  2 files changed, 61 insertions(+)
>  create mode 100644 meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb
>  create mode 100644 meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch
>
> diff --git a/meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb b/meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb
> new file mode 100644
> index 000000000..f2db0041c
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb

Adding a new package to a stable branch is not allowed.


- armin
> @@ -0,0 +1,30 @@
> +DESCRIPTION = "C bindings for ZeroMQ"
> +HOMEPAGE = "http://www.zeromq.org"
> +LICENSE = "MPL-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3"
> +DEPENDS = "zeromq"
> +
> +SRC_URI = "https://github.com/zeromq/czmq/releases/download/v${PV}/czmq-${PV}.tar.gz \
> +    file://0001-Problem-out-of-date-with-zproject.patch \
> +"
> +
> +SRC_URI[md5sum] = "6d3a6fdd25c2bb29897c53670dce97bf"
> +SRC_URI[sha256sum] = "f00ff419881dc2a05d0686c8467cd89b4882677fc56f31c0e2cc81c134cbb0c0"
> +
> +inherit cmake
> +
> +PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-staticdev ${PN} ${PN}-dbg"
> +
> +FILES_${PN} = "${bindir}/*"
> +FILES_lib${BPN} = "${libdir}/*.so.*"
> +FILES_lib${BPN}-dev = "${libdir}/*.so ${libdir}/pkgconfig ${includedir}"
> +FILES_lib${BPN}-staticdev = "${libdir}/lib*.a"
> +
> +RDEPENDS_lib${BPN}-dev = "zeromq-dev"
> +
> +PACKAGECONFIG ??= "lz4 uuid"
> +PACKAGECONFIG[lz4] = ",-DCMAKE_DISABLE_FIND_PACKAGE_lz4=TRUE,lz4"
> +PACKAGECONFIG[uuid] = ",-DCMAKE_DISABLE_FIND_PACKAGE_uuid=TRUE,util-linux"
> +
> +BBCLASSEXTEND = "nativesdk"
> +
> diff --git a/meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch b/meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch
> new file mode 100644
> index 000000000..5f5702c8c
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch
> @@ -0,0 +1,31 @@
> +From d155ffd33630f80b23c31b3a6e01da221dd9bd13 Mon Sep 17 00:00:00 2001
> +From: Luca Boccassi <luca.boccassi@gmail.com>
> +Date: Fri, 30 Mar 2018 16:36:22 +0100
> +Subject: [PATCH] Problem: out of date with zproject
> +
> +Upstream-Status: backport
> +Signed-off-by: Adrian Bunk <bunk@stusta.de>
> +
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index a3b81722..4f203461 100644
> +--- a/CMakeLists.txt
> ++++ b/CMakeLists.txt
> +@@ -38,7 +38,7 @@ if (NOT CMAKE_BUILD_TYPE)
> +             OUTPUT_STRIP_TRAILING_WHITESPACE
> +         )
> +         message(STATUS "git workspace root [${git_result}]: ${git_root}")
> +-        if ( "${git_result}" == "0" )
> ++        if ( "${git_result}" STREQUAL "0" )
> +             set (CMAKE_BUILD_TYPE Debug)
> +         else ()
> +             set (CMAKE_BUILD_TYPE Release)
> +@@ -608,7 +608,7 @@ add_custom_command(
> +     TARGET  distclean
> + )
> + 
> +-include(ClangFormat)
> ++include(ClangFormat OPTIONAL)
> + 
> + ########################################################################
> + # summary
> +



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

* Re: [meta-oe][thud][PATCH] Add czmq (C bindings for ZeroMQ)
  2019-02-04 14:59 [meta-oe][thud][PATCH] Add czmq (C bindings for ZeroMQ) Adrian Bunk
  2019-02-04 15:57 ` akuster808
@ 2019-02-04 17:23 ` Philip Balister
  2019-02-04 22:14   ` Adrian Bunk
  1 sibling, 1 reply; 6+ messages in thread
From: Philip Balister @ 2019-02-04 17:23 UTC (permalink / raw)
  To: Adrian Bunk, openembedded-devel

How are zmq bindings versioned? Just curious why this has a different
version to:

http://layers.openembedded.org/layerindex/recipe/28410/

Thanks,

Philip

On 02/04/2019 03:59 PM, Adrian Bunk wrote:
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
> ---
>  meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb  | 30 +++++++++++++++++++++
>  .../0001-Problem-out-of-date-with-zproject.patch   | 31 ++++++++++++++++++++++
>  2 files changed, 61 insertions(+)
>  create mode 100644 meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb
>  create mode 100644 meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch
> 
> diff --git a/meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb b/meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb
> new file mode 100644
> index 000000000..f2db0041c
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/zeromq/czmq_4.1.1.bb
> @@ -0,0 +1,30 @@
> +DESCRIPTION = "C bindings for ZeroMQ"
> +HOMEPAGE = "http://www.zeromq.org"
> +LICENSE = "MPL-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3"
> +DEPENDS = "zeromq"
> +
> +SRC_URI = "https://github.com/zeromq/czmq/releases/download/v${PV}/czmq-${PV}.tar.gz \
> +    file://0001-Problem-out-of-date-with-zproject.patch \
> +"
> +
> +SRC_URI[md5sum] = "6d3a6fdd25c2bb29897c53670dce97bf"
> +SRC_URI[sha256sum] = "f00ff419881dc2a05d0686c8467cd89b4882677fc56f31c0e2cc81c134cbb0c0"
> +
> +inherit cmake
> +
> +PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-staticdev ${PN} ${PN}-dbg"
> +
> +FILES_${PN} = "${bindir}/*"
> +FILES_lib${BPN} = "${libdir}/*.so.*"
> +FILES_lib${BPN}-dev = "${libdir}/*.so ${libdir}/pkgconfig ${includedir}"
> +FILES_lib${BPN}-staticdev = "${libdir}/lib*.a"
> +
> +RDEPENDS_lib${BPN}-dev = "zeromq-dev"
> +
> +PACKAGECONFIG ??= "lz4 uuid"
> +PACKAGECONFIG[lz4] = ",-DCMAKE_DISABLE_FIND_PACKAGE_lz4=TRUE,lz4"
> +PACKAGECONFIG[uuid] = ",-DCMAKE_DISABLE_FIND_PACKAGE_uuid=TRUE,util-linux"
> +
> +BBCLASSEXTEND = "nativesdk"
> +
> diff --git a/meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch b/meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch
> new file mode 100644
> index 000000000..5f5702c8c
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/zeromq/files/0001-Problem-out-of-date-with-zproject.patch
> @@ -0,0 +1,31 @@
> +From d155ffd33630f80b23c31b3a6e01da221dd9bd13 Mon Sep 17 00:00:00 2001
> +From: Luca Boccassi <luca.boccassi@gmail.com>
> +Date: Fri, 30 Mar 2018 16:36:22 +0100
> +Subject: [PATCH] Problem: out of date with zproject
> +
> +Upstream-Status: backport
> +Signed-off-by: Adrian Bunk <bunk@stusta.de>
> +
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index a3b81722..4f203461 100644
> +--- a/CMakeLists.txt
> ++++ b/CMakeLists.txt
> +@@ -38,7 +38,7 @@ if (NOT CMAKE_BUILD_TYPE)
> +             OUTPUT_STRIP_TRAILING_WHITESPACE
> +         )
> +         message(STATUS "git workspace root [${git_result}]: ${git_root}")
> +-        if ( "${git_result}" == "0" )
> ++        if ( "${git_result}" STREQUAL "0" )
> +             set (CMAKE_BUILD_TYPE Debug)
> +         else ()
> +             set (CMAKE_BUILD_TYPE Release)
> +@@ -608,7 +608,7 @@ add_custom_command(
> +     TARGET  distclean
> + )
> + 
> +-include(ClangFormat)
> ++include(ClangFormat OPTIONAL)
> + 
> + ########################################################################
> + # summary
> +
> 


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

* Re: [meta-oe][thud][PATCH] Add czmq (C bindings for ZeroMQ)
  2019-02-04 17:23 ` Philip Balister
@ 2019-02-04 22:14   ` Adrian Bunk
  2019-04-02 15:50     ` Vincent Prince
  0 siblings, 1 reply; 6+ messages in thread
From: Adrian Bunk @ 2019-02-04 22:14 UTC (permalink / raw)
  To: Philip Balister; +Cc: openembedded-devel

On Mon, Feb 04, 2019 at 06:23:05PM +0100, Philip Balister wrote:
> How are zmq bindings versioned? Just curious why this has a different
> version to:
> 
> http://layers.openembedded.org/layerindex/recipe/28410/

These are different bindings (C versus C++) maintained separately.

> Thanks,
> 
> Philip

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



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

* Re: [meta-oe][thud][PATCH] Add czmq (C bindings for ZeroMQ)
  2019-02-04 22:14   ` Adrian Bunk
@ 2019-04-02 15:50     ` Vincent Prince
  2019-04-02 16:22       ` Adrian Bunk
  0 siblings, 1 reply; 6+ messages in thread
From: Vincent Prince @ 2019-04-02 15:50 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: openembedded-devel

Hi Adrian,

I'm planning to send patches for new stable zeromq/cppzmq (4.3.1) and czmq
(4.2.0).
I didn't saw your recipe before so I made a really short one, and I'm
wondering why you defined custom PACKAGES for czmq recipe ?

Best regards,
Vincent


Le lun. 4 févr. 2019 à 23:15, Adrian Bunk <bunk@stusta.de> a écrit :

> On Mon, Feb 04, 2019 at 06:23:05PM +0100, Philip Balister wrote:
> > How are zmq bindings versioned? Just curious why this has a different
> > version to:
> >
> > http://layers.openembedded.org/layerindex/recipe/28410/
>
> These are different bindings (C versus C++) maintained separately.
>
> > Thanks,
> >
> > Philip
>
> cu
> Adrian
>
> --
>
>        "Is there not promise of rain?" Ling Tan asked suddenly out
>         of the darkness. There had been need of rain for many days.
>        "Only a promise," Lao Er said.
>                                        Pearl S. Buck - Dragon Seed
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


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

* Re: [meta-oe][thud][PATCH] Add czmq (C bindings for ZeroMQ)
  2019-04-02 15:50     ` Vincent Prince
@ 2019-04-02 16:22       ` Adrian Bunk
  0 siblings, 0 replies; 6+ messages in thread
From: Adrian Bunk @ 2019-04-02 16:22 UTC (permalink / raw)
  To: Vincent Prince; +Cc: openembedded-devel

On Tue, Apr 02, 2019 at 05:50:56PM +0200, Vincent Prince wrote:
> Hi Adrian,

Hi Vincent,

> I'm planning to send patches for new stable zeromq/cppzmq (4.3.1) and czmq
> (4.2.0).
> I didn't saw your recipe before so I made a really short one, and I'm
> wondering why you defined custom PACKAGES for czmq recipe ?

for having the library packages named libczmq* instead of czmq*,
and also getting a separate czmq package for the zmakecert binary.

> Best regards,
> Vincent

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



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

end of thread, other threads:[~2019-04-02 16:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-04 14:59 [meta-oe][thud][PATCH] Add czmq (C bindings for ZeroMQ) Adrian Bunk
2019-02-04 15:57 ` akuster808
2019-02-04 17:23 ` Philip Balister
2019-02-04 22:14   ` Adrian Bunk
2019-04-02 15:50     ` Vincent Prince
2019-04-02 16:22       ` Adrian Bunk

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.