Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2][meta-oe] libsodium: create recipe
@ 2015-08-20  5:39 rongqing.li
  2015-08-20  5:39 ` [PATCH 2/2][meta-oe] zeromq: upgrade to 4.1.3 rongqing.li
  0 siblings, 1 reply; 3+ messages in thread
From: rongqing.li @ 2015-08-20  5:39 UTC (permalink / raw)
  To: openembedded-devel

From: Roy Li <rongqing.li@windriver.com>

zeromq 4.1.3 requires libsodium

Sodium is a new, easy-to-use software library for encryption, decryption,
signatures, password hashing and more. It is a portable, cross-compilable,
installable, packageable fork of NaCl, with a compatible API, and an extended
API to improve usability even further. Its goal is to provide all of the core
operations needed to build higher-level cryptographic tools. The design
choices emphasize security, and "magic constants" have clear rationales.

The same cannot be said of NIST curves, where the specific origins of certain
constants are not described by the standards. And despite the emphasis on
higher security, primitives are faster across-the-board than most
implementations of the NIST standards.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
 meta-oe/recipes-support/libsodium/libsodium_1.0.3.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 meta-oe/recipes-support/libsodium/libsodium_1.0.3.bb

diff --git a/meta-oe/recipes-support/libsodium/libsodium_1.0.3.bb b/meta-oe/recipes-support/libsodium/libsodium_1.0.3.bb
new file mode 100644
index 0000000..d02bb9b
--- /dev/null
+++ b/meta-oe/recipes-support/libsodium/libsodium_1.0.3.bb
@@ -0,0 +1,11 @@
+SUMMARY = "The Sodium crypto library"
+HOMEPAGE = "http://libsodium.org/"
+LICENSE = "ISC"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=092a09b78c3be486fac807435bf17b7a"
+
+SRC_URI = "https://download.libsodium.org/libsodium/releases/${BPN}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "b3bcc98e34d3250f55ae196822307fab"
+SRC_URI[sha256sum] = "cbcfc63cc90c05d18a20f229a62c7e7054a73731d0aa858c0517152c549b1288"
+
+inherit autotools
-- 
1.9.1



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

* [PATCH 2/2][meta-oe] zeromq: upgrade to 4.1.3
  2015-08-20  5:39 [PATCH 1/2][meta-oe] libsodium: create recipe rongqing.li
@ 2015-08-20  5:39 ` rongqing.li
  2015-08-20 13:30   ` Philip Balister
  0 siblings, 1 reply; 3+ messages in thread
From: rongqing.li @ 2015-08-20  5:39 UTC (permalink / raw)
  To: openembedded-devel

From: Roy Li <rongqing.li@windriver.com>

4.1.3 has the dependence on libsodium,
4.1.3 asks pkgconfig bbclass to configure,
add a target to build ptest, since the orignial check will build and run
which is not suitable for cross-compile, and change the ptest installation
directories

Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
 .../zeromq/{zeromq_4.0.4.bb => zeromq_4.1.3.bb}            | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
 rename meta-oe/recipes-connectivity/zeromq/{zeromq_4.0.4.bb => zeromq_4.1.3.bb} (62%)

diff --git a/meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb b/meta-oe/recipes-connectivity/zeromq/zeromq_4.1.3.bb
similarity index 62%
rename from meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb
rename to meta-oe/recipes-connectivity/zeromq/zeromq_4.1.3.bb
index 80907fa..5d0e2d5 100644
--- a/meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb
+++ b/meta-oe/recipes-connectivity/zeromq/zeromq_4.1.3.bb
@@ -2,12 +2,13 @@ DESCRIPTION = "ZeroMQ looks like an embeddable networking library but acts like
 HOMEPAGE = "http://www.zeromq.org"
 LICENSE = "LGPLv3+"
 LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=d5311495d952062e0e4fbba39cbf3de1"
+DEPENDS = "libsodium"
 
 SRC_URI = "http://download.zeromq.org/zeromq-${PV}.tar.gz \
            file://run-ptest \
            "
-SRC_URI[md5sum] = "f3c3defbb5ef6cc000ca65e529fdab3b"
-SRC_URI[sha256sum] = "1ef71d46e94f33e27dd5a1661ed626cd39be4d2d6967792a275040e34457d399"
+SRC_URI[md5sum] = "d0824317348cfb44b8692e19cc73dc3a"
+SRC_URI[sha256sum] = "61b31c830db377777e417235a24d3660a4bcc3f40d303ee58df082fcd68bf411"
 
 S = "${WORKDIR}/zeromq-${PV}"
 
@@ -16,9 +17,14 @@ S = "${WORKDIR}/zeromq-${PV}"
 #CFLAGS_append += "-O0"
 #CXXFLAGS_append += "-O0"
 
-inherit autotools ptest
+inherit autotools ptest pkgconfig
+
+do_compile_ptest () {
+	echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${B}/Makefile
+	oe_runmake buildtest-TESTS
+}
 
 do_install_ptest () {
         install -d ${D}${PTEST_PATH}/tests
-        install -m 0755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests
+        install -m 0755 ${B}/.libs/test_* ${D}${PTEST_PATH}/tests
 }
-- 
1.9.1



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

* Re: [PATCH 2/2][meta-oe] zeromq: upgrade to 4.1.3
  2015-08-20  5:39 ` [PATCH 2/2][meta-oe] zeromq: upgrade to 4.1.3 rongqing.li
@ 2015-08-20 13:30   ` Philip Balister
  0 siblings, 0 replies; 3+ messages in thread
From: Philip Balister @ 2015-08-20 13:30 UTC (permalink / raw)
  To: openembedded-devel

On 08/20/2015 01:39 AM, rongqing.li@windriver.com wrote:
> From: Roy Li <rongqing.li@windriver.com>
> 
> 4.1.3 has the dependence on libsodium,
> 4.1.3 asks pkgconfig bbclass to configure,
> add a target to build ptest, since the orignial check will build and run
> which is not suitable for cross-compile, and change the ptest installation
> directories

Do you know if we need to update zmqcpp and the python bindings? A quick
scan of the c++ bindings suggest we need to. I can send in a patch to
update that (I should anyway regardless) and will double check the
python stuff when I finally get home.

Philip

> 
> Signed-off-by: Roy Li <rongqing.li@windriver.com>
> ---
>  .../zeromq/{zeromq_4.0.4.bb => zeromq_4.1.3.bb}            | 14 ++++++++++----
>  1 file changed, 10 insertions(+), 4 deletions(-)
>  rename meta-oe/recipes-connectivity/zeromq/{zeromq_4.0.4.bb => zeromq_4.1.3.bb} (62%)
> 
> diff --git a/meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb b/meta-oe/recipes-connectivity/zeromq/zeromq_4.1.3.bb
> similarity index 62%
> rename from meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb
> rename to meta-oe/recipes-connectivity/zeromq/zeromq_4.1.3.bb
> index 80907fa..5d0e2d5 100644
> --- a/meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb
> +++ b/meta-oe/recipes-connectivity/zeromq/zeromq_4.1.3.bb
> @@ -2,12 +2,13 @@ DESCRIPTION = "ZeroMQ looks like an embeddable networking library but acts like
>  HOMEPAGE = "http://www.zeromq.org"
>  LICENSE = "LGPLv3+"
>  LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=d5311495d952062e0e4fbba39cbf3de1"
> +DEPENDS = "libsodium"
>  
>  SRC_URI = "http://download.zeromq.org/zeromq-${PV}.tar.gz \
>             file://run-ptest \
>             "
> -SRC_URI[md5sum] = "f3c3defbb5ef6cc000ca65e529fdab3b"
> -SRC_URI[sha256sum] = "1ef71d46e94f33e27dd5a1661ed626cd39be4d2d6967792a275040e34457d399"
> +SRC_URI[md5sum] = "d0824317348cfb44b8692e19cc73dc3a"
> +SRC_URI[sha256sum] = "61b31c830db377777e417235a24d3660a4bcc3f40d303ee58df082fcd68bf411"
>  
>  S = "${WORKDIR}/zeromq-${PV}"
>  
> @@ -16,9 +17,14 @@ S = "${WORKDIR}/zeromq-${PV}"
>  #CFLAGS_append += "-O0"
>  #CXXFLAGS_append += "-O0"
>  
> -inherit autotools ptest
> +inherit autotools ptest pkgconfig
> +
> +do_compile_ptest () {
> +	echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${B}/Makefile
> +	oe_runmake buildtest-TESTS
> +}
>  
>  do_install_ptest () {
>          install -d ${D}${PTEST_PATH}/tests
> -        install -m 0755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests
> +        install -m 0755 ${B}/.libs/test_* ${D}${PTEST_PATH}/tests
>  }
> 


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

end of thread, other threads:[~2015-08-20 13:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-20  5:39 [PATCH 1/2][meta-oe] libsodium: create recipe rongqing.li
2015-08-20  5:39 ` [PATCH 2/2][meta-oe] zeromq: upgrade to 4.1.3 rongqing.li
2015-08-20 13:30   ` Philip Balister

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox