All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] python-greenlet: uprev to 0.4.9
@ 2017-06-27  8:23 zhe.he
  2017-06-27  8:23 ` [PATCH] ovs:fix cross compilation failure zhe.he
  2017-06-27 17:26 ` [PATCH] python-greenlet: uprev to 0.4.9 Bruce Ashfield
  0 siblings, 2 replies; 5+ messages in thread
From: zhe.he @ 2017-06-27  8:23 UTC (permalink / raw)
  To: meta-virtualization

From: Amy Fong <amy.fong@windriver.com>

python-greenlet bugfixes from 0.3.4 - unstable issues. This resulted in
the docker-registry (in some build scenarios) crashing repeatedly.

    Traceback (most recent call last):
      File "/usr/lib64/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
        worker.init_process()
      File "/usr/lib64/python2.7/site-packages/gunicorn/workers/ggevent.py", line 193, in init_process
        super(GeventWorker, self).init_process()
      File "/usr/lib64/python2.7/site-packages/gunicorn/workers/base.py", line 120, in init_process
        self.run()
      File "/usr/lib64/python2.7/site-packages/gunicorn/workers/ggevent.py", line 117, in run
        gevent.sleep(1.0)
      File "/usr/lib64/python2.7/site-packages/gevent/hub.py", line 75, in sleep
        hub.wait(loop.timer(seconds, ref=ref))
      File "/usr/lib64/python2.7/site-packages/gevent/hub.py", line 341, in wait
        result = waiter.get()
      File "/usr/lib64/python2.7/site-packages/gevent/hub.py", line 568, in get
        return self.hub.switch()
      File "/usr/lib64/python2.7/site-packages/gevent/hub.py", line 331, in switch
        return greenlet.switch(self)
    SystemError: NULL result without error in PyObject_Call

    <repeat>

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: He Zhe <zhe.he@windriver.com>
---
 recipes-devtools/python/python-greenlet_0.4.9.bb | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 recipes-devtools/python/python-greenlet_0.4.9.bb

diff --git a/recipes-devtools/python/python-greenlet_0.4.9.bb b/recipes-devtools/python/python-greenlet_0.4.9.bb
new file mode 100644
index 0000000..fa35fa8
--- /dev/null
+++ b/recipes-devtools/python/python-greenlet_0.4.9.bb
@@ -0,0 +1,14 @@
+SUMMARY = "Python lightweight in-process concurrent programming"
+HOMEPAGE = "http://pypi.python.org/pypi/greenlet"
+SECTION = "devel/python"
+LICENSE = "MIT & PSF"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=03143d7a1a9f5d8a0fee825f24ca9c36 \
+                    file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f69a"
+SRC_URI = "http://pypi.python.org/packages/source/g/greenlet/greenlet-${PV}.tar.gz"
+SRC_URI[md5sum] = "00bb1822d8511cc85f052e89d1fd919b"
+SRC_URI[sha256sum] = "79f9b8bbbb1c599c66aed5e643e8b53bae697cae46e0acfc4ee461df48a90012"
+
+S = "${WORKDIR}/greenlet-${PV}"
+
+inherit distutils
+
-- 
2.8.1



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

* [PATCH] ovs:fix cross compilation failure
  2017-06-27  8:23 [PATCH] python-greenlet: uprev to 0.4.9 zhe.he
@ 2017-06-27  8:23 ` zhe.he
  2017-06-27  8:36   ` He Zhe
  2017-06-27 17:26 ` [PATCH] python-greenlet: uprev to 0.4.9 Bruce Ashfield
  1 sibling, 1 reply; 5+ messages in thread
From: zhe.he @ 2017-06-27  8:23 UTC (permalink / raw)
  To: meta-virtualization

From: He Zhe <zhe.he@windriver.com>

configure with_dpdk and cross compile fails with:
"configure: error: cannot check for file existence
when cross compiling"

This is due to the usages of AC_CHECK_FILES.

AC_CHECK_FILES only works when not cross compiling. It test
a feature of the host machine, and therefore, die when
cross-compiling.

The current patch put the check in condition, i.e. check only
if not cross-compiling.

This patch has been tested on ARM64 platform with DPDK16.07

UpstreamLink::https://mail.openvswitch.org/pipermail/ovs-dev/
2016-August/322005.html

(LOCAL REV: NOT UPSTREAM) -- Sent to meta-virtualization on <20170627>

Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
Signed-off-by: Yadi.hu <yadi.hu@windriver.com>
[ Adjust context to apply. Note that this patch is from mailing
  list but is not merged into upstream repo.]
Signed-off-by: He Zhe <zhe.he@windriver.com>
---
 .../files/fix-cross-compilation-failure.patch       | 21 +++++++++++++++++++++
 recipes-networking/openvswitch/openvswitch_git.bb   |  5 +++--
 2 files changed, 24 insertions(+), 2 deletions(-)
 create mode 100644 recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch

diff --git a/recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch b/recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch
new file mode 100644
index 0000000..2d2851a
--- /dev/null
+++ b/recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch
@@ -0,0 +1,21 @@
+openvswitch:fix cross compilation failure
+
+upstreamlink:https://mail.openvswitch.org/pipermail/ovs-dev/
+2016-August/322005.html
+
+--- git/acinclude.m4   2017-05-14 23:52:13.031712727 -0700
++++ git/acinclude.m4   2017-05-14 23:53:48.639691817 -0700
+@@ -180,9 +180,10 @@ AC_DEFUN([OVS_CHECK_DPDK], [
+         DPDK_INCLUDE="$with_dpdk/include"
+         # If 'with_dpdk' is passed install directory, point to headers
+         # installed in $DESTDIR/$prefix/include/dpdk
+-        AC_CHECK_FILE([$DPDK_INCLUDE/rte_config.h], [],
+-                      [AC_CHECK_FILE([$DPDK_INCLUDE/dpdk/rte_config.h],
+-                                     [DPDK_INCLUDE=$DPDK_INCLUDE/dpdk], [])])
++      if test ! -e "$DPDK_INCLUDE/rte_config.h" && \
++              test -e "$DPDK_INCLUDE/dpdk/rte_config.h"; then
++              DPDK_INCLUDE=$DPDK_INCLUDE/dpdk/rte_config.h
++        fi
+         DPDK_LIB_DIR="$with_dpdk/lib"
+         ;;
+     esac
diff --git a/recipes-networking/openvswitch/openvswitch_git.bb b/recipes-networking/openvswitch/openvswitch_git.bb
index 6ab0c40..9608095 100644
--- a/recipes-networking/openvswitch/openvswitch_git.bb
+++ b/recipes-networking/openvswitch/openvswitch_git.bb
@@ -30,12 +30,13 @@ SRC_URI = "file://openvswitch-switch \
            file://0001-use-the-linux-if_packet.h-Interface-directly.patch \
            file://0002-Define-WAIT_ANY-if-not-provided-by-system.patch \
            file://CVE-2017-9263.patch \
+           file://fix-cross-compilation-failure.patch \
            "
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=17b2c9d4c70853a09c0e143137754b35"
 
-PACKAGECONFIG ?= ""
-PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}/opt/dpdk/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,"
+PACKAGECONFIG ?= "dpdk"
+PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}/opt/dpdk/share/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,"
 
 # Don't compile kernel modules by default since it heavily depends on
 # kernel version. Use the in-kernel module for now.
-- 
2.8.1



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

* Re: [PATCH] ovs:fix cross compilation failure
  2017-06-27  8:23 ` [PATCH] ovs:fix cross compilation failure zhe.he
@ 2017-06-27  8:36   ` He Zhe
  0 siblings, 0 replies; 5+ messages in thread
From: He Zhe @ 2017-06-27  8:36 UTC (permalink / raw)
  To: meta-virtualization

Please ignore

On 2017年06月27日 16:23, zhe.he@windriver.com wrote:
> From: He Zhe <zhe.he@windriver.com>
>
> configure with_dpdk and cross compile fails with:
> "configure: error: cannot check for file existence
> when cross compiling"
>
> This is due to the usages of AC_CHECK_FILES.
>
> AC_CHECK_FILES only works when not cross compiling. It test
> a feature of the host machine, and therefore, die when
> cross-compiling.
>
> The current patch put the check in condition, i.e. check only
> if not cross-compiling.
>
> This patch has been tested on ARM64 platform with DPDK16.07
>
> UpstreamLink::https://mail.openvswitch.org/pipermail/ovs-dev/
> 2016-August/322005.html
>
> (LOCAL REV: NOT UPSTREAM) -- Sent to meta-virtualization on <20170627>
>
> Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
> Signed-off-by: Yadi.hu <yadi.hu@windriver.com>
> [ Adjust context to apply. Note that this patch is from mailing
>   list but is not merged into upstream repo.]
> Signed-off-by: He Zhe <zhe.he@windriver.com>
> ---
>  .../files/fix-cross-compilation-failure.patch       | 21 +++++++++++++++++++++
>  recipes-networking/openvswitch/openvswitch_git.bb   |  5 +++--
>  2 files changed, 24 insertions(+), 2 deletions(-)
>  create mode 100644 recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch
>
> diff --git a/recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch b/recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch
> new file mode 100644
> index 0000000..2d2851a
> --- /dev/null
> +++ b/recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch
> @@ -0,0 +1,21 @@
> +openvswitch:fix cross compilation failure
> +
> +upstreamlink:https://mail.openvswitch.org/pipermail/ovs-dev/
> +2016-August/322005.html
> +
> +--- git/acinclude.m4   2017-05-14 23:52:13.031712727 -0700
> ++++ git/acinclude.m4   2017-05-14 23:53:48.639691817 -0700
> +@@ -180,9 +180,10 @@ AC_DEFUN([OVS_CHECK_DPDK], [
> +         DPDK_INCLUDE="$with_dpdk/include"
> +         # If 'with_dpdk' is passed install directory, point to headers
> +         # installed in $DESTDIR/$prefix/include/dpdk
> +-        AC_CHECK_FILE([$DPDK_INCLUDE/rte_config.h], [],
> +-                      [AC_CHECK_FILE([$DPDK_INCLUDE/dpdk/rte_config.h],
> +-                                     [DPDK_INCLUDE=$DPDK_INCLUDE/dpdk], [])])
> ++      if test ! -e "$DPDK_INCLUDE/rte_config.h" && \
> ++              test -e "$DPDK_INCLUDE/dpdk/rte_config.h"; then
> ++              DPDK_INCLUDE=$DPDK_INCLUDE/dpdk/rte_config.h
> ++        fi
> +         DPDK_LIB_DIR="$with_dpdk/lib"
> +         ;;
> +     esac
> diff --git a/recipes-networking/openvswitch/openvswitch_git.bb b/recipes-networking/openvswitch/openvswitch_git.bb
> index 6ab0c40..9608095 100644
> --- a/recipes-networking/openvswitch/openvswitch_git.bb
> +++ b/recipes-networking/openvswitch/openvswitch_git.bb
> @@ -30,12 +30,13 @@ SRC_URI = "file://openvswitch-switch \
>             file://0001-use-the-linux-if_packet.h-Interface-directly.patch \
>             file://0002-Define-WAIT_ANY-if-not-provided-by-system.patch \
>             file://CVE-2017-9263.patch \
> +           file://fix-cross-compilation-failure.patch \
>             "
>  
>  LIC_FILES_CHKSUM = "file://COPYING;md5=17b2c9d4c70853a09c0e143137754b35"
>  
> -PACKAGECONFIG ?= ""
> -PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}/opt/dpdk/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,"
> +PACKAGECONFIG ?= "dpdk"
> +PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}/opt/dpdk/share/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,"
>  
>  # Don't compile kernel modules by default since it heavily depends on
>  # kernel version. Use the in-kernel module for now.



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

* Re: [PATCH] python-greenlet: uprev to 0.4.9
  2017-06-27  8:23 [PATCH] python-greenlet: uprev to 0.4.9 zhe.he
  2017-06-27  8:23 ` [PATCH] ovs:fix cross compilation failure zhe.he
@ 2017-06-27 17:26 ` Bruce Ashfield
  1 sibling, 0 replies; 5+ messages in thread
From: Bruce Ashfield @ 2017-06-27 17:26 UTC (permalink / raw)
  To: He Zhe; +Cc: meta-virtualization

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

merged.

Bruce

On Tue, Jun 27, 2017 at 4:23 AM, <zhe.he@windriver.com> wrote:

> From: Amy Fong <amy.fong@windriver.com>
>
> python-greenlet bugfixes from 0.3.4 - unstable issues. This resulted in
> the docker-registry (in some build scenarios) crashing repeatedly.
>
>     Traceback (most recent call last):
>       File "/usr/lib64/python2.7/site-packages/gunicorn/arbiter.py", line
> 507, in spawn_worker
>         worker.init_process()
>       File "/usr/lib64/python2.7/site-packages/gunicorn/workers/ggevent.py",
> line 193, in init_process
>         super(GeventWorker, self).init_process()
>       File "/usr/lib64/python2.7/site-packages/gunicorn/workers/base.py",
> line 120, in init_process
>         self.run()
>       File "/usr/lib64/python2.7/site-packages/gunicorn/workers/ggevent.py",
> line 117, in run
>         gevent.sleep(1.0)
>       File "/usr/lib64/python2.7/site-packages/gevent/hub.py", line 75,
> in sleep
>         hub.wait(loop.timer(seconds, ref=ref))
>       File "/usr/lib64/python2.7/site-packages/gevent/hub.py", line 341,
> in wait
>         result = waiter.get()
>       File "/usr/lib64/python2.7/site-packages/gevent/hub.py", line 568,
> in get
>         return self.hub.switch()
>       File "/usr/lib64/python2.7/site-packages/gevent/hub.py", line 331,
> in switch
>         return greenlet.switch(self)
>     SystemError: NULL result without error in PyObject_Call
>
>     <repeat>
>
> Signed-off-by: Amy Fong <amy.fong@windriver.com>
> Signed-off-by: He Zhe <zhe.he@windriver.com>
> ---
>  recipes-devtools/python/python-greenlet_0.4.9.bb | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>  create mode 100644 recipes-devtools/python/python-greenlet_0.4.9.bb
>
> diff --git a/recipes-devtools/python/python-greenlet_0.4.9.bb
> b/recipes-devtools/python/python-greenlet_0.4.9.bb
> new file mode 100644
> index 0000000..fa35fa8
> --- /dev/null
> +++ b/recipes-devtools/python/python-greenlet_0.4.9.bb
> @@ -0,0 +1,14 @@
> +SUMMARY = "Python lightweight in-process concurrent programming"
> +HOMEPAGE = "http://pypi.python.org/pypi/greenlet"
> +SECTION = "devel/python"
> +LICENSE = "MIT & PSF"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=03143d7a1a9f5d8a0fee825f24ca9c36 \
> +                    file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f6
> 9a"
> +SRC_URI = "http://pypi.python.org/packages/source/g/greenlet/
> greenlet-${PV}.tar.gz"
> +SRC_URI[md5sum] = "00bb1822d8511cc85f052e89d1fd919b"
> +SRC_URI[sha256sum] = "79f9b8bbbb1c599c66aed5e643e8b5
> 3bae697cae46e0acfc4ee461df48a90012"
> +
> +S = "${WORKDIR}/greenlet-${PV}"
> +
> +inherit distutils
> +
> --
> 2.8.1
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

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

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

* [PATCH] ovs:fix cross compilation failure
@ 2017-06-27  8:25 zhe.he
  0 siblings, 0 replies; 5+ messages in thread
From: zhe.he @ 2017-06-27  8:25 UTC (permalink / raw)
  To: meta-virtualization

From: He Zhe <zhe.he@windriver.com>

configure with_dpdk and cross compile fails with:
"configure: error: cannot check for file existence
when cross compiling"

This is due to the usages of AC_CHECK_FILES.

AC_CHECK_FILES only works when not cross compiling. It test
a feature of the host machine, and therefore, die when
cross-compiling.

The current patch put the check in condition, i.e. check only
if not cross-compiling.

This patch has been tested on ARM64 platform with DPDK16.07

UpstreamLink::https://mail.openvswitch.org/pipermail/ovs-dev/
2016-August/322005.html

Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
Signed-off-by: Yadi.hu <yadi.hu@windriver.com>
[ Adjust context to apply. Note that this patch is from mailing
  list but is not merged into upstream repo.]
Signed-off-by: He Zhe <zhe.he@windriver.com>
---
 .../files/fix-cross-compilation-failure.patch       | 21 +++++++++++++++++++++
 recipes-networking/openvswitch/openvswitch_git.bb   |  5 +++--
 2 files changed, 24 insertions(+), 2 deletions(-)
 create mode 100644 recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch

diff --git a/recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch b/recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch
new file mode 100644
index 0000000..2d2851a
--- /dev/null
+++ b/recipes-networking/openvswitch/files/fix-cross-compilation-failure.patch
@@ -0,0 +1,21 @@
+openvswitch:fix cross compilation failure
+
+upstreamlink:https://mail.openvswitch.org/pipermail/ovs-dev/
+2016-August/322005.html
+
+--- git/acinclude.m4   2017-05-14 23:52:13.031712727 -0700
++++ git/acinclude.m4   2017-05-14 23:53:48.639691817 -0700
+@@ -180,9 +180,10 @@ AC_DEFUN([OVS_CHECK_DPDK], [
+         DPDK_INCLUDE="$with_dpdk/include"
+         # If 'with_dpdk' is passed install directory, point to headers
+         # installed in $DESTDIR/$prefix/include/dpdk
+-        AC_CHECK_FILE([$DPDK_INCLUDE/rte_config.h], [],
+-                      [AC_CHECK_FILE([$DPDK_INCLUDE/dpdk/rte_config.h],
+-                                     [DPDK_INCLUDE=$DPDK_INCLUDE/dpdk], [])])
++      if test ! -e "$DPDK_INCLUDE/rte_config.h" && \
++              test -e "$DPDK_INCLUDE/dpdk/rte_config.h"; then
++              DPDK_INCLUDE=$DPDK_INCLUDE/dpdk/rte_config.h
++        fi
+         DPDK_LIB_DIR="$with_dpdk/lib"
+         ;;
+     esac
diff --git a/recipes-networking/openvswitch/openvswitch_git.bb b/recipes-networking/openvswitch/openvswitch_git.bb
index 6ab0c40..9608095 100644
--- a/recipes-networking/openvswitch/openvswitch_git.bb
+++ b/recipes-networking/openvswitch/openvswitch_git.bb
@@ -30,12 +30,13 @@ SRC_URI = "file://openvswitch-switch \
            file://0001-use-the-linux-if_packet.h-Interface-directly.patch \
            file://0002-Define-WAIT_ANY-if-not-provided-by-system.patch \
            file://CVE-2017-9263.patch \
+           file://fix-cross-compilation-failure.patch \
            "
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=17b2c9d4c70853a09c0e143137754b35"
 
-PACKAGECONFIG ?= ""
-PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}/opt/dpdk/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,"
+PACKAGECONFIG ?= "dpdk"
+PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}/opt/dpdk/share/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,"
 
 # Don't compile kernel modules by default since it heavily depends on
 # kernel version. Use the in-kernel module for now.
-- 
2.8.1



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

end of thread, other threads:[~2017-06-27 17:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-27  8:23 [PATCH] python-greenlet: uprev to 0.4.9 zhe.he
2017-06-27  8:23 ` [PATCH] ovs:fix cross compilation failure zhe.he
2017-06-27  8:36   ` He Zhe
2017-06-27 17:26 ` [PATCH] python-greenlet: uprev to 0.4.9 Bruce Ashfield
2017-06-27  8:25 [PATCH] ovs:fix cross compilation failure zhe.he

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.