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

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

Comments

Maciej Borzecki - Aug. 14, 2014, 7:54 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>
---
 .../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
Martin Jansa - Aug. 14, 2014, 8:36 a.m.
On Thu, Aug 14, 2014 at 09:54:05AM +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>
> ---
>  .../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..5a02c99
> --- /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"

I did few more modifications when cherry-picking to master-next.

> +HOMEPAGE = "https://github.com/alanxz/rabbitmq-c"
> +LIC_FILES_CHKSUM = "file://${S}/LICENSE-MIT;md5=6b7424f9db80cfb11fdd5c980b583f53"

Dropped ${S} as LIC_FILES_CHKSUM are by default relative to ${S}

> +LICENSE = "MIT"
> +


> +SRC_URI = "https://github.com/alanxz/rabbitmq-c/releases/download/v${PV}/rabbitmq-c-${PV}.tar.gz"

rabbitmq-c -> ${BPN}
rabbitmq-c-${PV} -> ${BP}

> +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}"
> -- 
> 1.9.0
>
Maciej Borzecki - Aug. 14, 2014, 8:57 a.m.
On Thursday 14 of August 2014 10:36:16 Martin Jansa wrote:
> On Thu, Aug 14, 2014 at 09:54:05AM +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>
> > ---
> > 
> >  .../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..5a02c99
> > --- /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"
> I did few more modifications when cherry-picking to master-next.
Right, I missed that. Will post an updated patch.

BTW. any idea why xmlto might not be picking up the stylesheets correctly? I 
found your patch: https://git.congatec.com/yocto/meta-openembedded/commit/c688085b4c96c169ca853bf91b6fee54f4cd983d
and you seem to be taking similar measures to disable documentation.

> 
> > +HOMEPAGE = "https://github.com/alanxz/rabbitmq-c"
> > +LIC_FILES_CHKSUM =
> > "file://${S}/LICENSE-MIT;md5=6b7424f9db80cfb11fdd5c980b583f53"
> Dropped ${S} as LIC_FILES_CHKSUM are by default relative to ${S}
> 
> > +LICENSE = "MIT"
> > +
> > 
> > 
> > +SRC_URI =
> > "https://github.com/alanxz/rabbitmq-c/releases/download/v${PV}/rabbitmq-c
> > -${PV}.tar.gz"
> rabbitmq-c -> ${BPN}
> rabbitmq-c-${PV} -> ${BP}
> 
> > +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}"
Martin Jansa - Aug. 14, 2014, 9:09 a.m.
On Thu, Aug 14, 2014 at 10:57:05AM +0200, Maciej Borzecki wrote:
> On Thursday 14 of August 2014 10:36:16 Martin Jansa wrote:
> > On Thu, Aug 14, 2014 at 09:54:05AM +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>
> > > ---
> > > 
> > >  .../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..5a02c99
> > > --- /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"
> > I did few more modifications when cherry-picking to master-next.
> Right, I missed that. Will post an updated patch.
> 
> BTW. any idea why xmlto might not be picking up the stylesheets correctly? I 
> found your patch: https://git.congatec.com/yocto/meta-openembedded/commit/c688085b4c96c169ca853bf91b6fee54f4cd983d
> and you seem to be taking similar measures to disable documentation.

It should be fixed now by:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=2416

but I haven't checked why it didn't work for rabbitmq

It would be great to debug it and report back in that bug if it doesn't
work correctly.

> > > +HOMEPAGE = "https://github.com/alanxz/rabbitmq-c"
> > > +LIC_FILES_CHKSUM =
> > > "file://${S}/LICENSE-MIT;md5=6b7424f9db80cfb11fdd5c980b583f53"
> > Dropped ${S} as LIC_FILES_CHKSUM are by default relative to ${S}
> > 
> > > +LICENSE = "MIT"
> > > +
> > > 
> > > 
> > > +SRC_URI =
> > > "https://github.com/alanxz/rabbitmq-c/releases/download/v${PV}/rabbitmq-c
> > > -${PV}.tar.gz"
> > rabbitmq-c -> ${BPN}
> > rabbitmq-c-${PV} -> ${BP}
> > 
> > > +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}"
> 
> -- 
> 
> Maciej Borz?cki 
> Senior Software Engineer Open-RnD Sp. z o.o. 
> www.open-rnd.pl, Facebook, Twitter 
> mobile: +48 telefon, fax: +48 42 657 9079 
> 
> Niniejsza wiadomo?? wraz z za??cznikami mo?e zawiera? chronione prawem lub 
> poufne informacje i zosta?a wys?ana wy??cznie do wiadomo?ci i u?ytku osób, do 
> których zosta?a zaadresowana. Je?li wiadomo?? zosta?a otrzymana przypadkowo 
> zabrania si? jej kopiowania lub rozsy?ania do osób trzecich. W takim przypadku 
> uprasza si? o natychmiastowe zniszczenie wiadomo?ci oraz poinformowanie 
> nadawcy o zaistnia?ej sytuacji za pomoc? wiadomo?ci zwrotnej. Dzi?kujemy. 
> 
> This message, including any attachments hereto, may contain privileged or 
> confidential information and is sent solely for the attention and use of the 
> intended addressee(s). If you are not an intended addressee, you may neither 
> use this message nor copy or deliver it to anyone. In such case, you should 
> immediately destroy this message and kindly notify the sender by reply email. 
> Thank you.

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..5a02c99
--- /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://${S}/LICENSE-MIT;md5=6b7424f9db80cfb11fdd5c980b583f53"
+LICENSE = "MIT"
+
+SRC_URI = "https://github.com/alanxz/rabbitmq-c/releases/download/v${PV}/rabbitmq-c-${PV}.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}"