All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libevent: 2.0.22 -> 2.1.8
@ 2017-04-24 11:54 Andrej Valek
  2017-04-24 12:01 ` Burton, Ross
  2017-04-25  6:11 ` [PATCH v2] " Andrej Valek
  0 siblings, 2 replies; 5+ messages in thread
From: Andrej Valek @ 2017-04-24 11:54 UTC (permalink / raw)
  To: openembedded-core

Update libevent to version 2.1.8 and fix test directory creation

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
---
 .../libevent/Makefile-missing-test-dir.patch       | 25 ++++++++++++++++++++++
 .../{libevent_2.0.22.bb => libevent_2.1.8.bb}      | 13 +++++------
 2 files changed, 32 insertions(+), 6 deletions(-)
 create mode 100644 meta/recipes-support/libevent/libevent/Makefile-missing-test-dir.patch
 rename meta/recipes-support/libevent/{libevent_2.0.22.bb => libevent_2.1.8.bb} (58%)

diff --git a/meta/recipes-support/libevent/libevent/Makefile-missing-test-dir.patch b/meta/recipes-support/libevent/libevent/Makefile-missing-test-dir.patch
new file mode 100644
index 0000000..2d308dc
--- /dev/null
+++ b/meta/recipes-support/libevent/libevent/Makefile-missing-test-dir.patch
@@ -0,0 +1,25 @@
+Fix missing test directory creation.
+
+Due to removed makefile.am/in files in test/sample/include 
+directories, output directories are not created in 
+configuration step. Compilation step will fails, when
+trying to write to non-existing directory.
+
+Upstream-Status: Inappropriate [Other]
+Workaround specific to our build system.
+
+Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
+Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
+
+diff --git a/libevent-2.1.8-stable/test/include.am b/libevent-2.1.8-stable/test/include.am
+index eea249f..d323dff 100644
+--- a/test/include.am
++++ b/test/include.am
+@@ -161,6 +161,7 @@ test_bench_httpclient_LDADD = $(LIBEVENT_GC_SECTIONS) libevent_core.la
+ test/regress.gen.c test/regress.gen.h: test/rpcgen-attempted
+ 
+ test/rpcgen-attempted: test/regress.rpc event_rpcgen.py test/rpcgen_wrapper.sh
++	@$(MKDIR_P) test
+ 	$(AM_V_GEN)date -u > $@
+ 	$(AM_V_at)if $(srcdir)/test/rpcgen_wrapper.sh $(srcdir)/test; then \
+ 	   true; \
diff --git a/meta/recipes-support/libevent/libevent_2.0.22.bb b/meta/recipes-support/libevent/libevent_2.1.8.bb
similarity index 58%
rename from meta/recipes-support/libevent/libevent_2.0.22.bb
rename to meta/recipes-support/libevent/libevent_2.1.8.bb
index df8a31c..fbcc76c 100644
--- a/meta/recipes-support/libevent/libevent_2.0.22.bb
+++ b/meta/recipes-support/libevent/libevent_2.1.8.bb
@@ -1,18 +1,19 @@
 SUMMARY = "An asynchronous event notification library"
 HOMEPAGE = "http://libevent.org/"
-BUGTRACKER = "http://sourceforge.net/tracker/?group_id=50884&atid=461322"
+BUGTRACKER = "https://github.com/libevent/libevent/issues"
 SECTION = "libs"
 
 LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=45c5316ff684bcfe2f9f86d8b1279559"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=17f20574c0b154d12236d5fbe964f549"
 
 SRC_URI = " \
-    ${SOURCEFORGE_MIRROR}/levent/${BP}-stable.tar.gz \
+    https://github.com/libevent/libevent/releases/download/release-${PV}-stable/${BP}-stable.tar.gz \
+    file://Makefile-missing-test-dir.patch \
     file://run-ptest \
 "
 
-SRC_URI[md5sum] = "c4c56f986aa985677ca1db89630a2e11"
-SRC_URI[sha256sum] = "71c2c49f0adadacfdbe6332a372c38cf9c8b7895bb73dabeaa53cdcc1d4e1fa3"
+SRC_URI[md5sum] = "f3eeaed018542963b7d2416ef1135ecc"
+SRC_URI[sha256sum] = "965cc5a8bb46ce4199a47e9b2c9e1cae3b137e8356ffdad6d94d3b9069b71dc2"
 
 UPSTREAM_CHECK_URI = "http://libevent.org/"
 
@@ -24,7 +25,7 @@ PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"
 inherit autotools
 
 # Needed for Debian packaging
-LEAD_SONAME = "libevent-2.0.so"
+LEAD_SONAME = "libevent-2.1.so"
 
 inherit ptest
 
-- 
2.1.4



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

* Re: [PATCH] libevent: 2.0.22 -> 2.1.8
  2017-04-24 11:54 [PATCH] libevent: 2.0.22 -> 2.1.8 Andrej Valek
@ 2017-04-24 12:01 ` Burton, Ross
  2017-04-24 12:44   ` Valek, Andrej
  2017-04-25  6:11 ` [PATCH v2] " Andrej Valek
  1 sibling, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-04-24 12:01 UTC (permalink / raw)
  To: Andrej Valek; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

On 24 April 2017 at 12:54, Andrej Valek <andrej.valek@siemens.com> wrote:

> +Fix missing test directory creation.
> +
> +Due to removed makefile.am/in files in test/sample/include
> +directories, output directories are not created in
> +configuration step. Compilation step will fails, when
> +trying to write to non-existing directory.
> +
> +Upstream-Status: Inappropriate [Other]
> +Workaround specific to our build system.


How is this specific to our builds and not just a build race?


> -LIC_FILES_CHKSUM = "file://LICENSE;md5=45c5316ff684bcfe2f9f86d8b1279559"
>
+LIC_FILES_CHKSUM = "file://LICENSE;md5=17f20574c0b154d12236d5fbe964f549"
>

Always explain why the checksum needed changing.

Ross

[-- Attachment #2: Type: text/html, Size: 1439 bytes --]

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

* Re: [PATCH] libevent: 2.0.22 -> 2.1.8
  2017-04-24 12:01 ` Burton, Ross
@ 2017-04-24 12:44   ` Valek, Andrej
  2017-04-24 14:30     ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Valek, Andrej @ 2017-04-24 12:44 UTC (permalink / raw)
  To: Burton, Ross; +Cc: openembedded-core

Hi Ross,

See below.

Andrej

> On 24 April 2017 at 12:54, Andrej Valek <andrej.valek@siemens.com> wrote:
> +Fix missing test directory creation.
> +
> +Due to removed makefile.am/in files in test/sample/include
> +directories, output directories are not created in
> +configuration step. Compilation step will fails, when
> +trying to write to non-existing directory.
> +
> +Upstream-Status: Inappropriate [Other]
> +Workaround specific to our build system.

> How is this specific to our builds and not just a build race?

Gcc used in OE-core has "dependency tracking" disabled and new version of libevent has problem with this.
 
> -LIC_FILES_CHKSUM = "file://LICENSE;md5=45c5316ff684bcfe2f9f86d8b1279559"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=17f20574c0b154d12236d5fbe964f549"

> Always explain why the checksum needed changing.

Sorry, I have missed it, there was code added under MIT license.
Is this acceptable for oe-core?
I could change LICENSE = "BSD" to LICENSE = "BSD & MIT" to reflect this.

> Ross


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

* Re: [PATCH] libevent: 2.0.22 -> 2.1.8
  2017-04-24 12:44   ` Valek, Andrej
@ 2017-04-24 14:30     ` Burton, Ross
  0 siblings, 0 replies; 5+ messages in thread
From: Burton, Ross @ 2017-04-24 14:30 UTC (permalink / raw)
  To: Valek, Andrej; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

On 24 April 2017 at 13:44, Valek, Andrej <andrej.valek@siemens.com> wrote:

> Sorry, I have missed it, there was code added under MIT license.
> Is this acceptable for oe-core?
> I could change LICENSE = "BSD" to LICENSE = "BSD & MIT" to reflect this.
>

Yes, BSD & MIT is accurate.

Ross

[-- Attachment #2: Type: text/html, Size: 742 bytes --]

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

* [PATCH v2] libevent: 2.0.22 -> 2.1.8
  2017-04-24 11:54 [PATCH] libevent: 2.0.22 -> 2.1.8 Andrej Valek
  2017-04-24 12:01 ` Burton, Ross
@ 2017-04-25  6:11 ` Andrej Valek
  1 sibling, 0 replies; 5+ messages in thread
From: Andrej Valek @ 2017-04-25  6:11 UTC (permalink / raw)
  To: openembedded-core

Update libevent to version 2.1.8 and fix test directory creation

License file has been changed due to new MIT license in source code.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
---
 .../libevent/Makefile-missing-test-dir.patch       | 27 ++++++++++++++++++++++
 .../{libevent_2.0.22.bb => libevent_2.1.8.bb}      | 15 ++++++------
 2 files changed, 35 insertions(+), 7 deletions(-)
 create mode 100644 meta/recipes-support/libevent/libevent/Makefile-missing-test-dir.patch
 rename meta/recipes-support/libevent/{libevent_2.0.22.bb => libevent_2.1.8.bb} (56%)

diff --git a/meta/recipes-support/libevent/libevent/Makefile-missing-test-dir.patch b/meta/recipes-support/libevent/libevent/Makefile-missing-test-dir.patch
new file mode 100644
index 0000000..8880bd0
--- /dev/null
+++ b/meta/recipes-support/libevent/libevent/Makefile-missing-test-dir.patch
@@ -0,0 +1,27 @@
+Fix missing test directory creation.
+
+GCC used in OE-core has "dependency tracking" disabled and
+libevent has problem with this.
+Due to removed makefile.am/in files in test/sample/include
+directories, output directories are not created in
+configuration step. Compilation step will fails, when
+trying to write to non-existing directory.
+
+Upstream-Status: Inappropriate [Other]
+Workaround specific to our build system.
+
+Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
+Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
+
+diff --git a/libevent-2.1.8-stable/test/include.am b/libevent-2.1.8-stable/test/include.am
+index eea249f..d323dff 100644
+--- a/test/include.am
++++ b/test/include.am
+@@ -161,6 +161,7 @@ test_bench_httpclient_LDADD = $(LIBEVENT_GC_SECTIONS) libevent_core.la
+ test/regress.gen.c test/regress.gen.h: test/rpcgen-attempted
+ 
+ test/rpcgen-attempted: test/regress.rpc event_rpcgen.py test/rpcgen_wrapper.sh
++	@$(MKDIR_P) test
+ 	$(AM_V_GEN)date -u > $@
+ 	$(AM_V_at)if $(srcdir)/test/rpcgen_wrapper.sh $(srcdir)/test; then \
+ 	   true; \
diff --git a/meta/recipes-support/libevent/libevent_2.0.22.bb b/meta/recipes-support/libevent/libevent_2.1.8.bb
similarity index 56%
rename from meta/recipes-support/libevent/libevent_2.0.22.bb
rename to meta/recipes-support/libevent/libevent_2.1.8.bb
index df8a31c..1270d62 100644
--- a/meta/recipes-support/libevent/libevent_2.0.22.bb
+++ b/meta/recipes-support/libevent/libevent_2.1.8.bb
@@ -1,18 +1,19 @@
 SUMMARY = "An asynchronous event notification library"
 HOMEPAGE = "http://libevent.org/"
-BUGTRACKER = "http://sourceforge.net/tracker/?group_id=50884&atid=461322"
+BUGTRACKER = "https://github.com/libevent/libevent/issues"
 SECTION = "libs"
 
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=45c5316ff684bcfe2f9f86d8b1279559"
+LICENSE = "BSD & MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=17f20574c0b154d12236d5fbe964f549"
 
 SRC_URI = " \
-    ${SOURCEFORGE_MIRROR}/levent/${BP}-stable.tar.gz \
+    https://github.com/libevent/libevent/releases/download/release-${PV}-stable/${BP}-stable.tar.gz \
+    file://Makefile-missing-test-dir.patch \
     file://run-ptest \
 "
 
-SRC_URI[md5sum] = "c4c56f986aa985677ca1db89630a2e11"
-SRC_URI[sha256sum] = "71c2c49f0adadacfdbe6332a372c38cf9c8b7895bb73dabeaa53cdcc1d4e1fa3"
+SRC_URI[md5sum] = "f3eeaed018542963b7d2416ef1135ecc"
+SRC_URI[sha256sum] = "965cc5a8bb46ce4199a47e9b2c9e1cae3b137e8356ffdad6d94d3b9069b71dc2"
 
 UPSTREAM_CHECK_URI = "http://libevent.org/"
 
@@ -24,7 +25,7 @@ PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"
 inherit autotools
 
 # Needed for Debian packaging
-LEAD_SONAME = "libevent-2.0.so"
+LEAD_SONAME = "libevent-2.1.so"
 
 inherit ptest
 
-- 
2.1.4



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

end of thread, other threads:[~2017-04-25  6:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-24 11:54 [PATCH] libevent: 2.0.22 -> 2.1.8 Andrej Valek
2017-04-24 12:01 ` Burton, Ross
2017-04-24 12:44   ` Valek, Andrej
2017-04-24 14:30     ` Burton, Ross
2017-04-25  6:11 ` [PATCH v2] " Andrej Valek

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.