Patchwork [meta-oe,v3] rabbitmq-c: add recipe

login
register
mail settings
Submitter Maciej Borzecki
Date Aug. 14, 2014, 9:11 a.m.
Message ID <1408007481-8390-1-git-send-email-maciej.borzecki@open-rnd.pl>
Download mbox | patch
Permalink /patch/78179/
State Accepted, archived
Headers show

Comments

Maciej Borzecki - Aug. 14, 2014, 9:11 a.m.
rabbitmq-c is a C library providing an implementation of AMQP client for
use with v2.0+ of the RabbitMQ broker

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
---

Notes:
    Disabled documentation, incorporated fixes from Martin Jansa

 .../recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb

\ No newline at end of file
Martin Jansa - Aug. 14, 2014, 1:20 p.m.
On Thu, Aug 14, 2014 at 11:11:21AM +0200, Maciej Borzecki wrote:
> rabbitmq-c is a C library providing an implementation of AMQP client for
> use with v2.0+ of the RabbitMQ broker
> 
> Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
> Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>

Thank you!

There is one more issue which needs to be fixed before this is merged.

collectd is probably autodetecting rabbitmq-c and fails when detected.

Would you please add PACKAGECONFIG in collectd to disable it by default?
CCing few people who recently touched collectd, maybe someone will
choose to upgrade it instead.

|
/home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/collectd/5.2.2-r0/collectd-5.2.2/src/amqp.c:417:5:
error: 'amqp_set_sockfd' is deprecated (declared at
/home/jenkins/oe/world/shr-core/tmp-eglibc/sysroots/qemuarm/usr/include/amqp.h:1030)
[-Werror=deprecated-declarations]
|      amqp_set_sockfd (conf->connection, sockfd);
|      ^


> ---
> 
> Notes:
>     Disabled documentation, incorporated fixes from Martin Jansa
> 
>  .../recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>  create mode 100644 meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb
> 
> diff --git a/meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb b/meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb
> new file mode 100644
> index 0000000..23b5013
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb
> @@ -0,0 +1,17 @@
> +DESCRIPTION = "A C-language AMQP client library for use with v2.0+ of the RabbitMQ broker"
> +HOMEPAGE = "https://github.com/alanxz/rabbitmq-c"
> +LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=6b7424f9db80cfb11fdd5c980b583f53"
> +LICENSE = "MIT"
> +
> +SRC_URI = "https://github.com/alanxz/${BPN}/releases/download/v${PV}/${BP}.tar.gz"
> +SRC_URI[md5sum] = "b1f902c658c772cda464754678d8deb6"
> +SRC_URI[sha256sum] = "53702ea2ab809af0f923e387458e2cad191d9549f50410035fe82ce5e6ccc4fa"
> +
> +DEPENDS = "popt openssl"
> +
> +EXTRA_OECONF = "--disable-examples --enable-tools --disable-docs"
> +
> +inherit autotools pkgconfig
> +
> +PACKAGE_BEFORE_PN += "${PN}-tools"
> +FILES_${PN}-tools = "${bindir}"
> \ No newline at end of file
> -- 
> 1.9.0
>
Maciej Borzecki - Aug. 14, 2014, 1:46 p.m.
On Thursday 14 of August 2014 15:20:43 Martin Jansa wrote:
> On Thu, Aug 14, 2014 at 11:11:21AM +0200, Maciej Borzecki wrote:
> > rabbitmq-c is a C library providing an implementation of AMQP client for
> > use with v2.0+ of the RabbitMQ broker
> > 
> > Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
> > Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
> 
> Thank you!
> 
> There is one more issue which needs to be fixed before this is merged.
> 
> collectd is probably autodetecting rabbitmq-c and fails when detected.
> 
> Would you please add PACKAGECONFIG in collectd to disable it by default?
> CCing few people who recently touched collectd, maybe someone will
> choose to upgrade it instead.

Sounds good. I'll post a separate patch for collectd.


> 
> 
> /home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/col
> lectd/5.2.2-r0/collectd-5.2.2/src/amqp.c:417:5: error: 'amqp_set_sockfd' is
> deprecated (declared at
> /home/jenkins/oe/world/shr-core/tmp-eglibc/sysroots/qemuarm/usr/include/amqp
> .h:1030) [-Werror=deprecated-declarations]
> 
> |      amqp_set_sockfd (conf->connection, sockfd);
> |      ^
> > 
> > ---
> > 
> > Notes:
> >     Disabled documentation, incorporated fixes from Martin Jansa
> >  
> >  .../recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb | 17
> >  +++++++++++++++++ 1 file changed, 17 insertions(+)
> >  create mode 100644
> >  meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb> 
> > diff --git a/meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb
> > b/meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb new file
> > mode 100644
> > index 0000000..23b5013
> > --- /dev/null
> > +++ b/meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb
> > @@ -0,0 +1,17 @@
> > +DESCRIPTION = "A C-language AMQP client library for use with v2.0+ of the
> > RabbitMQ broker" +HOMEPAGE = "https://github.com/alanxz/rabbitmq-c"
> > +LIC_FILES_CHKSUM =
> > "file://LICENSE-MIT;md5=6b7424f9db80cfb11fdd5c980b583f53" +LICENSE =
> > "MIT"
> > +
> > +SRC_URI =
> > "https://github.com/alanxz/${BPN}/releases/download/v${PV}/${BP}.tar.gz"
> > +SRC_URI[md5sum] = "b1f902c658c772cda464754678d8deb6"
> > +SRC_URI[sha256sum] =
> > "53702ea2ab809af0f923e387458e2cad191d9549f50410035fe82ce5e6ccc4fa" +
> > +DEPENDS = "popt openssl"
> > +
> > +EXTRA_OECONF = "--disable-examples --enable-tools --disable-docs"
> > +
> > +inherit autotools pkgconfig
> > +
> > +PACKAGE_BEFORE_PN += "${PN}-tools"
> > +FILES_${PN}-tools = "${bindir}"
> > \ No newline at end of file

Patch

diff --git a/meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb b/meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb
new file mode 100644
index 0000000..23b5013
--- /dev/null
+++ b/meta-oe/recipes-connectivity/rabbitmq-c/rabbitmq-c_0.5.0.bb
@@ -0,0 +1,17 @@ 
+DESCRIPTION = "A C-language AMQP client library for use with v2.0+ of the RabbitMQ broker"
+HOMEPAGE = "https://github.com/alanxz/rabbitmq-c"
+LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=6b7424f9db80cfb11fdd5c980b583f53"
+LICENSE = "MIT"
+
+SRC_URI = "https://github.com/alanxz/${BPN}/releases/download/v${PV}/${BP}.tar.gz"
+SRC_URI[md5sum] = "b1f902c658c772cda464754678d8deb6"
+SRC_URI[sha256sum] = "53702ea2ab809af0f923e387458e2cad191d9549f50410035fe82ce5e6ccc4fa"
+
+DEPENDS = "popt openssl"
+
+EXTRA_OECONF = "--disable-examples --enable-tools --disable-docs"
+
+inherit autotools pkgconfig
+
+PACKAGE_BEFORE_PN += "${PN}-tools"
+FILES_${PN}-tools = "${bindir}"