[oe] [meta-networking][PATCH] tcpdump: remove unnecessary patch

2017-08-02 Thread Jose Alarcon
The removed patch added an unncessary (and incorrect) test for
cross compiling: if there is no libdlpi on the target, the test
will fail (as it should) and not add libdlpi to the list of libraries.

If we would be cross compiling for Solaris (e.g., compiling for SPARC
on Solaris x86 or for x86 on Solaris SPARC), we should check for libdlpi.
---
 .../tcpdump/tcpdump/tcpdump-configure-dlpi.patch   | 31 --
 .../recipes-support/tcpdump/tcpdump_4.9.0.bb   |  1 -
 2 files changed, 32 deletions(-)
 delete mode 100644 
meta-networking/recipes-support/tcpdump/tcpdump/tcpdump-configure-dlpi.patch

diff --git 
a/meta-networking/recipes-support/tcpdump/tcpdump/tcpdump-configure-dlpi.patch 
b/meta-networking/recipes-support/tcpdump/tcpdump/tcpdump-configure-dlpi.patch
deleted file mode 100644
index 50e2d54..000
--- 
a/meta-networking/recipes-support/tcpdump/tcpdump/tcpdump-configure-dlpi.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-[PATCH] tcpdump: cross-compiling not check dlpi.
-
-For cross-compiling on Linux platforms, we do not need to check libdlpi 
-since it is only placed on Solaris.
-Also, checking libdlpi in native /lib would cause do_qa_configure fail.
-
-Upstream-Status: Pending.
-
-Signed-off-by: Xin Ouyang 

- configure.in |4 +++-
- 1 files changed, 3 insertions(+), 1 deletions(-)
-
-diff --git a/configure.in b/configure.in
-index 7f9591c..ca277c0 100644
 a/configure.in
-+++ b/configure.in
-@@ -716,7 +716,9 @@ don't.])
- fi
- 
- # libdlpi is needed for Solaris 11 and later.
--AC_CHECK_LIB(dlpi, dlpi_walk, LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS", 
,-L/lib)
-+if test "$cross_compiling" != yes; then
-+  AC_CHECK_LIB(dlpi, dlpi_walk, LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib 
$LDFLAGS", ,-L/lib)
-+fi
- 
- dnl portability macros for getaddrinfo/getnameinfo
- dnl
--- 
-1.7.5.4
-
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump_4.9.0.bb 
b/meta-networking/recipes-support/tcpdump/tcpdump_4.9.0.bb
index 43e388c..c7123d7 100644
--- a/meta-networking/recipes-support/tcpdump/tcpdump_4.9.0.bb
+++ b/meta-networking/recipes-support/tcpdump/tcpdump_4.9.0.bb
@@ -8,7 +8,6 @@ DEPENDS = "libpcap"
 SRC_URI = " \
 http://www.tcpdump.org/release/${BP}.tar.gz \
 file://unnecessary-to-check-libpcap.patch \
-file://tcpdump-configure-dlpi.patch \
 file://add-ptest.patch \
 file://run-ptest \
 "
-- 
2.10.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-python][PATCH] python-pyusb: make recipe available as python3 version

2017-08-02 Thread S. Lockwood-Childs
Refactored existing python-pyusb recipe so that pyusb can also be built 
for python3. 

Signed-off-by: S. Lockwood-Childs 
---
 meta-python/recipes-devtools/python/python-pyusb.inc | 10 ++
 meta-python/recipes-devtools/python/python-pyusb_1.0.0b2.bb  | 12 ++--
 meta-python/recipes-devtools/python/python3-pyusb_1.0.0b2.bb |  2 ++
 3 files changed, 14 insertions(+), 10 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-pyusb.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-pyusb_1.0.0b2.bb

diff --git a/meta-python/recipes-devtools/python/python-pyusb.inc 
b/meta-python/recipes-devtools/python/python-pyusb.inc
new file mode 100644
index 000..af20109
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-pyusb.inc
@@ -0,0 +1,10 @@
+SUMMARY = "PyUSB provides USB access on the Python language"
+HOMEPAGE = "http://pyusb.sourceforge.net/;
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=50d46bda6248a0b4a46a6d59a66ee08e"
+DEPENDS += "libusb1"
+
+SRC_URI[md5sum] = "bc12e83ff3ef1045d4306d13a9955fc1"
+SRC_URI[sha256sum] = 
"14ec66077bdcd6f1aa9e892a0a35a54bb3c1ec56aa740ead64349c18f0186d19"
+
+inherit pypi
diff --git a/meta-python/recipes-devtools/python/python-pyusb_1.0.0b2.bb 
b/meta-python/recipes-devtools/python/python-pyusb_1.0.0b2.bb
index d279abc..bb73d9f 100644
--- a/meta-python/recipes-devtools/python/python-pyusb_1.0.0b2.bb
+++ b/meta-python/recipes-devtools/python/python-pyusb_1.0.0b2.bb
@@ -1,10 +1,2 @@
-SUMMARY = "PyUSB provides USB access on the Python language"
-HOMEPAGE = "http://pyusb.sourceforge.net/;
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=50d46bda6248a0b4a46a6d59a66ee08e"
-DEPENDS = "libusb1"
-
-SRC_URI[md5sum] = "bc12e83ff3ef1045d4306d13a9955fc1"
-SRC_URI[sha256sum] = 
"14ec66077bdcd6f1aa9e892a0a35a54bb3c1ec56aa740ead64349c18f0186d19"
-
-inherit pypi distutils
+inherit distutils
+require python-pyusb.inc
diff --git a/meta-python/recipes-devtools/python/python3-pyusb_1.0.0b2.bb 
b/meta-python/recipes-devtools/python/python3-pyusb_1.0.0b2.bb
new file mode 100644
index 000..813e6f0
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pyusb_1.0.0b2.bb
@@ -0,0 +1,2 @@
+inherit distutils3
+require python-pyusb.inc
-- 
1.9.4

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe][PATCH] imagemagick: upgrade from 7.0.5 to 7.0.6p4

2017-08-02 Thread Randy MacLeod

On 2017-08-02 01:21 PM, Koen Kooi wrote:

Oops, I could’ve sworn I have submitted it to meta-oe :/ Thanks for looking 
into this!


It's not working for me on qemux86 since python-wand
is looking for:
   libMagickWand-6.Q16HDRI and
   libMagickWand-7.Q16HDRI is the current version.
If I soft link to work-around that problem, there's another issue:
   ImportError: MagickWand shared library not found.

python-wand hasn't released a version newer than 0.4.4.
I'm not really interested in trying the git repo.

I’ll have a look at trying the git repo with your patch to update imagemagick 
and hopefully get it working well enough to get it into oe-core :)



Err,
The meta-yocto version is actually still on 0.4.3.
I updated to 0.4.4 and that didn't help.

A simple patch to require imagemagick version 7 does
get me one more step to:

AttributeError: /usr/lib/libMagickWand-7.Q16HDRI.so.3: undefined symbol: 
MagickGetImageChannelDepth


At first I thought this was due to the imagemagick .so being
striped when packaged but it's a bunch of function renames from 6 to 7
based on git. I asked if that had be fixed on the wand irc channel
and it hasn't. Known misbehaving wand:
  https://github.com/dahlia/wand/issues/287

../Randy



>>> from wand.image import Image
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.7/site-packages/wand/image.py", line 20, in 


from .api import MagickPixelPacket, libc, libmagick, library
  File "/usr/lib/python2.7/site-packages/wand/api.py", line 1394, in 


traceback.format_exc())
ImportError: MagickWand shared library not found or incompatible
Original exception was raised in:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/wand/api.py", line 370, in 


ctypes.c_int]
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/libMagickWand-7.Q16HDRI.so.3: undefined symbol: 
MagickGetImageChannelDepth


>>>



[15:46]  Hey, I'm trying to get wand to work with 
imagemagick-7.0.6p4 (in Yocto) -- several api have changed such as 
MagickGetImageChannelDepth -> MagickGetImageDepth or maybe just 
GetImageDepth
[15:47]  I've got the git repo and I'm working through it but I 
wonder if anyone has done this already and if a new tag is forthcoming 
to support imagemagick-7

[15:47] * vmeson searchs for/in the email list.
[15:47]  No one did that yet
[15:48]  Afaik
[15:48]  hongminh1e: thanks for the info. I might take a stab at 
it but it's not a high priority for me right now.






--
# Randy MacLeod. SMTS, Linux, Wind River
Direct: 613.963.1350 | 350 Terry Fox Drive, Suite 200, Ottawa, ON, 
Canada, K2K 2W5
>From cb6e77b7eacc70627d29d49375e3bcc802038171 Mon Sep 17 00:00:00 2001
From: Randy MacLeod 
Date: Wed, 2 Aug 2017 11:41:16 -0700
Subject: [PATCH 2/2] python-wand: require imagemagick version 7

Signed-off-by: Randy MacLeod 
---
 .../0001-Require-imagemagick-version-7.patch   | 26 ++
 .../recipes-devtools/python/python-wand_0.4.4.bb   |  4 +++-
 2 files changed, 29 insertions(+), 1 deletion(-)
 create mode 100644 meta-optee/recipes-devtools/python/python-wand/0001-Require-imagemagick-version-7.patch

diff --git a/meta-optee/recipes-devtools/python/python-wand/0001-Require-imagemagick-version-7.patch b/meta-optee/recipes-devtools/python/python-wand/0001-Require-imagemagick-version-7.patch
new file mode 100644
index 000..8c82a58
--- /dev/null
+++ b/meta-optee/recipes-devtools/python/python-wand/0001-Require-imagemagick-version-7.patch
@@ -0,0 +1,26 @@
+From 417dc68e0c370350d2936190e504abb27e287912 Mon Sep 17 00:00:00 2001
+From: Randy MacLeod 
+Date: Wed, 2 Aug 2017 13:21:28 -0400
+Subject: [PATCH] Require imagemagick version 7
+
+Signed-off-by: Randy MacLeod 
+---
+ wand/api.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/wand/api.py b/wand/api.py
+index 2c18513..651fb3f 100644
+--- a/wand/api.py
 b/wand/api.py
+@@ -55,7 +55,7 @@ def library_paths():
+ """
+ libwand = None
+ libmagick = None
+-versions = '', '-6', '-Q16', '-Q8', '-6.Q16'
++versions = '', '-7', '-Q16', '-Q8', '-7.Q16'
+ options = '', 'HDRI', 'HDRI-2'
+ system = platform.system()
+ magick_home = os.environ.get('MAGICK_HOME')
+-- 
+2.9.3
+
diff --git a/meta-optee/recipes-devtools/python/python-wand_0.4.4.bb b/meta-optee/recipes-devtools/python/python-wand_0.4.4.bb
index 1043987..9687998 100644
--- a/meta-optee/recipes-devtools/python/python-wand_0.4.4.bb
+++ b/meta-optee/recipes-devtools/python/python-wand_0.4.4.bb
@@ -6,7 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=170eafd687d4a2b950819cd5e067e6d5"
 
 SRCNAME = "wand"
 
-SRC_URI = 

Re: [oe] [meta-python][PATCH] add recipes for autobahn and txaio

2017-08-02 Thread Derek Straka
On Mon, Jul 31, 2017 at 1:52 PM, Kevron Rees 
wrote:

> Signed-off-by: Kevron Rees 
> ---
>  .../python-autobahn/python3-autobahn_17.7.1.bb | 16 
>  .../recipes-devtools/python/python3-txaio_2.8.1.bb | 43
> ++
>  2 files changed, 59 insertions(+)
>  create mode 100644 meta-python/recipes-connectivity/python-autobahn/p
> ython3-autobahn_17.7.1.bb
>  create mode 100644 meta-python/recipes-devtools/python/
> python3-txaio_2.8.1.bb
>
> diff --git a/meta-python/recipes-connectivity/python-autobahn/p
> ython3-autobahn_17.7.1.bb b/meta-python/recipes-
> connectivity/python-autobahn/python3-autobahn_17.7.1.bb
> new file mode 100644
> index 000..644fa6c
> --- /dev/null
> +++ b/meta-python/recipes-connectivity/python-autobahn/p
> ython3-autobahn_17.7.1.bb
> @@ -0,0 +1,16 @@
> +DESCRIPTION = "AutobahnPython provides a WebSocket (RFC6455, Hybi-10 to
> -17, Hixie-76) framework for creating WebSocket-based clients and servers. \
> +AutobahnPython also includes an implementation of WAMP (The WebSockets
> Application Messaging Protocol), a light-weight,  \
> +asynchronous RPC/PubSub over JSON/WebSocket protocol."
> +HOMEPAGE = "http://autobahn.ws/python;
> +
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = " file://autobahn/__init__.py;
> beginline=1;endline=17;md5=3efa50c72bcff15042722ebd09c54701"
> +
> +SRC_URI[md5sum] = "0458295eff8a05b09982e87125a1a2e8"
> +SRC_URI[sha256sum] = "801a318d5bf6776a60f7a93d715f83
> f7f12204b470019a339e4e7e14087c17e6"
> +
> +PYPI_PACKAGE_EXT = "tar.gz"
> +inherit pypi setuptools3
> +
> +RDEPENDS_${PN} = "python3 python3-txaio"

+
> diff --git a/meta-python/recipes-devtools/python/python3-txaio_2.8.1.bb
> b/meta-python/recipes-devtools/python/python3-txaio_2.8.1.bb
> new file mode 100644
> index 000..f6b72c5
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-txaio_2.8.1.bb
> @@ -0,0 +1,43 @@
> +# Recipe created by recipetool
> +# This is the basis of a recipe and may need further editing in order to
> be fully functional.
> +# (Feel free to remove these comments when editing.)
>
This should also be removed

> +
> +SUMMARY = "Compatibility API between asyncio/Twisted/Trollius"
> +HOMEPAGE = "https://github.com/crossbario/txaio;

+# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best
> guesses - it is
> +# your responsibility to verify that the values are complete and correct.
> +# NOTE: License in setup.py/PKGINFO is: MIT License
>
These should be removed

> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=97c0bda20ad1d845c6369c0e47a1cd98"
> +
> +SRC_URI = "https://pypi.python.org/packages/1a/e5/
> 7f9106acf4d12b6f5c30d1e654d8f0f3d7aec6fe13a4fe83895f331e10cf
> /txaio-${PV}.tar.gz"
> +SRC_URI[md5sum] = "2e36cbc6b34b5cacb1bf8a05c1ae114e"
> +SRC_URI[sha256sum] = "fe2e0e4d3a06705f86bbd351fdd1f3
> 9dae61755e44162375e024acbf32eafddb"
> +
> +S = "${WORKDIR}/txaio-${PV}"
> +
> +inherit setuptools3
> +
> +# The following configs & dependencies are from setuptools extras_require.
> +# These dependencies are optional, hence can be controlled via
> PACKAGECONFIG.
> +# The upstream names may not correspond exactly to bitbake package names.
> +#
> +# Uncomment this line to enable all the optional features.
> +#PACKAGECONFIG ?= "dev twisted all"

+PACKAGECONFIG[dev] = ",,,python3-mock python3-pep8 python3-pyenchant
> python3-pytest python3-pytest-cov python3-sphinx python3-sphinx_rtd_theme
> python3-sphinxcontrib-spelling python3-tox python3-twine"
>
 I'm a little confused as to what this is trying to do since most of these
packages do not have recipes.  The default right now will not include
Twisted and zope.interface, which are required dependencies

> +PACKAGECONFIG[twisted] = ",,,python3-twisted python3-zope-interface"
> +PACKAGECONFIG[all] = ",,,python3-twisted python-zope-interface"
> +
> +# WARNING: the following rdepends are from setuptools install_requires.
> These
> +# upstream names may not correspond exactly to bitbake package names.
>
Remove cruft

> +RDEPENDS_${PN} += "python3-six"
> +
> +# WARNING: the following rdepends are determined through basic analysis
> of the
> +# python sources, and might not be 100% accurate.

+#RDEPENDS_${PN} += "python3-contextlib python3-core python3-datetime
> python3-lang python3-logging"
>
Do you want to remove this line?

> +
> +
> +do_install_append() {
> +   echo "removing licence file because why is it installed here?"
> +   rm -rf ${D}/usr/share
> +}
> --
> 2.7.4
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe][PATCH] imagemagick: upgrade from 7.0.5 to 7.0.6p4

2017-08-02 Thread Koen Kooi


> Op 2 aug. 2017, om 17:29 heeft Randy MacLeod  
> het volgende geschreven:
> 
> On 2017-08-01 03:52 PM, Koen Kooi wrote:
>> Op 01-08-17 om 19:01 schreef Randy MacLeod:
>>> Signed-off-by: Randy MacLeod 
>> Does python-wand work with this version?
> 
> 
> Well, that's in meta-linaro but I took a look anyway... ;-)

Oops, I could’ve sworn I have submitted it to meta-oe :/ Thanks for looking 
into this!

> 
> It's not working for me on qemux86 since python-wand
> is looking for:
>   libMagickWand-6.Q16HDRI and
>   libMagickWand-7.Q16HDRI is the current version.
> If I soft link to work-around that problem, there's another issue:
>   ImportError: MagickWand shared library not found.
> 
> python-wand hasn't released a version newer than 0.4.4.
> I'm not really interested in trying the git repo.

I’ll have a look at trying the git repo with your patch to update imagemagick 
and hopefully get it working well enough to get it into oe-core :)


> 
> More unstructured logs below largely for me to reference
> should I come back to testing this package.
> 
> ../Randy
> 
> 
> First there are a bunch of dependencies missing from the wand recipe,
> which I started fixing like this:
> 
> -DEPENDS += " imagemagick-native"
> +DEPENDS += " imagemagick-native python-ctypes"
> 
> but then ditched to doing:
> 
> $ grep wand conf/local.conf
> IMAGE_INSTALL_append = " \
>   python-ctypes python-numbers python-contextlib \
>   python-io python-subprocess python-wand imagemagick"
> 
> 
> 
> qemux86 login: root
> root@qemux86:~# python
> Python 2.7.13 (default, Aug  1 2017, 17:41:39)
> [GCC 7.1.0] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
 from wand.image import Image
> Traceback (most recent call last):
>  File "", line 1, in 
>  File "/usr/lib/python2.7/site-packages/wand/image.py", line 20, in 
>from .api import MagickPixelPacket, libc, libmagick, library
>  File "/usr/lib/python2.7/site-packages/wand/api.py", line 206, in 
>'Try to install:\n  ' + msg)
> ImportError: MagickWand shared library not found.
> You probably had not installed ImageMagick library.
> Try to install:
>  http://docs.wand-py.org/en/latest/guide/install.html
 
> 
> 
> 
> root@qemux86:~# find /usr -name "*agick*so*"
> /usr/lib/libMagickWand-7.Q16HDRI.so.3
> /usr/lib/libMagickCore-7.Q16HDRI.so.3
> /usr/lib/libMagickWand-7.Q16HDRI.so.3.0.0
> /usr/lib/libMagick++-7.Q16HDRI.so.3
> /usr/lib/libMagick++-7.Q16HDRI.so.3.0.0
> /usr/lib/libMagickCore-7.Q16HDRI.so.3.0.0
> root@qemux86:~# QEMU 2.8.1.1 monitor - type 'help' for more information
> (qemu) q
> Cleanup
> rmacleod@ala-lpggp2$find 
> tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/ -name 
> "*MagickWand*" | grep so
> tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/imagemagick-dbg/usr/lib/.debug/libMagickWand-7.Q16HDRI.so.3.0.0
> tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/imagemagick-dev/usr/lib/libMagickWand-7.Q16HDRI.so
> tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/imagemagick-doc/usr/share/doc/ImageMagick-7/www/api/MagickWand/MagickWand_8h-source.html
> tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/imagemagick/usr/lib/libMagickWand-7.Q16HDRI.so.3.0.0
> tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/imagemagick/usr/lib/libMagickWand-7.Q16HDRI.so.3
> 
> 
> root@qemux86:~# cd /usr/lib/
> root@qemux86:/usr/lib# ln -s libMagickWand-7.Q16HDRI.so.3 
> libMagickWand-6.Q16HDRI.so.3
> root@qemux86:/usr/lib# ln -s libMagickWand-7.Q16HDRI.so.3.0.0 
> libMagickWand-6.Q16HDRI.so.3.0.0
> root@qemux86:/usr/lib# python
> Python 2.7.13 (default, Aug  1 2017, 17:41:39)
> [GCC 7.1.0] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from wand.image import Image
> Traceback (most recent call last):
>  File "", line 1, in 
>  File "/usr/lib/python2.7/site-packages/wand/image.py", line 20, in 
>from .api import MagickPixelPacket, libc, libmagick, library
>  File "/usr/lib/python2.7/site-packages/wand/api.py", line 206, in 
>'Try to install:\n  ' + msg)
> ImportError: MagickWand shared library not found.
> You probably had not installed ImageMagick library.
> Try to install:
>  http://docs.wand-py.org/en/latest/guide/install.html
> 
> 
>>> --- .../imagemagick/{imagemagick_7.0.5.bb => imagemagick_7.0.6.bb}  | 6 
>>> +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename
>>> meta-oe/recipes-support/imagemagick/{imagemagick_7.0.5.bb => 
>>> imagemagick_7.0.6.bb} (96%)
>>> 
>>> diff --git a/meta-oe/recipes-support/imagemagick/imagemagick_7.0.5.bb 
>>> b/meta-oe/recipes-support/imagemagick/imagemagick_7.0.6.bb similarity index 
>>> 96% rename from
>>> meta-oe/recipes-support/imagemagick/imagemagick_7.0.5.bb rename to 
>>> meta-oe/recipes-support/imagemagick/imagemagick_7.0.6.bb index 
>>> b8ee6e7be..6f967c3a1 100644 ---
>>> 

Re: [oe] [meta-oe][PATCH] imagemagick: upgrade from 7.0.5 to 7.0.6p4

2017-08-02 Thread Randy MacLeod

On 2017-08-01 03:52 PM, Koen Kooi wrote:

Op 01-08-17 om 19:01 schreef Randy MacLeod:

Signed-off-by: Randy MacLeod 


Does python-wand work with this version?



Well, that's in meta-linaro but I took a look anyway... ;-)

It's not working for me on qemux86 since python-wand
is looking for:
   libMagickWand-6.Q16HDRI and
   libMagickWand-7.Q16HDRI is the current version.
If I soft link to work-around that problem, there's another issue:
   ImportError: MagickWand shared library not found.

python-wand hasn't released a version newer than 0.4.4.
I'm not really interested in trying the git repo.

More unstructured logs below largely for me to reference
should I come back to testing this package.

../Randy


First there are a bunch of dependencies missing from the wand recipe,
which I started fixing like this:

-DEPENDS += " imagemagick-native"
+DEPENDS += " imagemagick-native python-ctypes"

but then ditched to doing:

$ grep wand conf/local.conf
IMAGE_INSTALL_append = " \
   python-ctypes python-numbers python-contextlib \
   python-io python-subprocess python-wand imagemagick"



qemux86 login: root
root@qemux86:~# python
Python 2.7.13 (default, Aug  1 2017, 17:41:39)
[GCC 7.1.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

from wand.image import Image

Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.7/site-packages/wand/image.py", line 20, in 


from .api import MagickPixelPacket, libc, libmagick, library
  File "/usr/lib/python2.7/site-packages/wand/api.py", line 206, in 


'Try to install:\n  ' + msg)
ImportError: MagickWand shared library not found.
You probably had not installed ImageMagick library.
Try to install:
  http://docs.wand-py.org/en/latest/guide/install.html






root@qemux86:~# find /usr -name "*agick*so*"
/usr/lib/libMagickWand-7.Q16HDRI.so.3
/usr/lib/libMagickCore-7.Q16HDRI.so.3
/usr/lib/libMagickWand-7.Q16HDRI.so.3.0.0
/usr/lib/libMagick++-7.Q16HDRI.so.3
/usr/lib/libMagick++-7.Q16HDRI.so.3.0.0
/usr/lib/libMagickCore-7.Q16HDRI.so.3.0.0
root@qemux86:~# QEMU 2.8.1.1 monitor - type 'help' for more information
(qemu) q
Cleanup
rmacleod@ala-lpggp2$find 
tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/ 
-name "*MagickWand*" | grep so

tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/imagemagick-dbg/usr/lib/.debug/libMagickWand-7.Q16HDRI.so.3.0.0
tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/imagemagick-dev/usr/lib/libMagickWand-7.Q16HDRI.so
tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/imagemagick-doc/usr/share/doc/ImageMagick-7/www/api/MagickWand/MagickWand_8h-source.html
tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/imagemagick/usr/lib/libMagickWand-7.Q16HDRI.so.3.0.0
tmp-glibc/work/core2-64-oe-linux/imagemagick/7.0.6-r0/packages-split/imagemagick/usr/lib/libMagickWand-7.Q16HDRI.so.3


root@qemux86:~# cd /usr/lib/
root@qemux86:/usr/lib# ln -s libMagickWand-7.Q16HDRI.so.3 
libMagickWand-6.Q16HDRI.so.3
root@qemux86:/usr/lib# ln -s libMagickWand-7.Q16HDRI.so.3.0.0 
libMagickWand-6.Q16HDRI.so.3.0.0

root@qemux86:/usr/lib# python
Python 2.7.13 (default, Aug  1 2017, 17:41:39)
[GCC 7.1.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from wand.image import Image
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.7/site-packages/wand/image.py", line 20, in 


from .api import MagickPixelPacket, libc, libmagick, library
  File "/usr/lib/python2.7/site-packages/wand/api.py", line 206, in 


'Try to install:\n  ' + msg)
ImportError: MagickWand shared library not found.
You probably had not installed ImageMagick library.
Try to install:
  http://docs.wand-py.org/en/latest/guide/install.html






--- .../imagemagick/{imagemagick_7.0.5.bb => imagemagick_7.0.6.bb}  | 6 
+++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename
meta-oe/recipes-support/imagemagick/{imagemagick_7.0.5.bb => 
imagemagick_7.0.6.bb} (96%)

diff --git a/meta-oe/recipes-support/imagemagick/imagemagick_7.0.5.bb 
b/meta-oe/recipes-support/imagemagick/imagemagick_7.0.6.bb similarity index 96% 
rename from
meta-oe/recipes-support/imagemagick/imagemagick_7.0.5.bb rename to 
meta-oe/recipes-support/imagemagick/imagemagick_7.0.6.bb index 
b8ee6e7be..6f967c3a1 100644 ---
a/meta-oe/recipes-support/imagemagick/imagemagick_7.0.5.bb +++ 
b/meta-oe/recipes-support/imagemagick/imagemagick_7.0.6.bb @@ -8,11 +8,11 @@ DEPENDS 
= "lcms bzip2 jpeg libpng
librsvg tiff zlib fftw freetype" # Important note: tarballs for all patchsets 
within a version are deleted when # a new pachset is created. To avoid multiple 
patches for each
patchset, try to # update to the last pachset of a version -PATCHSET = "6" +PATCHSET = 
"4" SRC_URI =
"http://www.imagemagick.org/download/releases/ImageMagick-${PV}-${PATCHSET}.tar.xz \ " 
-SRC_URI[md5sum] = 

Re: [oe] [meta-oe][morty][PATCH 0/6] merge devmem2 and gitver fixes from master

2017-08-02 Thread Alejandro Mery
On 02/08/17 00:37, akuster808 wrote:
>
> On 07/27/2017 09:44 AM, Alejandro Mery wrote:
>> On 13/07/17 18:03, Alejandro Mery wrote:
>>> On 26/06/17 19:38, akuster808 wrote:
 On 06/23/2017 01:37 PM, Denys Dmytriyenko wrote:
> Wasn't there already a submission for devmem2 backport on the list?
 yes. running a bit behind. pulling in today.
>>> ping :)
>> Hi Armin,
>>
>> if you don't have time at the moment to take care of morty/pyro maybe
>> you could appoint someone to temporarily take over... or no?
> I believe they are in pyro:
> http://cgit.openembedded.org/meta-openembedded/commit/meta-oe/recipes-support/devmem2?h=pyro=fc801961457fe2fbb24973bb43b302ad46044cb8
> http://cgit.openembedded.org/meta-openembedded/commit/meta-oe/recipes-support/devmem2?h=pyro=6c584374a599f6f8d3607f20ecfc13a67ccf1da1
>
> so what is missing from Pyro?

nothing now :) I'll send the requests for the gitver.bbclass stuff soon


> Morty pull request sent.

thank you!
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [PATCH] tcpdump: remove unnecessary patch

2017-08-02 Thread Jose Alarcon
The removed patch added an unncessary (and incorrect) test for
cross compiling: if there is no libdlpi on the target, the test
will fail (as it should) and not add libdlpi to the list of libraries.

If we would be cross compiling for Solaris (e.g., compiling for SPARC
on Solaris x86 or for x86 on Solaris SPARC), we should check for libdlpi.
---
 .../tcpdump/tcpdump/tcpdump-configure-dlpi.patch   | 31 --
 .../recipes-support/tcpdump/tcpdump_4.9.0.bb   |  1 -
 2 files changed, 32 deletions(-)
 delete mode 100644 
meta-networking/recipes-support/tcpdump/tcpdump/tcpdump-configure-dlpi.patch

diff --git 
a/meta-networking/recipes-support/tcpdump/tcpdump/tcpdump-configure-dlpi.patch 
b/meta-networking/recipes-support/tcpdump/tcpdump/tcpdump-configure-dlpi.patch
deleted file mode 100644
index 50e2d5439..0
--- 
a/meta-networking/recipes-support/tcpdump/tcpdump/tcpdump-configure-dlpi.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-[PATCH] tcpdump: cross-compiling not check dlpi.
-
-For cross-compiling on Linux platforms, we do not need to check libdlpi 
-since it is only placed on Solaris.
-Also, checking libdlpi in native /lib would cause do_qa_configure fail.
-
-Upstream-Status: Pending.
-
-Signed-off-by: Xin Ouyang 

- configure.in |4 +++-
- 1 files changed, 3 insertions(+), 1 deletions(-)
-
-diff --git a/configure.in b/configure.in
-index 7f9591c..ca277c0 100644
 a/configure.in
-+++ b/configure.in
-@@ -716,7 +716,9 @@ don't.])
- fi
- 
- # libdlpi is needed for Solaris 11 and later.
--AC_CHECK_LIB(dlpi, dlpi_walk, LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS", 
,-L/lib)
-+if test "$cross_compiling" != yes; then
-+  AC_CHECK_LIB(dlpi, dlpi_walk, LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib 
$LDFLAGS", ,-L/lib)
-+fi
- 
- dnl portability macros for getaddrinfo/getnameinfo
- dnl
--- 
-1.7.5.4
-
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump_4.9.0.bb 
b/meta-networking/recipes-support/tcpdump/tcpdump_4.9.0.bb
index 43e388ccc..c7123d799 100644
--- a/meta-networking/recipes-support/tcpdump/tcpdump_4.9.0.bb
+++ b/meta-networking/recipes-support/tcpdump/tcpdump_4.9.0.bb
@@ -8,7 +8,6 @@ DEPENDS = "libpcap"
 SRC_URI = " \
 http://www.tcpdump.org/release/${BP}.tar.gz \
 file://unnecessary-to-check-libpcap.patch \
-file://tcpdump-configure-dlpi.patch \
 file://add-ptest.patch \
 file://run-ptest \
 "
-- 
2.11.0

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe][PATCH] lvm2/libdevmapper: workaround build man failure

2017-08-02 Thread Hongxu Jia
On some host (ubuntu 1404), build manual failed.
...
./tools/man-generator --primary lvscan lvscan.8_des
Failed to stat description file lvscan.8_des.
...

Do not build man to workaround the issue.

Signed-off-by: Hongxu Jia 
---
 .../lvm2/files/0005-do-not-build-manual.patch  | 58 ++
 meta-oe/recipes-support/lvm2/lvm2.inc  |  1 +
 2 files changed, 59 insertions(+)
 create mode 100644 
meta-oe/recipes-support/lvm2/files/0005-do-not-build-manual.patch

diff --git a/meta-oe/recipes-support/lvm2/files/0005-do-not-build-manual.patch 
b/meta-oe/recipes-support/lvm2/files/0005-do-not-build-manual.patch
new file mode 100644
index 000..15aa9f5
--- /dev/null
+++ b/meta-oe/recipes-support/lvm2/files/0005-do-not-build-manual.patch
@@ -0,0 +1,58 @@
+From d8bb25e34d6533ba78eaae697771ee499a66706f Mon Sep 17 00:00:00 2001
+From: Hongxu Jia 
+Date: Wed, 2 Aug 2017 03:41:37 -0400
+Subject: [PATCH] do not build manual
+
+On some host (ubuntu 1404), build manual failed.
+...
+./tools/man-generator --primary lvscan lvscan.8_des
+Failed to stat description file lvscan.8_des.
+...
+
+Do not build man to workaround the issue.
+
+Upstream-Status: Pending
+
+Signed-off-by: Hongxu Jia 
+---
+ Makefile.in  | 4 ++--
+ configure.in | 1 -
+ 2 files changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 31d428d..24f89a2 100644
+--- a/Makefile.in
 b/Makefile.in
+@@ -18,7 +18,7 @@ top_builddir = @top_builddir@
+ abs_top_builddir = @abs_top_builddir@
+ abs_top_srcdir = @abs_top_srcdir@
+ 
+-SUBDIRS = conf daemons include lib libdaemon libdm man scripts tools
++SUBDIRS = conf daemons include lib libdaemon libdm scripts tools
+ 
+ ifeq ("@UDEV_RULES@", "yes")
+   SUBDIRS += udev
+@@ -69,7 +69,7 @@ liblvm.device-mapper: include.device-mapper
+ daemons.device-mapper: libdm.device-mapper
+ tools.device-mapper: libdm.device-mapper
+ scripts.device-mapper: include.device-mapper
+-device-mapper: tools.device-mapper daemons.device-mapper man.device-mapper
++device-mapper: tools.device-mapper daemons.device-mapper
+ 
+ ifeq ("@INTL@", "yes")
+ lib.pofile: include.pofile
+diff --git a/configure.in b/configure.in
+index 1dc8819..108ace4 100644
+--- a/configure.in
 b/configure.in
+@@ -2213,7 +2213,6 @@ libdm/Makefile
+ libdm/libdevmapper.pc
+ liblvm/Makefile
+ liblvm/liblvm2app.pc
+-man/Makefile
+ po/Makefile
+ python/Makefile
+ python/setup.py
+-- 
+2.8.1
+
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc 
b/meta-oe/recipes-support/lvm2/lvm2.inc
index c2dac95..179b044 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -13,6 +13,7 @@ SRC_URI = 
"ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \

file://0003-include-fcntl.h-for-O_-defines-and-fcntl-signature.patch \
file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \
file://0001-Avoid-bashisms-in-init-scripts.patch \
+   file://0005-do-not-build-manual.patch \
"
 S = "${WORKDIR}/LVM2.${PV}"
 
-- 
2.8.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel