[oe] [meta-python][PATCH] python3-paho-mqtt: add native,nativesdk support

2020-06-08 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 meta-python/recipes-devtools/python/python3-paho-mqtt_1.5.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-paho-mqtt_1.5.0.bb 
b/meta-python/recipes-devtools/python/python3-paho-mqtt_1.5.0.bb
index cc6f4dc8c..8bf80e601 100644
--- a/meta-python/recipes-devtools/python/python3-paho-mqtt_1.5.0.bb
+++ b/meta-python/recipes-devtools/python/python3-paho-mqtt_1.5.0.bb
@@ -20,3 +20,5 @@ RDEPENDS_${PN} = "\
 ${PYTHON_PN}-netclient \
 ${PYTHON_PN}-threading \
 "
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84876): 
https://lists.openembedded.org/g/openembedded-devel/message/84876
Mute This Topic: https://lists.openembedded.org/mt/74764134/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-networking][PATCH 1/3] mosquitto: add native, nativesdk support

2020-06-05 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 .../recipes-connectivity/mosquitto/mosquitto_1.6.10.bb  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.6.10.bb 
b/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.6.10.bb
index 31b5f678d..3961866da 100644
--- a/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.6.10.bb
+++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.6.10.bb
@@ -85,3 +85,5 @@ INITSCRIPT_PARAMS = "defaults 30"
 USERADD_PACKAGES = "${PN}"
 USERADD_PARAM_${PN} = "--system --no-create-home --shell /bin/false \
--user-group mosquitto"
+
+BBCLASSEXTEND += "native nativesdk"
-- 
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84820): 
https://lists.openembedded.org/g/openembedded-devel/message/84820
Mute This Topic: https://lists.openembedded.org/mt/74702547/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-networking][PATCH 2/3] msgpack-c: add native, nativesdk support

2020-06-05 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 meta-oe/recipes-devtools/msgpack/msgpack-c_3.2.1.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-devtools/msgpack/msgpack-c_3.2.1.bb 
b/meta-oe/recipes-devtools/msgpack/msgpack-c_3.2.1.bb
index d410dc6e0..5224f32b0 100644
--- a/meta-oe/recipes-devtools/msgpack/msgpack-c_3.2.1.bb
+++ b/meta-oe/recipes-devtools/msgpack/msgpack-c_3.2.1.bb
@@ -17,3 +17,5 @@ SRCREV = "8085ab8721090a447cf98bb802d1406ad7afe420"
 S = "${WORKDIR}/git"
 
 inherit cmake pkgconfig
+
+BBCLASSEXTEND += "native nativesdk"
-- 
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84821): 
https://lists.openembedded.org/g/openembedded-devel/message/84821
Mute This Topic: https://lists.openembedded.org/mt/74702548/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-networking][PATCH 3/3] mosquitto: typo fix

2020-06-05 Thread Martin Kelly
The "ssl" PACKAGECONFIG setting contains WITH_EC_OFF instead of
WITH_EC=OFF, resulting in a build break when "ssl" is not set.

Signed-off-by: Martin Kelly 
---
 .../recipes-connectivity/mosquitto/mosquitto_1.6.10.bb  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.6.10.bb 
b/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.6.10.bb
index 3961866da..9f6080336 100644
--- a/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.6.10.bb
+++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.6.10.bb
@@ -30,7 +30,7 @@ PACKAGECONFIG ??= "ssl dlt websockets \
   "
 
 PACKAGECONFIG[dns-srv] = "-DWITH_SRV=ON,-DWITH_SRV=OFF,c-ares"
-PACKAGECONFIG[ssl] = "-DWITH_TLS=ON -DWITH_TLS_PSK=ON 
-DWITH_EC=ON,-DWITH_TLS=OFF -DWITH_TLS_PSK=OFF -DWITH_EC_OFF,openssl"
+PACKAGECONFIG[ssl] = "-DWITH_TLS=ON -DWITH_TLS_PSK=ON 
-DWITH_EC=ON,-DWITH_TLS=OFF -DWITH_TLS_PSK=OFF -DWITH_EC=OFF,openssl"
 PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF,systemd"
 PACKAGECONFIG[websockets] = 
"-DWITH_WEBSOCKETS=ON,-DWITH_WEBSOCKETS=OFF,libwebsockets"
 PACKAGECONFIG[dlt] = "-DWITH_DLT=ON,-DWITH_DLT=OFF,dlt-daemon"
-- 
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84822): 
https://lists.openembedded.org/g/openembedded-devel/message/84822
Mute This Topic: https://lists.openembedded.org/mt/74702551/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH] python3-typing-extensions: add recipe for 3.7.4.2

2020-04-03 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 .../python/python3-typing-extensions_3.7.4.2.bb | 13 +
 1 file changed, 13 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-typing-extensions_3.7.4.2.bb

diff --git 
a/meta-python/recipes-devtools/python/python3-typing-extensions_3.7.4.2.bb 
b/meta-python/recipes-devtools/python/python3-typing-extensions_3.7.4.2.bb
new file mode 100644
index 0..51e9eda2e
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-typing-extensions_3.7.4.2.bb
@@ -0,0 +1,13 @@
+HOMEPAGE = "https://github.com/python/typing;
+LICENSE = "PSF"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=64fc2b30b67d0a8423c250e0386ed72f"
+
+# The name on PyPi is slightly different.
+PYPI_PACKAGE = "typing_extensions"
+
+SRC_URI[md5sum] = "f2674282966dc088d10170c2347431cc"
+SRC_URI[sha256sum] = 
"79ee589a3caca649a9bfd2a8de4709837400dfa00b6cc81962a1e6a1815969ae"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83659): 
https://lists.openembedded.org/g/openembedded-devel/message/83659
Mute This Topic: https://lists.openembedded.org/mt/72762816/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [oe] [meta-python][PATCH v2] python3-pint: upgrade 0.9 -> 0.11

2020-03-25 Thread Martin Kelly

On 3/25/20 12:46 PM, Khem Raj wrote:

On Wed, Mar 25, 2020 at 10:11 AM Martin Kelly  wrote:


On 3/25/20 9:59 AM, Khem Raj wrote:



On 3/25/20 9:48 AM, Martin Kelly wrote:

Also add a dependency on python3-setuptools-scm-native to make this
build with the newer version.



Can you rebase it on master-next please ?



I just did, and it applies cleanly with no changes (applying on top of
cfa5f5689: "python3-matplotlib: update to version 3.2.1"). Would you
like me to send an identical v3 anyway?

That aside, I will make sure to base future patches on master-next.




Description: [meta-python,v2] python3-pint: upgrade 0.9 -> 0.11
Applying: python3-pint: upgrade 0.9 -> 0.11
error: patch failed: meta-python/recipes-devtools/python/python-pint.inc:9
error: meta-python/recipes-devtools/python/python-pint.inc: patch does not apply
Patch failed at 0001 python3-pint: upgrade 0.9 -> 0.11
hint: Use 'git am --show-current-patch=diff' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
'git am' failed with exit status 128



I see now, it appears that git am is pickier about auto-merging than git 
rebase is, as it's failing while git rebase worked fine. I sent a v3 
rebased onto master-next, and I confirmed that git am succeeds.



Signed-off-by: Martin Kelly 
---
   meta-python/recipes-devtools/python/python-pint.inc | 6 --
   .../python/{python3-pint_0.9.bb => python3-pint_0.11.bb}| 0
   2 files changed, 4 insertions(+), 2 deletions(-)
   rename meta-python/recipes-devtools/python/{python3-pint_0.9.bb =>
python3-pint_0.11.bb} (100%)

diff --git a/meta-python/recipes-devtools/python/python-pint.inc
b/meta-python/recipes-devtools/python/python-pint.inc
index 0900d91d7..4a9300900 100644
--- a/meta-python/recipes-devtools/python/python-pint.inc
+++ b/meta-python/recipes-devtools/python/python-pint.inc
@@ -9,7 +9,9 @@ PYPI_PACKAGE := "Pint"
   inherit pypi
-SRC_URI[md5sum] = "d0681cb7cfaca9fc68ce7edab0d08d88"
-SRC_URI[sha256sum] =
"32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2"
+SRC_URI[md5sum] = "3a8f29c2a30efd35af4b5c5a224ef965"
+SRC_URI[sha256sum] =
"308f1070500e102f83b6adfca6db53debfce2ffc5d3cbe3f6c367da359b5cf4d"
+
+DEPENDS += "python3-setuptools-scm-native"
   BBCLASSEXTEND = "native"
diff --git a/meta-python/recipes-devtools/python/python3-pint_0.9.bb
b/meta-python/recipes-devtools/python/python3-pint_0.11.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pint_0.9.bb
rename to meta-python/recipes-devtools/python/python3-pint_0.11.bb






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83508): 
https://lists.openembedded.org/g/openembedded-devel/message/83508
Mute This Topic: https://lists.openembedded.org/mt/72545183/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH v3] python3-pint: upgrade 0.9 -> 0.11

2020-03-25 Thread Martin Kelly
Also add a dependency on python3-setuptools-scm-native to make this
build with the newer version.

Signed-off-by: Martin Kelly 
---
 meta-python/recipes-devtools/python/python-pint.inc | 6 --
 .../python/{python3-pint_0.9.bb => python3-pint_0.11.bb}| 0
 2 files changed, 4 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-pint_0.9.bb => 
python3-pint_0.11.bb} (100%)

diff --git a/meta-python/recipes-devtools/python/python-pint.inc 
b/meta-python/recipes-devtools/python/python-pint.inc
index b40800814..c58dc9076 100644
--- a/meta-python/recipes-devtools/python/python-pint.inc
+++ b/meta-python/recipes-devtools/python/python-pint.inc
@@ -9,7 +9,9 @@ PYPI_PACKAGE := "Pint"
 
 inherit pypi
 
-SRC_URI[md5sum] = "d0681cb7cfaca9fc68ce7edab0d08d88"
-SRC_URI[sha256sum] = 
"32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2"
+SRC_URI[md5sum] = "3a8f29c2a30efd35af4b5c5a224ef965"
+SRC_URI[sha256sum] = 
"308f1070500e102f83b6adfca6db53debfce2ffc5d3cbe3f6c367da359b5cf4d"
+
+DEPENDS += "python3-setuptools-scm-native"
 
 BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python3-pint_0.9.bb 
b/meta-python/recipes-devtools/python/python3-pint_0.11.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pint_0.9.bb
rename to meta-python/recipes-devtools/python/python3-pint_0.11.bb
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83507): 
https://lists.openembedded.org/g/openembedded-devel/message/83507
Mute This Topic: https://lists.openembedded.org/mt/72549632/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [oe] [meta-python][PATCH v2] python3-pint: upgrade 0.9 -> 0.11

2020-03-25 Thread Martin Kelly

On 3/25/20 9:59 AM, Khem Raj wrote:



On 3/25/20 9:48 AM, Martin Kelly wrote:

Also add a dependency on python3-setuptools-scm-native to make this
build with the newer version.



Can you rebase it on master-next please ?



I just did, and it applies cleanly with no changes (applying on top of 
cfa5f5689: "python3-matplotlib: update to version 3.2.1"). Would you 
like me to send an identical v3 anyway?


That aside, I will make sure to base future patches on master-next.


Signed-off-by: Martin Kelly 
---
  meta-python/recipes-devtools/python/python-pint.inc | 6 --
  .../python/{python3-pint_0.9.bb => python3-pint_0.11.bb}    | 0
  2 files changed, 4 insertions(+), 2 deletions(-)
  rename meta-python/recipes-devtools/python/{python3-pint_0.9.bb => 
python3-pint_0.11.bb} (100%)


diff --git a/meta-python/recipes-devtools/python/python-pint.inc 
b/meta-python/recipes-devtools/python/python-pint.inc

index 0900d91d7..4a9300900 100644
--- a/meta-python/recipes-devtools/python/python-pint.inc
+++ b/meta-python/recipes-devtools/python/python-pint.inc
@@ -9,7 +9,9 @@ PYPI_PACKAGE := "Pint"
  inherit pypi
-SRC_URI[md5sum] = "d0681cb7cfaca9fc68ce7edab0d08d88"
-SRC_URI[sha256sum] = 
"32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2"

+SRC_URI[md5sum] = "3a8f29c2a30efd35af4b5c5a224ef965"
+SRC_URI[sha256sum] = 
"308f1070500e102f83b6adfca6db53debfce2ffc5d3cbe3f6c367da359b5cf4d"

+
+DEPENDS += "python3-setuptools-scm-native"
  BBCLASSEXTEND = "native"
diff --git a/meta-python/recipes-devtools/python/python3-pint_0.9.bb 
b/meta-python/recipes-devtools/python/python3-pint_0.11.bb

similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pint_0.9.bb
rename to meta-python/recipes-devtools/python/python3-pint_0.11.bb




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83502): 
https://lists.openembedded.org/g/openembedded-devel/message/83502
Mute This Topic: https://lists.openembedded.org/mt/72545183/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [oe] [meta-python][PATCH] python3-pint: upgrade 0.9 -> 0.11

2020-03-25 Thread Martin Kelly

On 3/24/20 11:41 PM, Khem Raj wrote:

I seeing this

https://errors.yoctoproject.org/Errors/Details/398554/
https://errors.yoctoproject.org/Errors/Details/398552/



Sorry I missed this in the flurry of patches I sent out. It's fixed in v2.


On Tue, Mar 24, 2020 at 4:46 PM Martin Kelly  wrote:


Signed-off-by: Martin Kelly 
---
  meta-python/recipes-devtools/python/python-pint.inc   | 4 ++--
  .../python/{python3-pint_0.9.bb => python3-pint_0.11.bb}  | 0
  2 files changed, 2 insertions(+), 2 deletions(-)
  rename meta-python/recipes-devtools/python/{python3-pint_0.9.bb => 
python3-pint_0.11.bb} (100%)

diff --git a/meta-python/recipes-devtools/python/python-pint.inc 
b/meta-python/recipes-devtools/python/python-pint.inc
index 0900d91d7..41b3e2262 100644
--- a/meta-python/recipes-devtools/python/python-pint.inc
+++ b/meta-python/recipes-devtools/python/python-pint.inc
@@ -9,7 +9,7 @@ PYPI_PACKAGE := "Pint"

  inherit pypi

-SRC_URI[md5sum] = "d0681cb7cfaca9fc68ce7edab0d08d88"
-SRC_URI[sha256sum] = 
"32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2"
+SRC_URI[md5sum] = "3a8f29c2a30efd35af4b5c5a224ef965"
+SRC_URI[sha256sum] = 
"308f1070500e102f83b6adfca6db53debfce2ffc5d3cbe3f6c367da359b5cf4d"

  BBCLASSEXTEND = "native"
diff --git a/meta-python/recipes-devtools/python/python3-pint_0.9.bb 
b/meta-python/recipes-devtools/python/python3-pint_0.11.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pint_0.9.bb
rename to meta-python/recipes-devtools/python/python3-pint_0.11.bb
--
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83500): 
https://lists.openembedded.org/g/openembedded-devel/message/83500
Mute This Topic: https://lists.openembedded.org/mt/72530604/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH v2] python3-pint: upgrade 0.9 -> 0.11

2020-03-25 Thread Martin Kelly
Also add a dependency on python3-setuptools-scm-native to make this
build with the newer version.

Signed-off-by: Martin Kelly 
---
 meta-python/recipes-devtools/python/python-pint.inc | 6 --
 .../python/{python3-pint_0.9.bb => python3-pint_0.11.bb}| 0
 2 files changed, 4 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-pint_0.9.bb => 
python3-pint_0.11.bb} (100%)

diff --git a/meta-python/recipes-devtools/python/python-pint.inc 
b/meta-python/recipes-devtools/python/python-pint.inc
index 0900d91d7..4a9300900 100644
--- a/meta-python/recipes-devtools/python/python-pint.inc
+++ b/meta-python/recipes-devtools/python/python-pint.inc
@@ -9,7 +9,9 @@ PYPI_PACKAGE := "Pint"
 
 inherit pypi
 
-SRC_URI[md5sum] = "d0681cb7cfaca9fc68ce7edab0d08d88"
-SRC_URI[sha256sum] = 
"32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2"
+SRC_URI[md5sum] = "3a8f29c2a30efd35af4b5c5a224ef965"
+SRC_URI[sha256sum] = 
"308f1070500e102f83b6adfca6db53debfce2ffc5d3cbe3f6c367da359b5cf4d"
+
+DEPENDS += "python3-setuptools-scm-native"
 
 BBCLASSEXTEND = "native"
diff --git a/meta-python/recipes-devtools/python/python3-pint_0.9.bb 
b/meta-python/recipes-devtools/python/python3-pint_0.11.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pint_0.9.bb
rename to meta-python/recipes-devtools/python/python3-pint_0.11.bb
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83499): 
https://lists.openembedded.org/g/openembedded-devel/message/83499
Mute This Topic: https://lists.openembedded.org/mt/72545183/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH] python3-pint: upgrade 0.9 -> 0.11

2020-03-24 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 meta-python/recipes-devtools/python/python-pint.inc   | 4 ++--
 .../python/{python3-pint_0.9.bb => python3-pint_0.11.bb}  | 0
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-pint_0.9.bb => 
python3-pint_0.11.bb} (100%)

diff --git a/meta-python/recipes-devtools/python/python-pint.inc 
b/meta-python/recipes-devtools/python/python-pint.inc
index 0900d91d7..41b3e2262 100644
--- a/meta-python/recipes-devtools/python/python-pint.inc
+++ b/meta-python/recipes-devtools/python/python-pint.inc
@@ -9,7 +9,7 @@ PYPI_PACKAGE := "Pint"
 
 inherit pypi
 
-SRC_URI[md5sum] = "d0681cb7cfaca9fc68ce7edab0d08d88"
-SRC_URI[sha256sum] = 
"32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2"
+SRC_URI[md5sum] = "3a8f29c2a30efd35af4b5c5a224ef965"
+SRC_URI[sha256sum] = 
"308f1070500e102f83b6adfca6db53debfce2ffc5d3cbe3f6c367da359b5cf4d"
 
 BBCLASSEXTEND = "native"
diff --git a/meta-python/recipes-devtools/python/python3-pint_0.9.bb 
b/meta-python/recipes-devtools/python/python3-pint_0.11.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pint_0.9.bb
rename to meta-python/recipes-devtools/python/python3-pint_0.11.bb
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83485): 
https://lists.openembedded.org/g/openembedded-devel/message/83485
Mute This Topic: https://lists.openembedded.org/mt/72530604/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 06/17] python3-can: add missing RDEPENDS

2020-03-24 Thread Martin Kelly
python3-can has runtime dependencies on aenum and fcntl, but these were
missing, so add them.

Signed-off-by: Martin Kelly 
---
 meta-python/recipes-devtools/python/python3-can_3.3.2.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-can_3.3.2.bb 
b/meta-python/recipes-devtools/python/python3-can_3.3.2.bb
index 5159695f4..698eaf5b3 100644
--- a/meta-python/recipes-devtools/python/python3-can_3.3.2.bb
+++ b/meta-python/recipes-devtools/python/python3-can_3.3.2.bb
@@ -11,9 +11,11 @@ PYPI_PACKAGE="python-can"
 inherit pypi setuptools3
 
 RDEPENDS_${PN}_class-target += "\
+${PYTHON_PN}-aenum \
 ${PYTHON_PN}-ctypes \
 ${PYTHON_PN}-codecs \
 ${PYTHON_PN}-compression \
+${PYTHON_PN}-fcntl \
 ${PYTHON_PN}-logging \
 ${PYTHON_PN}-misc \
 ${PYTHON_PN}-netserver \
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83473): 
https://lists.openembedded.org/g/openembedded-devel/message/83473
Mute This Topic: https://lists.openembedded.org/mt/72529549/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 07/17] python3-simpleeval: add recipe for 0.9.10

2020-03-24 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 .../python/python3-simpleeval_0.9.10.bb   | 11 +++
 1 file changed, 11 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb

diff --git a/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb 
b/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb
new file mode 100644
index 0..633347a93
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb
@@ -0,0 +1,11 @@
+SUMMARY = "A simple, safe single expression evaluator library"
+HOMEPAGE = "https://pypi.org/project/simpleeval/;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENCE;md5=dc9277482effe59b734b004cbcc1fee7"
+
+SRC_URI[md5sum] = "f175fc12d408487ca26fa3905e0a6691"
+SRC_URI[sha256sum] = 
"692055488c2864637f6c2edb5fa48175978a2a07318009e7cf03c9790ca17bea"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83474): 
https://lists.openembedded.org/g/openembedded-devel/message/83474
Mute This Topic: https://lists.openembedded.org/mt/72529551/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 17/17] python3-cachecontrol: add recipe for 0.12.6

2020-03-24 Thread Martin Kelly
This recipe originally comes from meta-openstack, but it's
dependency-less, so it may as well live here and get wider use.

meta-openstack is MIT-licensed, so the recipe is compatible.

Signed-off-by: Martin Kelly 
---
 .../python/python3-cachecontrol_0.12.6.bb | 29 +++
 1 file changed, 29 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-cachecontrol_0.12.6.bb

diff --git a/meta-python/recipes-devtools/python/python3-cachecontrol_0.12.6.bb 
b/meta-python/recipes-devtools/python/python3-cachecontrol_0.12.6.bb
new file mode 100644
index 0..7c45ed330
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-cachecontrol_0.12.6.bb
@@ -0,0 +1,29 @@
+SUMMARY = "httplib2 caching for requests"
+HOMEPAGE = "https://pypi.org/project/CacheControl/;
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=6dc7e1b428eda03d850209fdbd6c71f1"
+
+# On PyPi, this is "CacheControl", rather than "cachecontrol", so we need to
+# override PYPI_PACKAGE so fetch succeeds.
+PYPI_PACKAGE = "CacheControl"
+
+SRC_URI[md5sum] = "5890b797f9b48b2b4cd1448cca89e396"
+SRC_URI[sha256sum] = 
"be9aa45477a134aee56c8fac518627e1154df063e85f67d4f83ce0ccc23688e8"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN} += "\
+python3-crypt \
+python3-datetime \
+python3-email \
+python3-lockfile \
+python3-json \
+python3-logging \
+python3-msgpack \
+python3-netclient \
+python3-pickle \
+python3-requests \
+python3-urllib3 \
+"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83484): 
https://lists.openembedded.org/g/openembedded-devel/message/83484
Mute This Topic: https://lists.openembedded.org/mt/72529562/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 08/17] python3-typeguard: add recipe for 2.7.1

2020-03-24 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 .../python/python3-typeguard_2.7.1.bb  | 18 ++
 1 file changed, 18 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-typeguard_2.7.1.bb

diff --git a/meta-python/recipes-devtools/python/python3-typeguard_2.7.1.bb 
b/meta-python/recipes-devtools/python/python3-typeguard_2.7.1.bb
new file mode 100644
index 0..b62b60564
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-typeguard_2.7.1.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Run-time type checker for Python"
+HOMEPAGE = "https://pypi.org/project/typeguard/;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f0e423eea5c91e7aa21bdb70184b3e53"
+
+SRC_URI[md5sum] = "ef743359de59f8fe17e7c5e3af70e2c5"
+SRC_URI[sha256sum] = 
"2d545c71e9439c21bcd7c28f5f55b3606e6106f7031ab58375656a1aed483ef2"
+
+inherit pypi setuptools3
+
+DEPENDS += "\
+python3-distutils-extra-native \
+python3-setuptools-scm-native \
+"
+
+RDEPENDS_${PN} += "python3-typing"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83475): 
https://lists.openembedded.org/g/openembedded-devel/message/83475
Mute This Topic: https://lists.openembedded.org/mt/72529552/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 11/17] python3-haversine: add recipe for 2.2.0

2020-03-24 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 .../python/python3-haversine_2.2.0.bb| 12 
 1 file changed, 12 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-haversine_2.2.0.bb

diff --git a/meta-python/recipes-devtools/python/python3-haversine_2.2.0.bb 
b/meta-python/recipes-devtools/python/python3-haversine_2.2.0.bb
new file mode 100644
index 0..fc2cc7d6f
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-haversine_2.2.0.bb
@@ -0,0 +1,12 @@
+SUMMARY = "Calculate the distance between 2 points on Earth"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+SRC_URI[md5sum] = "6b1badeb63aac6214c978d07a4ecd171"
+SRC_URI[sha256sum] = 
"b710aaf32c442a6d04aa89678be55e3f6c11f9752fc01c216e89b13120b36269"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN} += "python3-numpy"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83478): 
https://lists.openembedded.org/g/openembedded-devel/message/83478
Mute This Topic: https://lists.openembedded.org/mt/72529556/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 09/17] python3-iso3166: add recipe for 1.0.1

2020-03-24 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 .../python/python3-iso3166_1.0.1.bb | 13 +
 1 file changed, 13 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb

diff --git a/meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb 
b/meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb
new file mode 100644
index 0..23fc4eb75
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb
@@ -0,0 +1,13 @@
+SUMMARY = "Self-contained ISO 3166-1 country definitions"
+HOMEPAGE = "https://pypi.org/project/iso3166/;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5e2f4edc7e7408a82e4a1d05f229b695"
+
+SRC_URI[md5sum] = "53c313c7ae8721e40ddd5e7a01bbcb7e"
+SRC_URI[sha256sum] = 
"b1e58dbcf50fbb2c9c418ec7a6057f0cdb30b8f822ac852f72e71ba769dae8c5"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN} += "python3-numbers"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83476): 
https://lists.openembedded.org/g/openembedded-devel/message/83476
Mute This Topic: https://lists.openembedded.org/mt/72529553/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 15/17] python3-uritemplate: add recipe for 3.0.1

2020-03-24 Thread Martin Kelly
This recipe originally comes from meta-openstack, but it's
dependency-less, so it may as well live here and get wider use.
meta-openstack is MIT-licensed, so the recipe is compatible.

Also bump the version to 3.0.1, from the 3.0.0 currently in
meta-openstack.

Signed-off-by: Martin Kelly 
---
 .../python/python3-uritemplate_3.0.1.bb| 14 ++
 1 file changed, 14 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-uritemplate_3.0.1.bb

diff --git a/meta-python/recipes-devtools/python/python3-uritemplate_3.0.1.bb 
b/meta-python/recipes-devtools/python/python3-uritemplate_3.0.1.bb
new file mode 100644
index 0..952e954c5
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-uritemplate_3.0.1.bb
@@ -0,0 +1,14 @@
+# This recipe is originally from meta-openstack:
+# 
https://git.yoctoproject.org/cgit/cgit.cgi/meta-cloud-services/tree/meta-openstack/recipes-devtools/python/python3-uritemplate_3.0.0.bb?h=master
+
+SUMMARY = "Simple python library to deal with URI Templates."
+AUTHOR = "Ian Cordasco"
+LICENSE = "Apache-2.0 | BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=0f6d769bdcfacac3c1a1ffa568937fe0"
+
+SRC_URI[md5sum] = "869fb44fbd56713490db7272eb36c8ae"
+SRC_URI[sha256sum] = 
"5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83483): 
https://lists.openembedded.org/g/openembedded-devel/message/83483
Mute This Topic: https://lists.openembedded.org/mt/72529561/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 01/17] recipes-devtools: remove +x bit

2020-03-24 Thread Martin Kelly
The executable bit was erroneously set on these recipes.

Signed-off-by: Martin Kelly 
---
 meta-python/recipes-devtools/python/python3-pytz_2019.3.bb| 0
 meta-python/recipes-devtools/python/python3-regex_2020.1.8.bb | 0
 2 files changed, 0 insertions(+), 0 deletions(-)
 mode change 100755 => 100644 
meta-python/recipes-devtools/python/python3-pytz_2019.3.bb
 mode change 100755 => 100644 
meta-python/recipes-devtools/python/python3-regex_2020.1.8.bb

diff --git a/meta-python/recipes-devtools/python/python3-pytz_2019.3.bb 
b/meta-python/recipes-devtools/python/python3-pytz_2019.3.bb
old mode 100755
new mode 100644
diff --git a/meta-python/recipes-devtools/python/python3-regex_2020.1.8.bb 
b/meta-python/recipes-devtools/python/python3-regex_2020.1.8.bb
old mode 100755
new mode 100644
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83468): 
https://lists.openembedded.org/g/openembedded-devel/message/83468
Mute This Topic: https://lists.openembedded.org/mt/72529544/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 14/17] python3-sympy: add recipe for 1.5.1

2020-03-24 Thread Martin Kelly
This recipe is adapted from one in meta-jupyter, which is also
MIT-licensed.

Signed-off-by: Martin Kelly 
---
 .../python/python3-sympy_1.5.1.bb| 16 
 1 file changed, 16 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-sympy_1.5.1.bb

diff --git a/meta-python/recipes-devtools/python/python3-sympy_1.5.1.bb 
b/meta-python/recipes-devtools/python/python3-sympy_1.5.1.bb
new file mode 100644
index 0..c0c382a51
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-sympy_1.5.1.bb
@@ -0,0 +1,16 @@
+# This recipe is adapted from one in meta-jupyter:
+# 
https://github.com/Xilinx/meta-jupyter/blob/master/recipes-python/python3-sympy_1.1.bb
+
+SUMMARY = "Computer algebra system (CAS) in Python"
+HOMEPAGE = "https://pypi.org/project/sympy/;
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=611b41534dbf5aa01d7c827bf667ef66"
+
+SRC_URI[md5sum] = "b11b310c3e1642bf66e51038cb3c0021"
+SRC_URI[sha256sum] = 
"d77901d748287d15281f5ffe5b0fef62dd38f357c2b827c44ff07f35695f4e7e"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN} += "python3-mpmath"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83481): 
https://lists.openembedded.org/g/openembedded-devel/message/83481
Mute This Topic: https://lists.openembedded.org/mt/72529559/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 12/17] python3-polyline: add recipe for 1.4.0

2020-03-24 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 .../python/python3-polyline_1.4.0.bb| 13 +
 1 file changed, 13 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-polyline_1.4.0.bb

diff --git a/meta-python/recipes-devtools/python/python3-polyline_1.4.0.bb 
b/meta-python/recipes-devtools/python/python3-polyline_1.4.0.bb
new file mode 100644
index 0..3b3e2071f
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-polyline_1.4.0.bb
@@ -0,0 +1,13 @@
+SUMMARY = "A Python implementation of Google's Encoded Polyline Algorithm 
Format"
+HOMEPAGE = "https://pypi.org/project/polyline/;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=0fbd13500cabd06dd751ba6b2be304c6"
+
+SRC_URI[md5sum] = "b97c57378605c4a856c437569f95a0cb"
+SRC_URI[sha256sum] = 
"7c7f89d09a09c7b6161bdbfb4fd304b186fc7a2060fa4f31cb3f61c646a5c074"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN} += "python3-six"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83479): 
https://lists.openembedded.org/g/openembedded-devel/message/83479
Mute This Topic: https://lists.openembedded.org/mt/72529557/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 05/17] python3-aenum: add recipe for 2.2.3

2020-03-24 Thread Martin Kelly
This is a dependency for python3-can.

Signed-off-by: Martin Kelly 
---
 .../recipes-devtools/python/python3-aenum_2.2.3.bb| 11 +++
 1 file changed, 11 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-aenum_2.2.3.bb

diff --git a/meta-python/recipes-devtools/python/python3-aenum_2.2.3.bb 
b/meta-python/recipes-devtools/python/python3-aenum_2.2.3.bb
new file mode 100644
index 0..16d2a881f
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-aenum_2.2.3.bb
@@ -0,0 +1,11 @@
+SUMMARY = "Advanced Enumerations library"
+HOMEPAGE = "https://pypi.org/project/aenum/;
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://aenum/LICENSE;md5=c6a85477543f8b8591b9c1f82abebbe9"
+
+SRC_URI[md5sum] = "026786dbb37c15c2c8dc91fbf5828e97"
+SRC_URI[sha256sum] = 
"a4334cabf47c167d44ab5a6198837b80deec5d5bad1b5cf70c966c3a330260e8"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83472): 
https://lists.openembedded.org/g/openembedded-devel/message/83472
Mute This Topic: https://lists.openembedded.org/mt/72529548/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 00/17] Cleanup and new recipes

2020-03-24 Thread Martin Kelly
This patch series contains some miscellaneous cleanup and new python recipes
that I'm using for my own project but are more generally applicable.

Martin Kelly (17):
  recipes-devtools: remove +x bit
  python-msgpack: add native,nativesdk support
  python3-can: add native,nativesdk recipes
  python-pint: add nativesdk support
  python3-aenum: add recipe for 2.2.3
  python3-can: add missing RDEPENDS
  python3-simpleeval: add recipe for 0.9.10
  python3-typeguard: add recipe for 2.7.1
  python3-iso3166: add recipe for 1.0.1
  python3-geojson: add recipe for 2.5.0
  python3-haversine: add recipe for 2.2.0
  python3-polyline: add recipe for 1.4.0
  python3-mpmath: add recipe for 1.10
  python3-sympy: add recipe for 1.5.1
  python3-uritemplate: add recipe for 3.0.1
  python3-lockfile: add recipe for 0.12.2
  python3-cachecontrol: add recipe for 0.12.6

 .../python/python-msgpack.inc |  2 ++
 .../recipes-devtools/python/python-pint.inc   |  2 +-
 .../python/python3-aenum_2.2.3.bb | 11 +++
 .../python/python3-cachecontrol_0.12.6.bb | 29 +++
 .../python/python3-can_3.3.2.bb   |  4 +++
 .../python/python3-geojson_2.5.0.bb   | 13 +
 .../python/python3-haversine_2.2.0.bb | 12 
 .../python/python3-iso3166_1.0.1.bb   | 13 +
 .../python/python3-lockfile_0.12.2.bb | 17 +++
 .../python/python3-mpmath_1.1.0.bb| 16 ++
 .../python/python3-polyline_1.4.0.bb  | 13 +
 .../python/python3-pytz_2019.3.bb |  0
 .../python/python3-regex_2020.1.8.bb  |  0
 .../python/python3-simpleeval_0.9.10.bb   | 11 +++
 .../python/python3-sympy_1.5.1.bb | 16 ++
 .../python/python3-typeguard_2.7.1.bb | 18 
 .../python/python3-uritemplate_3.0.1.bb   | 14 +
 17 files changed, 190 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-aenum_2.2.3.bb
 create mode 100644 
meta-python/recipes-devtools/python/python3-cachecontrol_0.12.6.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-geojson_2.5.0.bb
 create mode 100644 
meta-python/recipes-devtools/python/python3-haversine_2.2.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb
 create mode 100644 
meta-python/recipes-devtools/python/python3-lockfile_0.12.2.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-mpmath_1.1.0.bb
 create mode 100644 
meta-python/recipes-devtools/python/python3-polyline_1.4.0.bb
 mode change 100755 => 100644 
meta-python/recipes-devtools/python/python3-pytz_2019.3.bb
 mode change 100755 => 100644 
meta-python/recipes-devtools/python/python3-regex_2020.1.8.bb
 create mode 100644 
meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-sympy_1.5.1.bb
 create mode 100644 
meta-python/recipes-devtools/python/python3-typeguard_2.7.1.bb
 create mode 100644 
meta-python/recipes-devtools/python/python3-uritemplate_3.0.1.bb

--
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83467): 
https://lists.openembedded.org/g/openembedded-devel/message/83467
Mute This Topic: https://lists.openembedded.org/mt/72529543/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 04/17] python-pint: add nativesdk support

2020-03-24 Thread Martin Kelly
This builds just fine with nativesdk, so let's enable it.

Signed-off-by: Martin Kelly 
---
 meta-python/recipes-devtools/python/python-pint.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python-pint.inc 
b/meta-python/recipes-devtools/python/python-pint.inc
index 0900d91d7..b40800814 100644
--- a/meta-python/recipes-devtools/python/python-pint.inc
+++ b/meta-python/recipes-devtools/python/python-pint.inc
@@ -12,4 +12,4 @@ inherit pypi
 SRC_URI[md5sum] = "d0681cb7cfaca9fc68ce7edab0d08d88"
 SRC_URI[sha256sum] = 
"32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2"
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83471): 
https://lists.openembedded.org/g/openembedded-devel/message/83471
Mute This Topic: https://lists.openembedded.org/mt/72529547/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 10/17] python3-geojson: add recipe for 2.5.0

2020-03-24 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 .../python/python3-geojson_2.5.0.bb | 13 +
 1 file changed, 13 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-geojson_2.5.0.bb

diff --git a/meta-python/recipes-devtools/python/python3-geojson_2.5.0.bb 
b/meta-python/recipes-devtools/python/python3-geojson_2.5.0.bb
new file mode 100644
index 0..7c3c23b22
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-geojson_2.5.0.bb
@@ -0,0 +1,13 @@
+SUMMARY = "Python bindings and utilities for GeoJSON"
+HOMEPAGE = "https://pypi.org/project/geojson/;
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=f48972abe5cddee79e301574742ed745"
+
+SRC_URI[md5sum] = "14753ed28678828b1de73f68b04e2324"
+SRC_URI[sha256sum] = 
"6e4bb7ace4226a45d9c8c8b1348b3fc43540658359f93c3f7e03efa9f15f658a"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN} += "python3-simplejson python3-math"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83477): 
https://lists.openembedded.org/g/openembedded-devel/message/83477
Mute This Topic: https://lists.openembedded.org/mt/72529554/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 16/17] python3-lockfile: add recipe for 0.12.2

2020-03-24 Thread Martin Kelly
Signed-off-by: Martin Kelly 
---
 .../python/python3-lockfile_0.12.2.bb   | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-lockfile_0.12.2.bb

diff --git a/meta-python/recipes-devtools/python/python3-lockfile_0.12.2.bb 
b/meta-python/recipes-devtools/python/python3-lockfile_0.12.2.bb
new file mode 100644
index 0..30b1297e7
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-lockfile_0.12.2.bb
@@ -0,0 +1,17 @@
+# This recipe is originally from meta-openstack:
+# 
https://git.yoctoproject.org/cgit/cgit.cgi/meta-cloud-services/tree/meta-openstack/recipes-devtools/python/python-lockfile_0.12.2.bb
+
+SUMMARY = "Platform-independent file locking module"
+HOMEPAGE = "https://pypi.org/project/lockfile/;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2340dffbbfea534b58f1349984eeef72"
+
+SRC_URI[md5sum] = "a6a1a82957a23afdf44cfdd039b65ff9"
+SRC_URI[sha256sum] = 
"6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799"
+
+inherit pypi setuptools3
+
+DEPENDS += "python3-distutils-extra-native python3-pbr-native"
+RDEPENDS_${PN} += "python3-sqlite3"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83482): 
https://lists.openembedded.org/g/openembedded-devel/message/83482
Mute This Topic: https://lists.openembedded.org/mt/72529560/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 13/17] python3-mpmath: add recipe for 1.10

2020-03-24 Thread Martin Kelly
This is a dependency for python3-sympy.

This recipe is adapted from one in meta-jupyter, which is also
MIT-licensed.

Signed-off-by: Martin Kelly 
---
 .../python/python3-mpmath_1.1.0.bb   | 16 
 1 file changed, 16 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-mpmath_1.1.0.bb

diff --git a/meta-python/recipes-devtools/python/python3-mpmath_1.1.0.bb 
b/meta-python/recipes-devtools/python/python3-mpmath_1.1.0.bb
new file mode 100644
index 0..7879a85cd
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-mpmath_1.1.0.bb
@@ -0,0 +1,16 @@
+# This recipe is adapted from one in meta-jupyter:
+# 
https://github.com/Xilinx/meta-jupyter/blob/master/recipes-python/python3-mpmath_0.19.bb
+
+SUMMARY = "Python library for arbitrary-precision floating-point arithmetic"
+HOMEPAGE = "https://pypi.org/project/mpmath/;
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=efe9feb00df0b763941f2b1bbac7c402"
+
+SRC_URI[md5sum] = "acb1cdddf38e16084628065b174ddbfe"
+SRC_URI[sha256sum] = 
"fc17abe05fbab3382b61a123c398508183406fa132e0223874578e20946499f6"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN} += "python3-image"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83480): 
https://lists.openembedded.org/g/openembedded-devel/message/83480
Mute This Topic: https://lists.openembedded.org/mt/72529558/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 02/17] python-msgpack: add native,nativesdk support

2020-03-24 Thread Martin Kelly
This builds fine with native and nativesdk, so let's add it to the
package.

Signed-off-by: Martin Kelly 
---
 meta-python/recipes-devtools/python/python-msgpack.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python-msgpack.inc 
b/meta-python/recipes-devtools/python/python-msgpack.inc
index adf5c3e9f..dba5dc44f 100644
--- a/meta-python/recipes-devtools/python/python-msgpack.inc
+++ b/meta-python/recipes-devtools/python/python-msgpack.inc
@@ -11,3 +11,5 @@ SRC_URI[sha256sum] = 
"ea3c2f859346fcd55fc46e96885301d9c2f7a36d453f5d8f2967840efa
 RDEPENDS_${PN}_class-target += "\
 ${PYTHON_PN}-io \
 "
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83469): 
https://lists.openembedded.org/g/openembedded-devel/message/83469
Mute This Topic: https://lists.openembedded.org/mt/72529545/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-python][PATCH 03/17] python3-can: add native,nativesdk recipes

2020-03-24 Thread Martin Kelly
This builds fine for native and nativesdk, so add recipes for it.

Signed-off-by: Martin Kelly 
---
 meta-python/recipes-devtools/python/python3-can_3.3.2.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-can_3.3.2.bb 
b/meta-python/recipes-devtools/python/python3-can_3.3.2.bb
index 4597795d5..5159695f4 100644
--- a/meta-python/recipes-devtools/python/python3-can_3.3.2.bb
+++ b/meta-python/recipes-devtools/python/python3-can_3.3.2.bb
@@ -20,3 +20,5 @@ RDEPENDS_${PN}_class-target += "\
 ${PYTHON_PN}-sqlite3 \
 ${PYTHON_PN}-wrapt \
 "
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83470): 
https://lists.openembedded.org/g/openembedded-devel/message/83470
Mute This Topic: https://lists.openembedded.org/mt/72529546/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [oe] meson.bbclass broken on rocko

2018-05-14 Thread Martin Kelly

On 05/11/2018 04:52 PM, robert_jos...@selinc.com wrote:

Martin Kelly <mke...@xevo.com> wrote on 05/09/2018 04:44:05 PM:


From: Martin Kelly <mke...@xevo.com>
To: robert_jos...@selinc.com, openembedded-devel@lists.openembedded.org,



Date: 05/09/2018 04:44 PM
Subject: Re: [oe] meson.bbclass broken on rocko

On 05/09/2018 02:04 PM, robert_jos...@selinc.com wrote:

I have a build based on poky that makes use of meson.bbclass from

meta-oe

that is now broken after a recent update to OE-core. When using the

latest

rocko branches from poky and meta-oe, my meson builds end up with the
wrong paths to ld and libc. For example, running ldd on one of my
binaries:

linux-vdso.so.1 (0x7fff4f9ee000)
libc.so.6 =>
/home/robert/yocto/kiosk/poky/build/tmp/sysroots-uninative/x86_64-

linux/lib/libc.so.6

(0x7f1136f8c000)
/home/robert/yocto/kiosk/poky/build/tmp/sysroots-uninative/x86_64-

linux/lib/ld-linux-x86-64.so.2

(0x7f113756)

Those paths going into my home directory are obviously not correct. I
bisected the issue, and commit

cead3c4925d39f8adc328007d8a8c1b23cc72842 in

openembedded-core is when the problem starts:
https://urldefense.proofpoint.com/v2/url?



u=http-3A__cgit.openembedded.org_openembedded-2Dcore_commit_-3Fh-3Drocko-26id-3Dcead3c4925d39f8adc328007d8a8c1b23cc72842=DwIBAg=zVFQZQ67ypsA9mYKSCqWmQHiVkCCaN-



Gb60_N6TVnLk=FXexzueMZc3SeYPHXBmsGdHLENOHmHsvnD0cO1_Z0j2tHI6VqrQPNkHBCZO8dAdc=JSVZRc5Fq4IsIwtkdFHpTXsgF8aCQ0vP6j_F7dT5tYc=OutJG7fOSrT6ANwnnyxx12eHu6yepO-

b2NWHJeP93x0=


When using the tip of rocko, I can make the issue go away by removing

this

export from meson.bbclass:

export LDFLAGS = "${BUILD_LDFLAGS}"

I'm not really familiar with how this works, but it looks like the

change

to BUILD_LDFLAGS in uninative.bbclass is forcing the binaries to use

the

uninative ld, which isn't desired here. I assume meson.bbclass should

not

be setting LDFLAGS using ${BUILD_LDFLAGS}.

I can send a patch removing this export, but it feels like all the

exports

in meson.bbclass are incorrect. The class has been reworked and moved

to

OE-core for sumo, so I can send a patch backporting the entire class

if

that is preferred.



Does the issue go away with the oe-core version of meson? If so, I would



be in favor of backporting the entire class. From my memory of the
changes between meta-oe and oe-core, some of them are significant and it



wouldn't surprise me if important bugs were fixed.


Yes, the OE-core version of meson.bbclass works fine when I copy it to my
rocko builds. I'll send a patch to backport the entire class.



Sounds good to me; I would support such a patch, as in this case, I 
think the older version is likely just broken and thus using it is 
really the riskier thing to do.



Thanks,
Robert


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


Re: [oe] meson.bbclass broken on rocko

2018-05-09 Thread Martin Kelly

On 05/09/2018 02:04 PM, robert_jos...@selinc.com wrote:

I have a build based on poky that makes use of meson.bbclass from meta-oe
that is now broken after a recent update to OE-core. When using the latest
rocko branches from poky and meta-oe, my meson builds end up with the
wrong paths to ld and libc. For example, running ldd on one of my
binaries:

linux-vdso.so.1 (0x7fff4f9ee000)
libc.so.6 =>
/home/robert/yocto/kiosk/poky/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6
(0x7f1136f8c000)
/home/robert/yocto/kiosk/poky/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
(0x7f113756)

Those paths going into my home directory are obviously not correct. I
bisected the issue, and commit cead3c4925d39f8adc328007d8a8c1b23cc72842 in
openembedded-core is when the problem starts:
https://urldefense.proofpoint.com/v2/url?u=http-3A__cgit.openembedded.org_openembedded-2Dcore_commit_-3Fh-3Drocko-26id-3Dcead3c4925d39f8adc328007d8a8c1b23cc72842=DwIBAg=zVFQZQ67ypsA9mYKSCqWmQHiVkCCaN-Gb60_N6TVnLk=FXexzueMZc3SeYPHXBmsGdHLENOHmHsvnD0cO1_Z0j2tHI6VqrQPNkHBCZO8dAdc=JSVZRc5Fq4IsIwtkdFHpTXsgF8aCQ0vP6j_F7dT5tYc=OutJG7fOSrT6ANwnnyxx12eHu6yepO-b2NWHJeP93x0=

When using the tip of rocko, I can make the issue go away by removing this
export from meson.bbclass:
  
export LDFLAGS = "${BUILD_LDFLAGS}"


I'm not really familiar with how this works, but it looks like the change
to BUILD_LDFLAGS in uninative.bbclass is forcing the binaries to use the
uninative ld, which isn't desired here. I assume meson.bbclass should not
be setting LDFLAGS using ${BUILD_LDFLAGS}.

I can send a patch removing this export, but it feels like all the exports
in meson.bbclass are incorrect. The class has been reworked and moved to
OE-core for sumo, so I can send a patch backporting the entire class if
that is preferred.



Does the issue go away with the oe-core version of meson? If so, I would 
be in favor of backporting the entire class. From my memory of the 
changes between meta-oe and oe-core, some of them are significant and it 
wouldn't surprise me if important bugs were fixed.



Thanks,
Robert


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


[oe] [meta-oe][PATCH 1/3] libmbim: upgrade to 1.16

2018-05-08 Thread Martin Kelly
This is needed for the next version of modemmanager.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
A similar patch was also sent by Khem Raj; that patch is just as good, but I
wanted to send this in the same series because the modemmanager upgrade requires
a libmbim upgrade.

 .../libmbim/{libmbim_1.14.0.bb => libmbim_1.16.0.bb}  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-connectivity/libmbim/{libmbim_1.14.0.bb => 
libmbim_1.16.0.bb} (82%)

diff --git a/meta-oe/recipes-connectivity/libmbim/libmbim_1.14.0.bb 
b/meta-oe/recipes-connectivity/libmbim/libmbim_1.16.0.bb
similarity index 82%
rename from meta-oe/recipes-connectivity/libmbim/libmbim_1.14.0.bb
rename to meta-oe/recipes-connectivity/libmbim/libmbim_1.16.0.bb
index f89ef9d57..5260c0f14 100644
--- a/meta-oe/recipes-connectivity/libmbim/libmbim_1.14.0.bb
+++ b/meta-oe/recipes-connectivity/libmbim/libmbim_1.16.0.bb
@@ -14,5 +14,5 @@ inherit autotools pkgconfig bash-completion
 SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BPN}-${PV}.tar.xz \
file://clang.patch \
 "
-SRC_URI[md5sum] = "2ed809e65c85353d3ab59e372890e549"
-SRC_URI[sha256sum] = 
"ca8d52a95a18cbabae8f15f83f1572316e888b6504f946e6645d24405127ab5b"
+SRC_URI[md5sum] = "76ea4d8381989919b1d9b91c818fed80"
+SRC_URI[sha256sum] = 
"c8ca50beeddd4b43309df5b698917268303bf176cea58fe4fe53d5bf0e93fac2"
-- 
2.11.0

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


[oe] [meta-oe][PATCH 2/3] modemmanager: upgrade to 1.7.991

2018-05-08 Thread Martin Kelly
This version has a ublox plugin for expanded modem support. The underlying issue
that enum-conversion.patch fixes appears to already have been fixed upstream, so
we can drop the patch.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 .../modemmanager/modemmanager/enum-conversion.patch | 21 -
 ...odemmanager_1.6.4.bb => modemmanager_1.7.991.bb} |  9 -
 2 files changed, 4 insertions(+), 26 deletions(-)
 delete mode 100644 
meta-oe/recipes-connectivity/modemmanager/modemmanager/enum-conversion.patch
 rename meta-oe/recipes-connectivity/modemmanager/{modemmanager_1.6.4.bb => 
modemmanager_1.7.991.bb} (88%)

diff --git 
a/meta-oe/recipes-connectivity/modemmanager/modemmanager/enum-conversion.patch 
b/meta-oe/recipes-connectivity/modemmanager/modemmanager/enum-conversion.patch
deleted file mode 100644
index a3fb0f3eb..0
--- 
a/meta-oe/recipes-connectivity/modemmanager/modemmanager/enum-conversion.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-Fixes errors found bt Clang
-
-| ../../ModemManager-1.6.4/src/mm-bearer-qmi.c:774:50: error: implicit 
conversion from enumeration type 'MMBearerStatus' to different enumeration type 
'MMBearerConnectionStatus' [-Werror,-Wenum-conversion]
-| MMBearerConnectionStatus bearer_status = mm_base_bearer_get_status 
(MM_BASE_BEARER (self));
-|  ~   
^
-| 1 error generated.
-
-
-Index: ModemManager-1.6.4/src/mm-bearer-qmi.c
-===
 ModemManager-1.6.4.orig/src/mm-bearer-qmi.c
-+++ ModemManager-1.6.4/src/mm-bearer-qmi.c
-@@ -771,7 +771,7 @@ packet_service_status_indication_cb (Qmi
- _status,
- NULL,
- NULL)) {
--MMBearerConnectionStatus bearer_status = mm_base_bearer_get_status 
(MM_BASE_BEARER (self));
-+MMBearerConnectionStatus bearer_status = 
(MMBearerConnectionStatus)mm_base_bearer_get_status (MM_BASE_BEARER (self));
- 
- if (connection_status == QMI_WDS_CONNECTION_STATUS_DISCONNECTED &&
- bearer_status != MM_BEARER_CONNECTION_STATUS_DISCONNECTED &&
diff --git a/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.6.4.bb 
b/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.7.991.bb
similarity index 88%
rename from meta-oe/recipes-connectivity/modemmanager/modemmanager_1.6.4.bb
rename to meta-oe/recipes-connectivity/modemmanager/modemmanager_1.7.991.bb
index e60cd4b74..4f9400169 100644
--- a/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.6.4.bb
+++ b/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.7.991.bb
@@ -11,11 +11,10 @@ inherit gnomebase gettext systemd vala 
gobject-introspection bash-completion
 
 DEPENDS = "glib-2.0 libgudev dbus-glib intltool-native"
 
-SRC_URI = 
"http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz \
-   file://enum-conversion.patch \
-"
-SRC_URI[md5sum] = "06488186c7dd53f8104183b86f7a1568"
-SRC_URI[sha256sum] = 
"cdd5b4cb1e4d7643643a28ccbfc4bb354bfa9cb89a77ea160ebdf7926171c668"
+SRC_URI = 
"http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz;
+
+SRC_URI[md5sum] = "4efe6a240cef212bf8855c95424e7c7f"
+SRC_URI[sha256sum] = 
"4e366243bd4983f2e6efe35cb901cf5da51939307b5d6299fe622a9fcf411745"
 
 S = "${WORKDIR}/ModemManager-${PV}"
 
-- 
2.11.0

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


[oe] [meta-oe][PATCH 3/3] modemmanager: fix mbim disable string

2018-05-08 Thread Martin Kelly
The current string used to disable mbim is "--enable-mbim=no", which is
producing a warning. It should be "--with-mdim=no", so change it.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-connectivity/modemmanager/modemmanager_1.7.991.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.7.991.bb 
b/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.7.991.bb
index 4f9400169..b1a718dbf 100644
--- a/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.7.991.bb
+++ b/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.7.991.bb
@@ -25,7 +25,7 @@ PACKAGECONFIG ??= "mbim qmi polkit \
 PACKAGECONFIG[systemd] = 
"--with-systemdsystemunitdir=${systemd_unitdir}/system/,,"
 PACKAGECONFIG[polkit] = "--with-polkit=yes,--with-polkit=no,polkit"
 # Support WWAN modems and devices which speak the Mobile Interface Broadband 
Model (MBIM) protocol.
-PACKAGECONFIG[mbim] = "--with-mbim,--enable-mbim=no,libmbim"
+PACKAGECONFIG[mbim] = "--with-mbim,--with-mbim=no,libmbim"
 # Support WWAN modems and devices which speak the Qualcomm MSM Interface (QMI) 
protocol.
 PACKAGECONFIG[qmi] = "--with-qmi,--without-qmi,libqmi"
 
-- 
2.11.0

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


Re: [oe] [meta-networking][PATCH] waf-samba.bbclass: No longer inherit waf.bbclass

2018-02-16 Thread Martin Kelly

On 02/11/2018 01:51 PM, Joshua Watt wrote:

waf-samba.bbclass uses waf in a very different way than the "standard"
method that waf.bbclass targets and ends getting very little useful
functionality from that class.

Signed-off-by: Joshua Watt 
---
  meta-networking/classes/waf-samba.bbclass | 29 +++--
  1 file changed, 27 insertions(+), 2 deletions(-)

diff --git a/meta-networking/classes/waf-samba.bbclass 
b/meta-networking/classes/waf-samba.bbclass
index e49017624..4b1499fd4 100644
--- a/meta-networking/classes/waf-samba.bbclass
+++ b/meta-networking/classes/waf-samba.bbclass
@@ -1,7 +1,7 @@
  # waf is a build system which is used by samba related project.
  # Obtain details from https://wiki.samba.org/index.php/Waf
-#
-inherit qemu pythonnative waf
+#
+inherit qemu pythonnative
  
  DEPENDS += "qemu-native libxslt-native docbook-xsl-stylesheets-native python"
  
@@ -21,6 +21,31 @@ CONFIGUREOPTS = " --prefix=${prefix} \

${PACKAGECONFIG_CONFARGS} \
  "
  
+# avoids build breaks when using no-static-libs.inc

+DISABLE_STATIC = ""
+
+def get_waf_parallel_make(d):
+pm = d.getVar('PARALLEL_MAKE')
+if pm:
+# look for '-j' and throw other options (e.g. '-l') away
+# because they might have different meaning in bjam
+pm = pm.split()
+while pm:
+v = None
+opt = pm.pop(0)
+if opt == '-j':
+v = pm.pop(0)
+elif opt.startswith('-j'):
+v = opt[2:].strip()
+else:
+v = None
+
+if v:
+v = min(64, int(v))
+return '-j' + str(v)
+
+return ""
+
  # Three methods for waf cross compile:
  # 1. answers:
  #Only --cross-answers - try the cross-answers file, and if



Though I am not a waf expert and cannot vouch for that part of the 
patch, this patch fixes a build error I'm seeing after the removal of 
get_waf_parallel_make from waf.bbclass, so thank you for that!

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


[oe] [meta-python][PATCH 2/3] python-pyparsing: add nativesdk support

2018-02-08 Thread Martin Kelly
Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-python/recipes-devtools/python/python-pyparsing.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python-pyparsing.inc 
b/meta-python/recipes-devtools/python/python-pyparsing.inc
index 19f6d55f9..e30839f87 100644
--- a/meta-python/recipes-devtools/python/python-pyparsing.inc
+++ b/meta-python/recipes-devtools/python/python-pyparsing.inc
@@ -18,4 +18,4 @@ RDEPENDS_${PN} += " \
 ${PYTHON_PN}-threading \
 "
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
-- 
2.11.0

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


[oe] [meta-python][PATCH 3/3] python-cython: add nativesdk support

2018-02-08 Thread Martin Kelly
Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-python/recipes-devtools/python/python-cython.inc | 12 +++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python-cython.inc 
b/meta-python/recipes-devtools/python/python-cython.inc
index ddaed1d16..dee647ef1 100644
--- a/meta-python/recipes-devtools/python/python-cython.inc
+++ b/meta-python/recipes-devtools/python/python-cython.inc
@@ -5,7 +5,7 @@ SECTION = "devel/python"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
 PYPI_PACKAGE = "Cython"
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
 
 SRC_URI[md5sum] = "6149238287d662bd5d5e572482252493"
 SRC_URI[sha256sum] = 
"6a00512de1f2e3ce66ba35c5420babaef1fe2d9c43a8faab4080b0dbcc26bc64"
@@ -22,6 +22,16 @@ RDEPENDS_${PN}_class-target += "\
 ${PYTHON_PN}-xml \
 "
 
+RDEPENDS_${PN}_class-nativesdk += "\
+nativesdk-${PYTHON_PN}-misc \
+nativesdk-${PYTHON_PN}-netserver \
+nativesdk-${PYTHON_PN}-pkgutil \
+nativesdk-${PYTHON_PN}-pyparsing \
+nativesdk-${PYTHON_PN}-setuptools \
+nativesdk-${PYTHON_PN}-shell \
+nativesdk-${PYTHON_PN}-xml \
+"
+
 do_install_append() {
# Make sure we use /usr/bin/env python
for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
-- 
2.11.0

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


[oe] [meta-python][PATCH 1/3] python-cython: fill in missing rdepends

2018-02-08 Thread Martin Kelly
There are a few runtime dependencies not listed, so add them.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-python/recipes-devtools/python/python-cython.inc | 5 +
 1 file changed, 5 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python-cython.inc 
b/meta-python/recipes-devtools/python/python-cython.inc
index 6e424a90c..ddaed1d16 100644
--- a/meta-python/recipes-devtools/python/python-cython.inc
+++ b/meta-python/recipes-devtools/python/python-cython.inc
@@ -13,8 +13,13 @@ SRC_URI[sha256sum] = 
"6a00512de1f2e3ce66ba35c5420babaef1fe2d9c43a8faab4080b0dbcc
 inherit pypi
 
 RDEPENDS_${PN}_class-target += "\
+${PYTHON_PN}-misc \
 ${PYTHON_PN}-netserver \
+${PYTHON_PN}-pkgutil \
+${PYTHON_PN}-pyparsing \
+${PYTHON_PN}-setuptools \
 ${PYTHON_PN}-shell \
+${PYTHON_PN}-xml \
 "
 
 do_install_append() {
-- 
2.11.0

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


[oe] [meta-python][pyro][PATCH] python-cython: mangle scripts to use /usr/bin/env python

2018-02-06 Thread Martin Kelly
From: "S. Lockwood-Childs" <s...@vctlabs.com>

This prevents runtime failure "bad interpreter: No such file or directory"
from running native cython when the native python is installed
at a long path, exceeding the 128-character limit for shebang lines
on linux. Exceeding the limit was already possible when using a long
path for topdir, but it got easier to exceed after the switch to per-recipe
sysroots.

Signed-off-by: Martin Jansa <martin.ja...@gmail.com>
Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-python/recipes-devtools/python/python-cython.inc | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python-cython.inc 
b/meta-python/recipes-devtools/python/python-cython.inc
index 1ecdcc9fd..da39d14c0 100644
--- a/meta-python/recipes-devtools/python/python-cython.inc
+++ b/meta-python/recipes-devtools/python/python-cython.inc
@@ -17,3 +17,10 @@ RDEPENDS_${PN}_class-target += "\
 ${PYTHON_PN}-subprocess \
 ${PYTHON_PN}-shell \
 "
+
+do_install_append() {
+   # Make sure we use /usr/bin/env python
+   for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
+   sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
+   done
+}
-- 
2.11.0

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


Re: [oe] [global meta-oe PATCH] Stop using base_conditional utility method

2018-01-31 Thread Martin Kelly
Would it possible to fast-track this to master? It is breaking all my 
builds.


On 01/31/2018 07:53 AM, Otavio Salvador wrote:

On Wed, Jan 31, 2018 at 1:37 PM, Martin Jansa  wrote:

FWIW: I've sent the same change yesterday.


Great; it was not merged yet it seems as I got parse errors :-(  Armin?


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


Re: [oe] [meta-oe][rocko][PATCH] gpsd: fix /etc/default/gpsd ALTERNATIVES logic

2018-01-03 Thread Martin Kelly

On 12/28/2017 06:56 AM, Ramon Fried wrote:

From: Martin Kelly <mke...@xevo.com>

The ALTERNATIVES logic for the /etc/default/gpsd file is broken,
specifying ALTERNATIVE_LINK without brackets. In addition, it refers to
ALTERNATIVE_PATH, which update-alternatives.bbclass doesn't use.

With this patch, /etc/default/gpsd correctly gets a default link
pointing to /etc/default/gpsd.default. Currently, no such link gets
created, and gpsd starts off disabled by default since it's missing this
config file.

Signed-off-by: Martin Kelly <mke...@xevo.com>
Signed-off-by: Armin Kuster <akuster...@gmail.com>
(cherry picked from commit 194f855b44319c7834ba11e6e0a77ef279970a04)
Signed-off-by: Ramon Fried <rfr...@codeaurora.org>
---
  meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb 
b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
index f8e6a2b13..47fed2d97 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
@@ -129,6 +129,5 @@ SYSTEMD_SERVICE_${PN} = "${PN}.socket"
  
  
  ALTERNATIVE_${PN} = "gpsd-defaults"

-ALTERNATIVE_PATH = "${sysconfdir}/default/gpsd.default"
-ALTERNATIVE_LINK = "${sysconfdir}/default/gpsd"
-ALTERNATIVE_TARGET = "${sysconfdir}/default/gpsd.default"
+ALTERNATIVE_LINK_NAME[gpsd-defaults] = "${sysconfdir}/default/gpsd"
+ALTERNATIVE_TARGET[gpsd-defaults] = "${sysconfdir}/default/gpsd.default"



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


Re: [oe] [meta-oe][PATCH v2] meson: export native env only for native build

2017-12-06 Thread Martin Kelly

Hi all,

Since meson has not yet transition to OE-core, could we consider this 
patch for meta-OE in the meantime? It is causing bugs in my build, so 
I'm hoping to drop my private patch backports.


On 11/14/2017 10:22 AM, Martin Kelly wrote:

Although the meson crossfile should take care of setting the right cross
environment for a target build, meson slurps any set CFLAGS, CXXFLAGS,
LDFLAGS, and CPPFLAGS from the environment and injects them into the
build (see mesonbuild/environment.py:get_args_from_envvars for details).

This means that we are seeing native CFLAGS, CXXFLAGS, LDFLAGS, and
CPPFLAGS in the target build, which is wrong and causes build failures
when target and native have libraries in common (the linker gets
confused and bails).

That said, we *do* need to set certain vars for all builds so that meson
can find the right build tools. Without this, meson will fail during its
sanity checking step because it will determine the build tools to be
unrunnable since they output target instead of native artifacts.

The solution to all of this is to set CC, CXX, LD, and AR globally to
the native tools while setting the other native vars *only* for the
native build. For target builds, these vars will get overridden by the
cross file as we expect.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
  meta-oe/classes/meson.bbclass | 27 ---
  1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass
index a09bc240d..6e38b4bd5 100644
--- a/meta-oe/classes/meson.bbclass
+++ b/meta-oe/classes/meson.bbclass
@@ -9,17 +9,6 @@ do_configure[cleandirs] = "${B}"
  # Where the meson.build build configuration is
  MESON_SOURCEPATH = "${S}"
  
-# These variables in the environment override the *native* tools, not the cross.

-export CPPFLAGS = "${BUILD_CPPFLAGS}"
-export CC = "${BUILD_CC}"
-export CFLAGS = "${BUILD_CFLAGS}"
-export CXX = "${BUILD_CXX}"
-export CXXFLAGS = "${BUILD_CXXFLAGS}"
-export LD = "${BUILD_LD}"
-export LDFLAGS = "${BUILD_LDFLAGS}"
-export AR = "${BUILD_AR}"
-export PKG_CONFIG = "pkg-config-native"
-
  def noprefix(var, d):
  return d.getVar(var, True).replace(d.getVar('prefix', True) + '/', '', 1)
  
@@ -94,6 +83,22 @@ meson_do_configure() {

  fi
  }
  
+meson_do_configure_prepend_class-target() {

+# Set these so that meson uses the native tools for its build sanity tests,
+# which require executables to be runnable. The cross file will still
+# override these for the target build. Note that we do *not* set CFLAGS,
+# LDFLAGS, etc. as they will be slurped in by meson and applied to the
+# target build, causing errors.
+export CC="${BUILD_CC}"
+export CXX="${BUILD_CXX}"
+export LD="${BUILD_LD}"
+export AR="${BUILD_AR}"
+}
+
+meson_do_configure_prepend_class-native() {
+export PKG_CONFIG="pkg-config-native"
+}
+
  do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+"
  meson_do_compile() {
  ninja ${PARALLEL_MAKE}


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


Re: [oe] [meta-oe][PATCH 2/2] gpsd: add gpsdctl@.service for USB autoplug

2017-11-16 Thread Martin Kelly

On 11/15/2017 07:13 PM, Khem Raj wrote:


On Wed, Nov 15, 2017 at 12:53 PM Martin Kelly <mke...@xevo.com 
<mailto:mke...@xevo.com>> wrote:


This service allows gpsd to automatically recognize USB devices but is
currently missing from our packaging. Without this service and the
matching udev rules from upstream, gpsd will fail to recognize USB
devices when they are plugged in.

Signed-off-by: Martin Kelly <mke...@xevo.com <mailto:mke...@xevo.com>>
---
  meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb <http://gpsd_3.16.bb>
| 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
<http://gpsd_3.16.bb> b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
<http://gpsd_3.16.bb>
index e94d6a108..80d9b0edf 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb <http://gpsd_3.16.bb>
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb <http://gpsd_3.16.bb>
@@ -80,6 +80,7 @@ do_install_append() {
      #support for systemd
      install -d ${D}${systemd_unitdir}/system/
      install -m 0644 ${S}/systemd/${BPN}.service
${D}${systemd_unitdir}/system/${BPN}.service
+    install -m 0644 ${S}/systemd/${BPN}ctl@.service
${D}${systemd_unitdir}/system/${BPN}ctl@.service
      install -m 0644 ${S}/systemd/${BPN}.socket
${D}${systemd_unitdir}/system/${BPN}.socket
  }

@@ -121,7 +122,7 @@ RDEPENDS_python-pygps = "python-core
python-curses gpsd python-json"
  RPROVIDES_${PN} += "${PN}-systemd"
  RREPLACES_${PN} += "${PN}-systemd"
  RCONFLICTS_${PN} += "${PN}-systemd"
-SYSTEMD_SERVICE_${PN} = "${PN}.socket"
+SYSTEMD_SERVICE_${PN} = "${PN}.socket ${PN}ctl@.service"


This should be BPN as well I think



Good point, I sent a v2 patch series to fix it.
--
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe][PATCH v2 1/2] gpsd: use upstream config instead of our own

2017-11-16 Thread Martin Kelly
We have our own versions of the udev, hotplug, and systemd scripts,
but at this point they are several years old and were added to fix bugs
at the time. As far as I can tell, the relevant bugs are now fixed
upstream, so we can move back to the upstream versions.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules |  47 ---
 meta-oe/recipes-navigation/gpsd/gpsd/gpsd  | 136 -
 meta-oe/recipes-navigation/gpsd/gpsd/gpsd-default  |   5 -
 meta-oe/recipes-navigation/gpsd/gpsd/gpsd.service  |  10 --
 meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb   |  12 +-
 5 files changed, 4 insertions(+), 206 deletions(-)
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules
 delete mode 100755 meta-oe/recipes-navigation/gpsd/gpsd/gpsd
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/gpsd-default
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/gpsd.service

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules 
b/meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules
deleted file mode 100644
index 61143b8f6..0
--- a/meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules
+++ /dev/null
@@ -1,47 +0,0 @@
-# udev rules for gpsd
-# $Id$
-#
-# GPSes don't have their own USB device class.  They're serial-over-USB
-# devices, so what you see is actually the ID of the serial-over-USB chip.
-# Fortunately, just two of these account for over 80% of consumer-grade
-# GPS sensors.  The gpsd.hotplug.wrapper script will tell a running gpsd
-# that it should look at the device that just went active, because it
-# might be a GPS.
-#
-# The following setup works on Debian - something similar will apply on 
-# other distributions:
-# 
-#   /etc/udev/gpsd.rules
-#   /etc/udev/rules.d/025_gpsd.rules -> ../gpsd.rules
-#   /lib/udev/gpsd.hotplug.wrapper
-#   /lib/udev/gpsd.hotplug
-# 
-# Setting the link in /etc/udev/rules.d activates the rule and determines
-# when to run it on boot (similar to init.d processing).
-
-SUBSYSTEM!="tty", GOTO="gpsd_rules_end"
-
-# Prolific Technology, Inc. PL2303 Serial Port
-ATTR{idVendor}=="067b", ATTR{idProduct}=="2303", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# ATEN International Co., Ltd UC-232A Serial Port [pl2303]
-ATTR{idVendor}=="0557", ATTR{idProduct}=="2008", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# FTDI 8U232AM
-ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# Cypress M8/CY7C64013 (DeLorme uses these)
-ATTR{idVendor}=="1163", ATTR{idProduct}=="0100", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# PS-360 OEM (Microsoft GPS sold with Street and Trips 2005)
-ATTR{idVendor}=="067b", ATTR{idProduct}=="aaa0", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# Garmin International GPSmap, various models (tested with Garmin GPS 18 USB)
-ATTR{idVendor}=="091e", ATTR{idProduct}=="0003", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# Cygnal Integrated Products, Inc. CP210x Composite Device (Used by Holux m241)
-ATTR{idVendor}=="10c4", ATTR{idProduct}=="ea60", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# u-blox AG, u-blox 5 (tested with Navilock NL-402U)
-ATTR{idVendor}=="1546", ATTR{idProduct}=="01a5", SYMLINK="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# FTDI FT232
-ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# u-blox 4
-ATTR{idVendor}=="1546", ATTR{idProduct}=="01a4", SYMLINK="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-
-ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug.wrapper"
-
-LABEL="gpsd_rules_end"
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd/gpsd 
b/meta-oe/recipes-navigation/gpsd/gpsd/gpsd
deleted file mode 100755
index ba73dafb2..0
--- a/meta-oe/recipes-navigation/gpsd/gpsd/gpsd
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/bin/sh
-### BEGIN INIT INFO
-# Provides:  gpsd
-# Required-Start:$remote_fs $network
-# Should-Start:  bluetooth dbus udev
-# Required-Stop: $remote_fs $network
-# Default-Start: 2 3 4 5
-# Default-Stop:  0 1 6
-# Short-Description: GPS (Global Positioning System) daemon start/stop script
-# Description:   Start/Stop script for the gpsd service daemon,
-#which is able to monitor one or more GPS devices
-#connected to a host computer, making all data on
-#the location and movements of the sensors avai

[oe] [meta-oe][PATCH v2 2/2] gpsd: add gpsdctl@.service for USB autoplug

2017-11-16 Thread Martin Kelly
This service allows gpsd to automatically recognize USB devices but is
currently missing from our packaging. Without this service and the
matching udev rules from upstream, gpsd will fail to recognize USB
devices when they are plugged in.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb 
b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
index 47db41f22..6d84ab9dc 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
@@ -80,6 +80,7 @@ do_install_append() {
 #support for systemd
 install -d ${D}${systemd_unitdir}/system/
 install -m 0644 ${S}/systemd/${BPN}.service 
${D}${systemd_unitdir}/system/${BPN}.service
+install -m 0644 ${S}/systemd/${BPN}ctl@.service 
${D}${systemd_unitdir}/system/${BPN}ctl@.service
 install -m 0644 ${S}/systemd/${BPN}.socket 
${D}${systemd_unitdir}/system/${BPN}.socket
 }
 
@@ -128,7 +129,7 @@ RDEPENDS_python-pygps = " \
 RPROVIDES_${PN} += "${PN}-systemd"
 RREPLACES_${PN} += "${PN}-systemd"
 RCONFLICTS_${PN} += "${PN}-systemd"
-SYSTEMD_SERVICE_${PN} = "${PN}.socket"
+SYSTEMD_SERVICE_${PN} = "${BPN}.socket ${BPN}ctl@.service"
 
 
 ALTERNATIVE_${PN} = "gpsd-defaults"
-- 
2.11.0

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


[oe] [meta-oe][PATCH] gpsd: fix /etc/default/gpsd ALTERNATIVES logic

2017-11-15 Thread Martin Kelly
The ALTERNATIVES logic for the /etc/default/gpsd file is broken,
specifying ALTERNATIVE_LINK without brackets. In addition, it refers to
ALTERNATIVE_PATH, which update-alternatives.bbclass doesn't use.

With this patch, /etc/default/gpsd correctly gets a default link
pointing to /etc/default/gpsd.default. Currently, no such link gets
created, and gpsd starts off disabled by default since it's missing this
config file.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb 
b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
index f8e6a2b13..47fed2d97 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
@@ -129,6 +129,5 @@ SYSTEMD_SERVICE_${PN} = "${PN}.socket"
 
 
 ALTERNATIVE_${PN} = "gpsd-defaults"
-ALTERNATIVE_PATH = "${sysconfdir}/default/gpsd.default"
-ALTERNATIVE_LINK = "${sysconfdir}/default/gpsd"
-ALTERNATIVE_TARGET = "${sysconfdir}/default/gpsd.default"
+ALTERNATIVE_LINK_NAME[gpsd-defaults] = "${sysconfdir}/default/gpsd"
+ALTERNATIVE_TARGET[gpsd-defaults] = "${sysconfdir}/default/gpsd.default"
-- 
2.11.0

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


[oe] [meta-oe][PATCH 2/2] gpsd: add gpsdctl@.service for USB autoplug

2017-11-15 Thread Martin Kelly
This service allows gpsd to automatically recognize USB devices but is
currently missing from our packaging. Without this service and the
matching udev rules from upstream, gpsd will fail to recognize USB
devices when they are plugged in.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb 
b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
index e94d6a108..80d9b0edf 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
@@ -80,6 +80,7 @@ do_install_append() {
 #support for systemd
 install -d ${D}${systemd_unitdir}/system/
 install -m 0644 ${S}/systemd/${BPN}.service 
${D}${systemd_unitdir}/system/${BPN}.service
+install -m 0644 ${S}/systemd/${BPN}ctl@.service 
${D}${systemd_unitdir}/system/${BPN}ctl@.service
 install -m 0644 ${S}/systemd/${BPN}.socket 
${D}${systemd_unitdir}/system/${BPN}.socket
 }
 
@@ -121,7 +122,7 @@ RDEPENDS_python-pygps = "python-core python-curses gpsd 
python-json"
 RPROVIDES_${PN} += "${PN}-systemd"
 RREPLACES_${PN} += "${PN}-systemd"
 RCONFLICTS_${PN} += "${PN}-systemd"
-SYSTEMD_SERVICE_${PN} = "${PN}.socket"
+SYSTEMD_SERVICE_${PN} = "${PN}.socket ${PN}ctl@.service"
 
 
 ALTERNATIVE_${PN} = "gpsd-defaults"
-- 
2.11.0

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


[oe] [meta-oe][PATCH 1/2] gpsd: use upstream config instead of our own

2017-11-15 Thread Martin Kelly
We have our own versions of the udev, hotplug, and systemd scripts,
but at this point they are several years old and were added to fix bugs
at the time. As far as I can tell, the relevant bugs are now fixed
upstream, so we can move back to the upstream versions.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules |  47 ---
 meta-oe/recipes-navigation/gpsd/gpsd/gpsd  | 136 -
 meta-oe/recipes-navigation/gpsd/gpsd/gpsd-default  |   5 -
 meta-oe/recipes-navigation/gpsd/gpsd/gpsd.service  |  10 --
 meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb   |  12 +-
 5 files changed, 4 insertions(+), 206 deletions(-)
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules
 delete mode 100755 meta-oe/recipes-navigation/gpsd/gpsd/gpsd
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/gpsd-default
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/gpsd.service

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules 
b/meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules
deleted file mode 100644
index 61143b8f6..0
--- a/meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules
+++ /dev/null
@@ -1,47 +0,0 @@
-# udev rules for gpsd
-# $Id$
-#
-# GPSes don't have their own USB device class.  They're serial-over-USB
-# devices, so what you see is actually the ID of the serial-over-USB chip.
-# Fortunately, just two of these account for over 80% of consumer-grade
-# GPS sensors.  The gpsd.hotplug.wrapper script will tell a running gpsd
-# that it should look at the device that just went active, because it
-# might be a GPS.
-#
-# The following setup works on Debian - something similar will apply on 
-# other distributions:
-# 
-#   /etc/udev/gpsd.rules
-#   /etc/udev/rules.d/025_gpsd.rules -> ../gpsd.rules
-#   /lib/udev/gpsd.hotplug.wrapper
-#   /lib/udev/gpsd.hotplug
-# 
-# Setting the link in /etc/udev/rules.d activates the rule and determines
-# when to run it on boot (similar to init.d processing).
-
-SUBSYSTEM!="tty", GOTO="gpsd_rules_end"
-
-# Prolific Technology, Inc. PL2303 Serial Port
-ATTR{idVendor}=="067b", ATTR{idProduct}=="2303", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# ATEN International Co., Ltd UC-232A Serial Port [pl2303]
-ATTR{idVendor}=="0557", ATTR{idProduct}=="2008", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# FTDI 8U232AM
-ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# Cypress M8/CY7C64013 (DeLorme uses these)
-ATTR{idVendor}=="1163", ATTR{idProduct}=="0100", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# PS-360 OEM (Microsoft GPS sold with Street and Trips 2005)
-ATTR{idVendor}=="067b", ATTR{idProduct}=="aaa0", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# Garmin International GPSmap, various models (tested with Garmin GPS 18 USB)
-ATTR{idVendor}=="091e", ATTR{idProduct}=="0003", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# Cygnal Integrated Products, Inc. CP210x Composite Device (Used by Holux m241)
-ATTR{idVendor}=="10c4", ATTR{idProduct}=="ea60", SYMLINK+="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# u-blox AG, u-blox 5 (tested with Navilock NL-402U)
-ATTR{idVendor}=="1546", ATTR{idProduct}=="01a5", SYMLINK="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# FTDI FT232
-ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-# u-blox 4
-ATTR{idVendor}=="1546", ATTR{idProduct}=="01a4", SYMLINK="gps%n", 
RUN+="/lib/udev/gpsd.hotplug.wrapper"
-
-ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug.wrapper"
-
-LABEL="gpsd_rules_end"
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd/gpsd 
b/meta-oe/recipes-navigation/gpsd/gpsd/gpsd
deleted file mode 100755
index ba73dafb2..0
--- a/meta-oe/recipes-navigation/gpsd/gpsd/gpsd
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/bin/sh
-### BEGIN INIT INFO
-# Provides:  gpsd
-# Required-Start:$remote_fs $network
-# Should-Start:  bluetooth dbus udev
-# Required-Stop: $remote_fs $network
-# Default-Start: 2 3 4 5
-# Default-Stop:  0 1 6
-# Short-Description: GPS (Global Positioning System) daemon start/stop script
-# Description:   Start/Stop script for the gpsd service daemon,
-#which is able to monitor one or more GPS devices
-#connected to a host computer, making all data on
-#the location and movements of the sensors avai

Re: [oe] [meta-oe][PATCH] meson: export native env only for native build

2017-11-15 Thread Martin Kelly

On 11/15/2017 02:05 AM, Alexander Kanavin wrote:

On 11/14/2017 08:23 PM, Martin Kelly wrote:


For native builds:
- Keep the defaults (which use native tools), but export 
PKG_CONFIG=pkg-config-native instead of pkg-config.


For target builds:
- Set CC, CXX, LD, and AR, but *not* CFLAGS, CXXFLAGS, LDFLAGS etc. We 
need CC, CXX etc. so meson finds the native tools for its build sanity 
tests, but we don't want to set the flags, as meson will slurp them in 
and apply them to the cross build. Note that even though we set CC, 
etc. meson will correctly override them in the cross file for the 
actual target build.


Thanks for looking - can you make a patch for these things against my 
branch in poky-contrib, and send it to oe-core list? I will send the 
patchset any day now, and there will be a corresponding patch to remove 
meson recipe and class from meta-oe. So now is the good point to have it 
all fixed so that the transition is smooth.



Alex


Yes, I'll do that.
--
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe][PATCH] meson: export native env only for native build

2017-11-14 Thread Martin Kelly

On 11/14/2017 04:36 AM, Alexander Kanavin wrote:

On 11/13/2017 09:27 PM, Martin Kelly wrote:

Although the meson crossfile should take care of setting the right cross
environment for a target build, meson slurps any set CFLAGS, CXXFLAGS,
LDFLAGS, and CPPFLAGS from the environment and injects them into the
build (see mesonbuild/environment.py:get_args_from_envvars for details).

This means that we are seeing native CFLAGS, CXXFLAGS, LDFLAGS, and
CPPFLAGS in the target build, which is wrong and causes build failures
when target and native have libraries in common (the linker gets
confused and bails).

That said, we *do* need to set certain vars for all builds so that meson
can find the right build tools. Without this, meson will fail during its
sanity checking step because it will determine the build tools to be
unrunnable since they output target instead of native artifacts.

The solution to all of this is to set CC, CXX, LD, and AR globally to
the native tools while setting the other native vars *only* for the
native build. For target builds, these vars will get overridden by the
cross file as we expect.


Hello Martin,

meson support will land in oe-core shortly (and will be removed from 
meta-oe), so can you please check if my patchset is doing the right thing?
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=akanavin/meson 



Alex


Hi, excellent, I'm glad this is going to oe-core. I tried the 
meson.bbclass from your branch and it fails one of my builds because the 
CC variable is not found since it's unset.


It looks like the meson.bbclass in poky-contrib was forked at some point 
and some of the patches since have not been merged back in. I think some 
of them have needed fixes (e.g. the patch for PKG_CONFIG=pkg-config-native).


I believe the right configuration is:

For native builds:
- Keep the defaults (which use native tools), but export 
PKG_CONFIG=pkg-config-native instead of pkg-config.


For target builds:
- Set CC, CXX, LD, and AR, but *not* CFLAGS, CXXFLAGS, LDFLAGS etc. We 
need CC, CXX etc. so meson finds the native tools for its build sanity 
tests, but we don't want to set the flags, as meson will slurp them in 
and apply them to the cross build. Note that even though we set CC, etc. 
meson will correctly override them in the cross file for the actual 
target build.


By the way, I simplified my patch a little bit and made it slightly more 
correct, so I sent a patch v2 for this. I CC'ed you on that patch.

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


[oe] [meta-oe][PATCH v2] meson: export native env only for native build

2017-11-14 Thread Martin Kelly
Although the meson crossfile should take care of setting the right cross
environment for a target build, meson slurps any set CFLAGS, CXXFLAGS,
LDFLAGS, and CPPFLAGS from the environment and injects them into the
build (see mesonbuild/environment.py:get_args_from_envvars for details).

This means that we are seeing native CFLAGS, CXXFLAGS, LDFLAGS, and
CPPFLAGS in the target build, which is wrong and causes build failures
when target and native have libraries in common (the linker gets
confused and bails).

That said, we *do* need to set certain vars for all builds so that meson
can find the right build tools. Without this, meson will fail during its
sanity checking step because it will determine the build tools to be
unrunnable since they output target instead of native artifacts.

The solution to all of this is to set CC, CXX, LD, and AR globally to
the native tools while setting the other native vars *only* for the
native build. For target builds, these vars will get overridden by the
cross file as we expect.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/classes/meson.bbclass | 27 ---
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass
index a09bc240d..6e38b4bd5 100644
--- a/meta-oe/classes/meson.bbclass
+++ b/meta-oe/classes/meson.bbclass
@@ -9,17 +9,6 @@ do_configure[cleandirs] = "${B}"
 # Where the meson.build build configuration is
 MESON_SOURCEPATH = "${S}"
 
-# These variables in the environment override the *native* tools, not the 
cross.
-export CPPFLAGS = "${BUILD_CPPFLAGS}"
-export CC = "${BUILD_CC}"
-export CFLAGS = "${BUILD_CFLAGS}"
-export CXX = "${BUILD_CXX}"
-export CXXFLAGS = "${BUILD_CXXFLAGS}"
-export LD = "${BUILD_LD}"
-export LDFLAGS = "${BUILD_LDFLAGS}"
-export AR = "${BUILD_AR}"
-export PKG_CONFIG = "pkg-config-native"
-
 def noprefix(var, d):
 return d.getVar(var, True).replace(d.getVar('prefix', True) + '/', '', 1)
 
@@ -94,6 +83,22 @@ meson_do_configure() {
 fi
 }
 
+meson_do_configure_prepend_class-target() {
+# Set these so that meson uses the native tools for its build sanity tests,
+# which require executables to be runnable. The cross file will still
+# override these for the target build. Note that we do *not* set CFLAGS,
+# LDFLAGS, etc. as they will be slurped in by meson and applied to the
+# target build, causing errors.
+export CC="${BUILD_CC}"
+export CXX="${BUILD_CXX}"
+export LD="${BUILD_LD}"
+export AR="${BUILD_AR}"
+}
+
+meson_do_configure_prepend_class-native() {
+export PKG_CONFIG="pkg-config-native"
+}
+
 do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+"
 meson_do_compile() {
 ninja ${PARALLEL_MAKE}
-- 
2.11.0

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


[oe] [meta-oe][PATCH] meson: export native env only for native build

2017-11-13 Thread Martin Kelly
Although the meson crossfile should take care of setting the right cross
environment for a target build, meson slurps any set CFLAGS, CXXFLAGS,
LDFLAGS, and CPPFLAGS from the environment and injects them into the
build (see mesonbuild/environment.py:get_args_from_envvars for details).

This means that we are seeing native CFLAGS, CXXFLAGS, LDFLAGS, and
CPPFLAGS in the target build, which is wrong and causes build failures
when target and native have libraries in common (the linker gets
confused and bails).

That said, we *do* need to set certain vars for all builds so that meson
can find the right build tools. Without this, meson will fail during its
sanity checking step because it will determine the build tools to be
unrunnable since they output target instead of native artifacts.

The solution to all of this is to set CC, CXX, LD, and AR globally to
the native tools while setting the other native vars *only* for the
native build. For target builds, these vars will get overridden by the
cross file as we expect.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/classes/meson.bbclass | 22 --
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass
index a09bc240d..3a2d5755e 100644
--- a/meta-oe/classes/meson.bbclass
+++ b/meta-oe/classes/meson.bbclass
@@ -9,16 +9,14 @@ do_configure[cleandirs] = "${B}"
 # Where the meson.build build configuration is
 MESON_SOURCEPATH = "${S}"
 
-# These variables in the environment override the *native* tools, not the 
cross.
-export CPPFLAGS = "${BUILD_CPPFLAGS}"
-export CC = "${BUILD_CC}"
-export CFLAGS = "${BUILD_CFLAGS}"
-export CXX = "${BUILD_CXX}"
-export CXXFLAGS = "${BUILD_CXXFLAGS}"
-export LD = "${BUILD_LD}"
-export LDFLAGS = "${BUILD_LDFLAGS}"
-export AR = "${BUILD_AR}"
-export PKG_CONFIG = "pkg-config-native"
+# These variables apply to both the cross and native build. Note that we do
+# *not* set CFLAGS, CPPFLAGS, and LDFLAGS because meson will import them into
+# the cross-build if we do so; we want the entire cross-build to flow from the
+# crossfile.
+export CC="${BUILD_CC}"
+export CXX="${BUILD_CXX}"
+export LD="${BUILD_LD}"
+export AR="${BUILD_AR}"
 
 def noprefix(var, d):
 return d.getVar(var, True).replace(d.getVar('prefix', True) + '/', '', 1)
@@ -94,6 +92,10 @@ meson_do_configure() {
 fi
 }
 
+meson_do_configure_prepend_class-native() {
+export PKG_CONFIG="pkg-config-native"
+}
+
 do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+"
 meson_do_compile() {
 ninja ${PARALLEL_MAKE}
-- 
2.11.0

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


[oe] [meta-oe][PATCH] usb-modeswitch: add usb-modeswitch@.service

2017-11-07 Thread Martin Kelly
This service is essential for making hotplugging work correctly on a
systemd system. Without it, USB devices get recognized by systemd
instead of the usb-modeswitch udev rule, so hotplugging breaks. Once the
service is added, hotplugging works properly again.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.5.0.bb | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.5.0.bb 
b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.5.0.bb
index ff439f321..ac0df8bab 100644
--- a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.5.0.bb
+++ b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.5.0.bb
@@ -8,7 +8,9 @@ SRC_URI = 
"http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2;
 SRC_URI[md5sum] = "38ad5c9d70e06227a00361bdc2b1e568"
 SRC_URI[sha256sum] = 
"31c0be280d49a99ec3dc0be3325bef320d9c04b50714ef0ce1e36a614d687633"
 
-inherit pkgconfig
+inherit pkgconfig systemd
+
+SYSTEMD_SERVICE_${PN} = "usb_modeswitch@.service"
 
 EXTRA_OEMAKE = "TCL=${bindir}/tclsh"
 
@@ -18,4 +20,8 @@ RRECOMMENDS_${PN} = "usb-modeswitch-data"
 
 do_install() {
 oe_runmake DESTDIR=${D} install
+if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; 
then
+install -d ${D}/${systemd_unitdir}/system
+install -m 644 ${S}/usb_modeswitch@.service 
${D}/${systemd_unitdir}/system
+fi
 }
-- 
2.11.0

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


[oe] [meta-oe][PATCH] gpsd: add missing python-pygps RDEPENDS

2017-10-30 Thread Martin Kelly
Several runtime dependencies are missing from python-pygps. You can
verify this by adding gps-utils to an image and running gpsfake, which
will fail with python import errors. With this patch, gpsfake works
correctly.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb | 9 -
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb 
b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
index f8e6a2b13..e23d63033 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
@@ -120,7 +120,14 @@ RDEPENDS_gps-utils = "python-pygps"
 
 SUMMARY_python-pygps = "Python bindings to gpsd"
 FILES_python-pygps = "${PYTHON_SITEPACKAGES_DIR}/*"
-RDEPENDS_python-pygps = "python-core python-curses gpsd python-json"
+RDEPENDS_python-pygps = " \
+python-core \
+python-io \
+python-threading \
+python-terminal \
+python-curses \
+gpsd \
+python-json"
 
 RPROVIDES_${PN} += "${PN}-systemd"
 RREPLACES_${PN} += "${PN}-systemd"
-- 
2.11.0

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


[oe] [meta-oe][PATCH] open-vm-tools: remove custom procps logic

2017-07-17 Thread Martin Kelly
procps is picked up by pkgconfig without issue, so we no longer need
this logic.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb | 2 --
 1 file changed, 2 deletions(-)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 65fbfc9e9..5f93eb4ac 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -77,8 +77,6 @@ do_install_append() {
 }
 
 do_configure_prepend() {
-export CUSTOM_PROCPS_NAME=procps
-export CUSTOM_PROCPS_LIBS=-L${STAGING_LIBDIR}/libprocps.so
 export CUSTOM_DNET_NAME=dnet
 export CUSTOM_DNET_LIBS=-L${STAGING_LIBDIR}/libdnet.so
 }
-- 
2.11.0

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


Re: [oe] [meta-qt5][PATCH] qtbase-native: Fix qdbuscpp2xml segfault

2017-07-12 Thread Martin Kelly

On 07/12/2017 07:50 AM, Andreas Müller wrote:

On Wed, Jul 12, 2017 at 3:13 PM, Khem Raj <raj.k...@gmail.com> wrote:

On Wed, Jul 12, 2017 at 12:30 AM, Martin Jansa <martin.ja...@gmail.com> wrote:

Is this meant to be applied only for 5.9 or are you seeing this issue with
5.8 as well?



for 5.8, i havent tested 5.9


On Wed, Jul 12, 2017 at 1:13 AM, Martin Kelly <mke...@xevo.com> wrote:


Thanks! This bug has been bothering me for a while now, and the patch
fixes the issue for me.


I think the patch does not cause trouble for Qt <= 5.8 installed on
build host. It seems that 5.9 for host is the crashing combination.



I don't have 5.9 on my host. Specifically, I started noticing this when 
I upgraded from Debian Jessie to Debian Stretch. Jessie had Qt 5.3.2 
while Stretch has Qt 5.7.1.



As the author of the patch:

* I am aware that removing this patch causes kde balloo build errors
for cross 5.8 (current)
* I hope moving cross 5.9 (future hopefully) will fix issues properly
* the patch seems to do the wrong thing: it causes dependencies on
build host's libraries

So

Acked-by: Andreas Müller <schnitzelt...@googlemail.com>

Andreas


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


Re: [oe] [meta-qt5][PATCH] qtbase-native: Fix qdbuscpp2xml segfault

2017-07-12 Thread Martin Kelly

On 07/12/2017 06:13 AM, Khem Raj wrote:

On Wed, Jul 12, 2017 at 12:30 AM, Martin Jansa <martin.ja...@gmail.com> wrote:

Is this meant to be applied only for 5.9 or are you seeing this issue with
5.8 as well?



for 5.8, i havent tested 5.9



Same for me.


On Wed, Jul 12, 2017 at 1:13 AM, Martin Kelly <mke...@xevo.com> wrote:


Thanks! This bug has been bothering me for a while now, and the patch
fixes the issue for me.


On 07/11/2017 11:13 AM, Khem Raj wrote:


0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch alone was
causing
qdbuscpp2xml to simply segfault on simple invocation

Signed-off-by: Khem Raj <raj.k...@gmail.com>
Cc: Andreas Müller <schnitzelt...@googlemail.com>
---
 recipes-qt/qt5/qtbase-native_git.bb|  1 -
 ...l.pro-do-not-build-with-bootstrapped-depe.patch | 79
--
 2 files changed, 80 deletions(-)
 delete mode 100644
recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch

diff --git a/recipes-qt/qt5/qtbase-native_git.bb
b/recipes-qt/qt5/qtbase-native_git.bb
index da69812..98cbecc 100644
--- a/recipes-qt/qt5/qtbase-native_git.bb
+++ b/recipes-qt/qt5/qtbase-native_git.bb
@@ -33,7 +33,6 @@ SRC_URI += "\
 # common for qtbase-native and nativesdk-qtbase
 SRC_URI += " \
 file://0011-Always-build-uic.patch \
-
file://0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch \
 "

 CLEANBROKEN = "1"
diff --git
a/recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch
b/recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch
deleted file mode 100644
index e72601c..000
---
a/recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-From 86ae0ce931edbe0ac30cfe5f94f681f1d055fdb0 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzelt...@googlemail.com>
-Date: Mon, 6 Mar 2017 11:50:38 +0100
-Subject: [PATCH] qdbuscpp2xml.pro: do not build with bootstrapped
- dependenciies
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Upstream-Status: Pending
-
-Signed-off-by: Andreas Müller <schnitzelt...@googlemail.com>

- src/src.pro | 9 ++---
- src/tools/qdbuscpp2xml/qdbuscpp2xml.pro | 3 +--
- src/tools/qdbusxml2cpp/qdbusxml2cpp.pro | 5 +
- 3 files changed, 4 insertions(+), 13 deletions(-)
-
-diff --git a/src/src.pro b/src/src.pro
-index 90d7e2b..0aaf604 100644
 a/src/src.pro
-+++ b/src/src.pro
-@@ -4,9 +4,6 @@ QT_FOR_CONFIG += gui-private
- include($$OUT_PWD/corelib/qtcore-config.pri)
- include($$OUT_PWD/gui/qtgui-config.pri)
-
--force_bootstrap|!qtConfig(commandlineparser): \
--CONFIG += force_dbus_bootstrap
--
- src_qtzlib.file = $$PWD/corelib/qtzlib.pro
- src_qtzlib.target = sub-zlib
-
-@@ -37,13 +34,11 @@ src_tools_bootstrap_dbus.depends =
src_tools_bootstrap
-
- src_tools_qdbusxml2cpp.subdir = tools/qdbusxml2cpp
- src_tools_qdbusxml2cpp.target = sub-qdbusxml2cpp
--force_dbus_bootstrap: src_tools_qdbusxml2cpp.depends =
src_tools_bootstrap_dbus
--else: src_tools_qdbusxml2cpp.depends = src_dbus
-+src_tools_qdbusxml2cpp.depends = src_dbus
-
- src_tools_qdbuscpp2xml.subdir = tools/qdbuscpp2xml
- src_tools_qdbuscpp2xml.target = sub-qdbuscpp2xml
--force_bootstrap: src_tools_qdbuscpp2xml.depends =
src_tools_bootstrap_dbus
--else: src_tools_qdbuscpp2xml.depends = src_dbus
-+src_tools_qdbuscpp2xml.depends = src_dbus
-
- src_winmain.subdir = $$PWD/winmain
- src_winmain.target = sub-winmain
-diff --git a/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro
b/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro
-index 5ac3159..74c507c 100644
 a/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro
-+++ b/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro
-@@ -1,7 +1,6 @@
- option(host_build)
- QT = core-private
--force_bootstrap: QT += bootstrap_dbus-private
--else: QT += dbus-private
-+QT += dbus-private
- DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_FOREACH
- QMAKE_CXXFLAGS += $$QT_HOST_CFLAGS_DBUS
-
-diff --git a/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro
b/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro
-index d9ee5de..e891103 100644
 a/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro
-+++ b/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro
-@@ -1,9 +1,6 @@
- option(host_build)
--!force_bootstrap:!qtConfig(commandlineparser): \
--CONFIG += force_bootstrap
- QT = core-private
--force_bootstrap: QT += bootstrap_dbus-private
--else: QT += dbus-private
-+QT += dbus-private
- DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_FOREACH
- QMAKE_CXXFLAGS += $$QT_HOST_CFLAGS_DBUS
-
---
-2.9.3
-


--
___
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-qt5][PATCH] qtbase-native: Fix qdbuscpp2xml segfault

2017-07-11 Thread Martin Kelly
Thanks! This bug has been bothering me for a while now, and the patch 
fixes the issue for me.


On 07/11/2017 11:13 AM, Khem Raj wrote:

0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch alone was 
causing
qdbuscpp2xml to simply segfault on simple invocation

Signed-off-by: Khem Raj 
Cc: Andreas Müller 
---
 recipes-qt/qt5/qtbase-native_git.bb|  1 -
 ...l.pro-do-not-build-with-bootstrapped-depe.patch | 79 --
 2 files changed, 80 deletions(-)
 delete mode 100644 
recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch

diff --git a/recipes-qt/qt5/qtbase-native_git.bb 
b/recipes-qt/qt5/qtbase-native_git.bb
index da69812..98cbecc 100644
--- a/recipes-qt/qt5/qtbase-native_git.bb
+++ b/recipes-qt/qt5/qtbase-native_git.bb
@@ -33,7 +33,6 @@ SRC_URI += "\
 # common for qtbase-native and nativesdk-qtbase
 SRC_URI += " \
 file://0011-Always-build-uic.patch \
-file://0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch \
 "

 CLEANBROKEN = "1"
diff --git 
a/recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch
 
b/recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch
deleted file mode 100644
index e72601c..000
--- 
a/recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-From 86ae0ce931edbe0ac30cfe5f94f681f1d055fdb0 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Andreas=20M=C3=BCller?= 
-Date: Mon, 6 Mar 2017 11:50:38 +0100
-Subject: [PATCH] qdbuscpp2xml.pro: do not build with bootstrapped
- dependenciies
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Upstream-Status: Pending
-
-Signed-off-by: Andreas Müller 

- src/src.pro | 9 ++---
- src/tools/qdbuscpp2xml/qdbuscpp2xml.pro | 3 +--
- src/tools/qdbusxml2cpp/qdbusxml2cpp.pro | 5 +
- 3 files changed, 4 insertions(+), 13 deletions(-)
-
-diff --git a/src/src.pro b/src/src.pro
-index 90d7e2b..0aaf604 100644
 a/src/src.pro
-+++ b/src/src.pro
-@@ -4,9 +4,6 @@ QT_FOR_CONFIG += gui-private
- include($$OUT_PWD/corelib/qtcore-config.pri)
- include($$OUT_PWD/gui/qtgui-config.pri)
-
--force_bootstrap|!qtConfig(commandlineparser): \
--CONFIG += force_dbus_bootstrap
--
- src_qtzlib.file = $$PWD/corelib/qtzlib.pro
- src_qtzlib.target = sub-zlib
-
-@@ -37,13 +34,11 @@ src_tools_bootstrap_dbus.depends = src_tools_bootstrap
-
- src_tools_qdbusxml2cpp.subdir = tools/qdbusxml2cpp
- src_tools_qdbusxml2cpp.target = sub-qdbusxml2cpp
--force_dbus_bootstrap: src_tools_qdbusxml2cpp.depends = 
src_tools_bootstrap_dbus
--else: src_tools_qdbusxml2cpp.depends = src_dbus
-+src_tools_qdbusxml2cpp.depends = src_dbus
-
- src_tools_qdbuscpp2xml.subdir = tools/qdbuscpp2xml
- src_tools_qdbuscpp2xml.target = sub-qdbuscpp2xml
--force_bootstrap: src_tools_qdbuscpp2xml.depends = src_tools_bootstrap_dbus
--else: src_tools_qdbuscpp2xml.depends = src_dbus
-+src_tools_qdbuscpp2xml.depends = src_dbus
-
- src_winmain.subdir = $$PWD/winmain
- src_winmain.target = sub-winmain
-diff --git a/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro 
b/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro
-index 5ac3159..74c507c 100644
 a/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro
-+++ b/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro
-@@ -1,7 +1,6 @@
- option(host_build)
- QT = core-private
--force_bootstrap: QT += bootstrap_dbus-private
--else: QT += dbus-private
-+QT += dbus-private
- DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_FOREACH
- QMAKE_CXXFLAGS += $$QT_HOST_CFLAGS_DBUS
-
-diff --git a/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro 
b/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro
-index d9ee5de..e891103 100644
 a/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro
-+++ b/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro
-@@ -1,9 +1,6 @@
- option(host_build)
--!force_bootstrap:!qtConfig(commandlineparser): \
--CONFIG += force_bootstrap
- QT = core-private
--force_bootstrap: QT += bootstrap_dbus-private
--else: QT += dbus-private
-+QT += dbus-private
- DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_FOREACH
- QMAKE_CXXFLAGS += $$QT_HOST_CFLAGS_DBUS
-
---
-2.9.3
-


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


Re: [oe] [meta-oe][PATCH v2] 00/17] new recipe v2: open-vm-tools recipe

2017-06-27 Thread Martin Kelly
Ah, thanks. It looks like the commits picked up some garbage (again a 
relic of me missing a characeter in the send-pull-request invocation):


commit 18dd8d0:
01/17] add open-vm-tools recipe

Once you merge to master, could you remove the "01/17" prefixes?

On 06/27/2017 03:29 PM, Martin Jansa wrote:

It's already in master-next waiting for jenkins builds to finish.

On Wed, Jun 28, 2017 at 12:24 AM, Martin Kelly <mke...@xevo.com
<mailto:mke...@xevo.com>> wrote:

(ping)

I mistyped a character, so the patches did not correctly show up on
Patchwork (sorry!).


On 06/23/2017 03:47 PM, Martin Kelly wrote:

Hi all,

This is version 2 of a patch series to add a new recipe for Open
VM Tools to
meta-oe. This recipe is invaluable for using Openembedded with
VMWare, as
without the tools, performance is very slow.

More information about Open VM Tools can be found here:

https://github.com/vmware/open-vm-tools
<https://github.com/vmware/open-vm-tools>

Please note that, as mentioned in the first commit, this recipe
is modified
from the recipe originally found in the Open-Switch repository.
The first
patch is directly from that repository, and the following
patches are
modifications to it.

Original recipe: https://github.com/open-switch/ops-build
<https://github.com/open-switch/ops-build>

yocto/openswitch/meta-foss-openswitch/recipes-extended/open-vm-tools/open-vm-tools_10.0.5.bb
<http://open-vm-tools_10.0.5.bb>
Commit 9008de2d8e100f3f868c66765742bca9fa98f3f9

Although the original recipe packaging was Apache-licensed, I
received
permission from the author (Diego Dompe) to relicense it under
the MIT license
for inclusion in meta-openembedded:

https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html
<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html>
https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html
<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html>

The following changes since commit
d2da8b82cfb2f8e55236751c1c56c9e7f3b5f68d:

  scsirastools: Upgrade to 1.6.6 (2017-06-22 16:04:14 +0200)

are available in the git repository at:

  git://github.com/XevoInc/meta-openembedded
<http://github.com/XevoInc/meta-openembedded> open-vm-tools-v2

https://github.com/XevoInc/meta-openembedded/tree/open-vm-tools-v2
<https://github.com/XevoInc/meta-openembedded/tree/open-vm-tools-v2>

Martin Kelly (17):
  add open-vm-tools recipe
  open-vm-tools: add missing pkgconfig dependency
  open-vm-tools: add missing glib-2.0-native dependency
  open-vm-tools: clarify and expand licensing
  open-vm-tools: base_contains --> bb.utils.contains
  open-vm-tools: update version to 10.1.5
  open-vm-tools: don't use mspack
  open-vm-tools: don't use dnet-config
  open-vm-tools: add #include to fix build break
  open-vm-tools: add missing X11 dependencies
  open-vm-tools: remove kernel module logic
  open-vm-tools: line up configure options
  open-vm-tools: support FUSE
  open-vm-tools: scope build to only x86
  open-vm-tools: style changes
  open-vm-tools: fix all hardcoded paths
  open-vm-tools: remove -Wno-error

 .../recipes-support/open-vm-tools/files/tools.conf |  2 +
 .../open-vm-tools/files/vmtoolsd.service   | 11 +++
 .../0001-configure.ac-don-t-use-dnet-config.patch  | 41 +++
 .../0002-add-include-sys-sysmacros.h.patch | 33 +
 .../open-vm-tools/open-vm-tools_10.1.5.bb
<http://open-vm-tools_10.1.5.bb>  | 84
++
 5 files changed, 171 insertions(+)
 create mode 100644
meta-oe/recipes-support/open-vm-tools/files/tools.conf
 create mode 100644
meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service
 create mode 100644

meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-configure.ac-don-t-use-dnet-config.patch
 create mode 100644

meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch
 create mode 100644
meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
<http://open-vm-tools_10.1.5.bb>



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


Re: [oe] [meta-oe][PATCH v2] 00/17] new recipe v2: open-vm-tools recipe

2017-06-27 Thread Martin Kelly

(ping)

I mistyped a character, so the patches did not correctly show up on 
Patchwork (sorry!).


On 06/23/2017 03:47 PM, Martin Kelly wrote:

Hi all,

This is version 2 of a patch series to add a new recipe for Open VM Tools to
meta-oe. This recipe is invaluable for using Openembedded with VMWare, as
without the tools, performance is very slow.

More information about Open VM Tools can be found here:

https://github.com/vmware/open-vm-tools

Please note that, as mentioned in the first commit, this recipe is modified
from the recipe originally found in the Open-Switch repository. The first
patch is directly from that repository, and the following patches are
modifications to it.

Original recipe: https://github.com/open-switch/ops-build
yocto/openswitch/meta-foss-openswitch/recipes-extended/open-vm-tools/open-vm-tools_10.0.5.bb
Commit 9008de2d8e100f3f868c66765742bca9fa98f3f9

Although the original recipe packaging was Apache-licensed, I received
permission from the author (Diego Dompe) to relicense it under the MIT license
for inclusion in meta-openembedded:

https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html
https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html

The following changes since commit d2da8b82cfb2f8e55236751c1c56c9e7f3b5f68d:

  scsirastools: Upgrade to 1.6.6 (2017-06-22 16:04:14 +0200)

are available in the git repository at:

  git://github.com/XevoInc/meta-openembedded open-vm-tools-v2
  https://github.com/XevoInc/meta-openembedded/tree/open-vm-tools-v2

Martin Kelly (17):
  add open-vm-tools recipe
  open-vm-tools: add missing pkgconfig dependency
  open-vm-tools: add missing glib-2.0-native dependency
  open-vm-tools: clarify and expand licensing
  open-vm-tools: base_contains --> bb.utils.contains
  open-vm-tools: update version to 10.1.5
  open-vm-tools: don't use mspack
  open-vm-tools: don't use dnet-config
  open-vm-tools: add #include to fix build break
  open-vm-tools: add missing X11 dependencies
  open-vm-tools: remove kernel module logic
  open-vm-tools: line up configure options
  open-vm-tools: support FUSE
  open-vm-tools: scope build to only x86
  open-vm-tools: style changes
  open-vm-tools: fix all hardcoded paths
  open-vm-tools: remove -Wno-error

 .../recipes-support/open-vm-tools/files/tools.conf |  2 +
 .../open-vm-tools/files/vmtoolsd.service   | 11 +++
 .../0001-configure.ac-don-t-use-dnet-config.patch  | 41 +++
 .../0002-add-include-sys-sysmacros.h.patch | 33 +
 .../open-vm-tools/open-vm-tools_10.1.5.bb  | 84 ++
 5 files changed, 171 insertions(+)
 create mode 100644 meta-oe/recipes-support/open-vm-tools/files/tools.conf
 create mode 100644 meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-configure.ac-don-t-use-dnet-config.patch
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb


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


Re: [oe] [meta-oe][PATCH 00/14] new recipe: open-vm-tools recipe

2017-06-23 Thread Martin Kelly

On 06/23/2017 03:33 AM, Martin Jansa wrote:

On Thu, Jun 22, 2017 at 11:21:16AM -0700, Martin Kelly wrote:

On 06/22/2017 10:32 AM, Martin Jansa wrote:

It basically just calls this script:

openembedded-core/scripts/sstate-diff-machines.sh
--machines="qemux86copy qemux86 qemuarm" --targets=world
--tmpdir=tmp-glibc/ --analyze 2>&1 | tee ${LOGDIR}/signatures.log

see:
https://github.com/shr-project/jenkins-jobs/blob/master/jenkins-job.sh#L258

for qemux86copy you either need to add meta-selftest layer from oe-core
or apply:
http://git.openembedded.org/openembedded-core-contrib/commit/?h=jansa/master=9d45c08641b868322af4bebc2f095340cf4dac3f

Sorry I didn't reply earlier, I think it's resolved by dropped kernel
dependency and I didn't notice the question about reproducing it.



I'm trying to run the script, but I'm just getting output suggesting
everything is OK, even with the old change that I know has issues. I'm
guessing I need to manually run through some steps that simulate what
Jenkins would have done before running this script ("bitbake world" on
several arches with a particular directory structure?).


It doesn't do anything special before or after the script (you don't
need to build anything in order to compare signatures).

The whole jenkins setup is described here:
http://www.openembedded.org/wiki/Bitbake_World_Status_Setup

You can even call jenkins-job.sh manually if you really want, you just
need to export JOB_NAME="oe_world_workspace-compare-signatures"



It seems to me we have a few options:
- Try to troubleshoot how to manually run the tests
- Submit the fixed-up version and hope it works. I agree that dropping
the kernel dependency will probably fix the issue.
- If you know how to trigger the Jenkins build manually, you could test
it on my new branch before I submit:
https://github.com/xevoinc/meta-openembedded/tree/open-vm-tools-v2

I'm happy with any of these; let me know what you think.


Just submit the fixed-up version and I'll include it in next master-next
run on jenkins.

For the create-pull-request issue we discussed earlier I'm using
following parameters:

scripts/create-pull-request -u contrib -b ${B} -i ${B} -p "PATCH][${R}][RESEND" -r 
origin/${R} -s "Backports for ${R}" -o pull-${R}

Where R is release, e.g. morty and
B is e.g. B=jansa/${R}-backports

While branches are on openembedded-core-contrib repository:
http://git.openembedded.org/openembedded-core-contrib
and "contrib" is the git remote for it:
OE @ ~/openembedded-core $ git remote -v | grep contrib
contrib git+ssh://g...@git.openembedded.org/openembedded-core-contrib (fetch)
contrib git+ssh://g...@git.openembedded.org/openembedded-core-contrib (push)

and since this change:
commit 98faa3ec872e06774b5870fcfb52f3ff91494779
Author: Robert Yang <liezhi.y...@windriver.com>
Date:   Tue Apr 5 19:31:27 2016 -0700

create-pull-request: fix for newer git

Fixed when git > 2.1.0:

I also need to specify local branch name with -l or it will wrongly
assume HEAD and fail with:
NOTE: Assuming local branch HEAD, use -l to override.
warn: No match for commit 9d45c08641b868322af4bebc2f095340cf4dac3f found
at git://git.openembedded.org/openembedded-core-contrib
warn: Are you sure you pushed 'jansa/morty-backports' there?
warning: inexact rename detection was skipped due to too many files.
warning: you may want to set your diff.renameLimit variable to at least
1151 and retry the command.
ERROR: git request-pull reported an error

So currently my script calls it as:
scripts/create-pull-request -u contrib -l ${B} -b ${B} -i ${B} -p "PATCH][${R}][RESEND" 
-r origin/${R} -s "Backports for ${R}" -o pull-${R}



Thanks, I finally got the invocation to work and sent it off. I think I 
recall hitting the note about "Assuming local branch HEAD", so I 
probably needed to add -l.






On Thu, Jun 22, 2017 at 7:15 PM, Martin Kelly <mke...@xevo.com
<mailto:mke...@xevo.com>> wrote:

(ping) I apologize for the top-post but did not want to have the ping
lost in the noise.

On Mon, 2017-06-19 at 16:43 -0700, Martin Kelly wrote:
> On Sun, 2017-06-18 at 22:28 +0200, Martin Jansa wrote:
> > And there is also this:
> >
> > === Incorrect PACKAGE_ARCH or sstate signatures (3) ===
> >
> > Complete log:
http://logs.nslu2-linux.org/buildlogs/oe/world/rocko/
<http://logs.nslu2-linux.org/buildlogs/oe/world/rocko/>
> > lo
> > g.signatures.20170618_014055.log/
> > * ERROR: 3 issues were found in these recipes: open-vm-tools
> >
> > * ERROR: 1 errors found in
> > signatures.qemux86.do_configure.sigdata.log
> > * ERROR: 1 errors found in
> > signatures.qemux86.do_populate_sysroot.sigdata.log
> > * ERROR: 1 errors found in
> > signatures.qemux86.d

[oe] [meta-oe][PATCH v2] 03/17] open-vm-tools: add missing glib-2.0-native dependency

2017-06-23 Thread Martin Kelly
glib-2.0-native is needed to find glib-genmarshal.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
index a68d48574..683f34eee 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
@@ -26,7 +26,7 @@ SRCREV = "538ea037a1549b6fd4e57529f7448a3fd2aa47af"
 
 S = "${WORKDIR}/git/open-vm-tools"
 
-DEPENDS = "virtual/kernel glib-2.0 util-linux libdnet procps libmspack"
+DEPENDS = "virtual/kernel glib-2.0 glib-2.0-native util-linux libdnet procps 
libmspack"
 RDEPENDS_${PN} = "util-linux libdnet kernel-module-vmhgfs"
 
 inherit module-base kernel-module-split autotools pkgconfig systemd
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 09/17] open-vm-tools: add #include to fix build break

2017-06-23 Thread Martin Kelly
Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 .../0003-add-include-sys-sysmacros.h.patch | 33 ++
 .../open-vm-tools/open-vm-tools_10.1.5.bb  |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-add-include-sys-sysmacros.h.patch

diff --git 
a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-add-include-sys-sysmacros.h.patch
 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-add-include-sys-sysmacros.h.patch
new file mode 100644
index 0..f905601d5
--- /dev/null
+++ 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-add-include-sys-sysmacros.h.patch
@@ -0,0 +1,33 @@
+From 5818acc8032e3247257730376e947330340a07b3 Mon Sep 17 00:00:00 2001
+From: Martin Kelly <mke...@xevo.com>
+Date: Mon, 22 May 2017 17:00:05 -0700
+Subject: [PATCH 2/2] add #include 
+
+In newer glibc versions, the definition for major() has been moved to
+sys/sysmacros.h, and using the older version in  has been
+deprecated. So, add an include for .
+
+Upstream-Status: Pending
+
+Signed-off-by: Martin Kelly <mke...@xevo.com>
+---
+ lib/wiper/wiperPosix.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/open-vm-tools/lib/wiper/wiperPosix.c 
b/open-vm-tools/lib/wiper/wiperPosix.c
+index d389eee..1f221fc 100644
+--- a/lib/wiper/wiperPosix.c
 b/lib/wiper/wiperPosix.c
+@@ -40,6 +40,9 @@
+ #  include 
+ # endif /* __FreeBSD_version >= 50 */
+ #endif
++#if defined(__linux__)
++#include 
++#endif
+ #include 
+ 
+ #include "vmware.h"
+-- 
+2.7.4
+
diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index b3e0afca7..2b2022864 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -25,6 +25,7 @@ SRC_URI = 
"git://github.com/vmware/open-vm-tools.git;protocol=https \
file://vmtoolsd.service \
file://0001-Fix-kernel-detection.patch \
file://0002-configure.ac-don-t-use-dnet-config.patch \
+   file://0003-add-include-sys-sysmacros.h.patch \
"
 
 SRCREV = "854c0bb374612f7e633b448ca273f970f154458b"
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 10/17] open-vm-tools: add missing X11 dependencies

2017-06-23 Thread Martin Kelly
Certain dependencies that are implied when we build with X11 support -- such as
libxext -- were missing. Add them, and meanwhile switch to using
PACKAGECONFIG[x11] instead of DISTRO_FEATURES.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 2b2022864..76d3840e6 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -47,11 +47,13 @@ KERNEL_MODULES_META_PACKAGE = "${PN}"
 SYSTEMD_SERVICE_${PN} = "vmtoolsd.service"
 
 EXTRA_OECONF = "--without-icu --disable-multimon --disable-docs 
--disable-tests \
-   --without-gtk2 --without-gtkmm --without-xerces --without-pam \
+   --without-gtkmm --without-xerces --without-pam \
 --disable-grabbitmqproxy --disable-vgauth --disable-deploypkg \
--with-linuxdir=${STAGING_KERNEL_DIR} 
--with-kernel-release=${KERNEL_VERSION} --without-root-privileges"
 
-EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 
'--without-x', d)}"
+NO_X11_FLAGS = "--without-x --without-gtk2 --without-gtk3"
+X11_DEPENDS = "libxext libxi libxrender libxrandr libxtst gtk+ gdk-pixbuf"
+PACKAGECONFIG[x11] = ",${NO_X11_FLAGS},${X11_DEPENDS}"
 
 EXTRA_OEMAKE = "KERNEL_RELEASE=${KERNEL_VERSION}"
 
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 01/17] add open-vm-tools recipe

2017-06-23 Thread Martin Kelly
This recipe is modified from the recipe originally found in the Open-Switch
repository:

https://github.com/open-switch/ops-build
yocto/openswitch/meta-foss-openswitch/recipes-extended/open-vm-tools/open-vm-tools_10.0.5.bb
Commit 9008de2d8e100f3f868c66765742bca9fa98f3f9

Although the original recipe packaging was Apache-licensed, I received
permission from the author (Diego Dompe) to relicense it under the MIT license
for inclusion in meta-openembedded:

https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html
https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 .../recipes-support/open-vm-tools/files/tools.conf |  2 +
 .../open-vm-tools/files/vmtoolsd.service   | 11 
 .../open-vm-tools/0001-Fix-kernel-detection.patch  | 35 ++
 .../open-vm-tools/open-vm-tools_10.0.5.bb  | 75 ++
 4 files changed, 123 insertions(+)
 create mode 100644 meta-oe/recipes-support/open-vm-tools/files/tools.conf
 create mode 100644 meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb

diff --git a/meta-oe/recipes-support/open-vm-tools/files/tools.conf 
b/meta-oe/recipes-support/open-vm-tools/files/tools.conf
new file mode 100644
index 0..f6cae70cc
--- /dev/null
+++ b/meta-oe/recipes-support/open-vm-tools/files/tools.conf
@@ -0,0 +1,2 @@
+[guestinfo]
+disable-perf-mon=1
diff --git a/meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service 
b/meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service
new file mode 100644
index 0..d30e38055
--- /dev/null
+++ b/meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Open Virtual Machine Tools (VMware Tools)
+ConditionVirtualization=vmware
+
+[Service]
+ExecStart=/usr/bin/vmtoolsd
+Restart=on-failure
+KillSignal=SIGKILL
+
+[Install]
+WantedBy=multi-user.target
diff --git 
a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch
 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch
new file mode 100644
index 0..63ea45324
--- /dev/null
+++ 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch
@@ -0,0 +1,35 @@
+From 5d8814f4b4f016a633984822a6dfbc9426fef333 Mon Sep 17 00:00:00 2001
+From: Diego Dompe <do...@hpe.com>
+Date: Thu, 7 Jan 2016 15:06:16 -0600
+Subject: [PATCH] Fix-kernel-detection
+
+Signed-off-by: Diego Dompe <do...@hpe.com>
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 04e3bac..1ab3f29 100644
+--- a/configure.ac
 b/configure.ac
+@@ -151,7 +151,7 @@ if test "$with_kernel_modules" = "yes"; then
+  if test ! -d "$LINUXDIR/kernel/"; then
+  AC_MSG_ERROR([$LINUXDIR/kernel does not exist])
+  fi
+- LINUXINCLUDE="$LINUXDIR/build/include"
++ LINUXINCLUDE="$LINUXDIR/include"
+  if test ! -d "$LINUXINCLUDE"; then
+ AC_MSG_ERROR([Can't find include dir under $LINUXDIR])
+  fi
+@@ -1034,7 +1034,7 @@ MODULES_DIR=""
+ buildHgfsmounter=no
+ 
+ if test "$os" = "linux"; then
+-   MODULES_DIR="$LINUXDIR/kernel/"
++   MODULES_DIR="/lib/modules/$KERNEL_RELEASE"
+ 
+CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
+CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
+-- 
+1.9.1
+
diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
new file mode 100644
index 0..4dee03a23
--- /dev/null
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
@@ -0,0 +1,75 @@
+# This recipe is modified from the recipe originally found in the Open-Switch
+# repository:
+#
+# https://github.com/open-switch/ops-build
+# 
yocto/openswitch/meta-foss-openswitch/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
+# Commit 9008de2d8e100f3f868c66765742bca9fa98f3f9
+#
+# The recipe packaging has been relicensed under the MIT license for inclusion
+# in meta-openembedded by agreement of the author (Diego Dompe).
+#
+
+DECRIPTION = "open-vm-tools"
+SECTION = "vmware-tools"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5804fe91d3294da4ac47c02b454bbc8a"
+
+PR = "r5"
+
+SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https \
+   file://tools.conf \
+   file://vmtoolsd.service \
+   file://0001-Fix-kernel-detection.patch \
+   "
+
+SRCREV = "538ea037a1549b6fd4e57529f7448a3fd2aa47af"
+
+S = "${WORKDIR}/g

[oe] [meta-oe][PATCH v2] 08/17] open-vm-tools: don't use dnet-config

2017-06-23 Thread Martin Kelly
dnet-config wasn't found in the PATH, and it doesn't work properly for
cross-compile anyway.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 .../0002-configure.ac-don-t-use-dnet-config.patch  | 41 ++
 .../open-vm-tools/open-vm-tools_10.1.5.bb  |  3 ++
 2 files changed, 44 insertions(+)
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch

diff --git 
a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch
 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch
new file mode 100644
index 0..e9cb873f1
--- /dev/null
+++ 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch
@@ -0,0 +1,41 @@
+From 929150608c16644695f19cd2e0cc8a06a41cd497 Mon Sep 17 00:00:00 2001
+From: Martin Kelly <mke...@xevo.com>
+Date: Fri, 7 Apr 2017 15:20:30 -0700
+Subject: [PATCH] configure.ac: don't use dnet-config
+
+The dnet-config tool doesn't know about cross-compilation, so it injects
+-I/usr/include into the path, causing compiler errors. So instead find dnet via
+-ldnet.
+
+Upstream-Status: Inappropriate [embedded specific]
+
+Signed-off-by: Martin Kelly <mke...@xevo.com>
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 3400b86..7d6119e 100644
+--- a/configure.ac
 b/configure.ac
+@@ -942,7 +942,7 @@ if test "$with_dnet" = "yes"; then
+   AC_VMW_CHECK_LIB([dnet],
+[DNET],
+[],
+-   [dnet-config],
++   [],
+[],
+[dnet.h],
+[intf_open],
+@@ -952,7 +952,7 @@ if test "$with_dnet" = "yes"; then
+ 
+if test $have_dnet = "no"; then
+   AC_MSG_ERROR(
+- [dnet-config was not found on your PATH. Please configure 
without dnet (using --without-dnet) or install dnet - 
http://libdnet.sourceforge.net])
++ [dnet was not found. Please configure without dnet (using 
--without-dnet) or install dnet - http://libdnet.sourceforge.net])
+   fi
+ fi
+ 
+-- 
+2.1.4
+
diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 6793d450b..b3e0afca7 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -24,6 +24,7 @@ SRC_URI = 
"git://github.com/vmware/open-vm-tools.git;protocol=https \
file://tools.conf \
file://vmtoolsd.service \
file://0001-Fix-kernel-detection.patch \
+   file://0002-configure.ac-don-t-use-dnet-config.patch \
"
 
 SRCREV = "854c0bb374612f7e633b448ca273f970f154458b"
@@ -76,4 +77,6 @@ do_install_append() {
 do_configure_prepend() {
 export CUSTOM_PROCPS_NAME=procps
 export CUSTOM_PROCPS_LIBS=-L${STAGING_LIBDIR}/libprocps.so
+export CUSTOM_DNET_NAME=dnet
+export CUSTOM_DNET_LIBS=-L${STAGING_LIBDIR}/libdnet.so
 }
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 11/17] open-vm-tools: remove kernel module logic

2017-06-23 Thread Martin Kelly
All the modules are upstream for Linux >= 4.0, so no modules are being built
anyway. We can safely remove the build logic for them.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 .../open-vm-tools/0001-Fix-kernel-detection.patch  | 35 --
 ... 0001-configure.ac-don-t-use-dnet-config.patch} |  0
 ...atch => 0002-add-include-sys-sysmacros.h.patch} |  0
 .../open-vm-tools/open-vm-tools_10.1.5.bb  | 23 --
 4 files changed, 6 insertions(+), 52 deletions(-)
 delete mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch
 rename 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/{0002-configure.ac-don-t-use-dnet-config.patch
 => 0001-configure.ac-don-t-use-dnet-config.patch} (100%)
 rename 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/{0003-add-include-sys-sysmacros.h.patch
 => 0002-add-include-sys-sysmacros.h.patch} (100%)

diff --git 
a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch
 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch
deleted file mode 100644
index 63ea45324..0
--- 
a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 5d8814f4b4f016a633984822a6dfbc9426fef333 Mon Sep 17 00:00:00 2001
-From: Diego Dompe <do...@hpe.com>
-Date: Thu, 7 Jan 2016 15:06:16 -0600
-Subject: [PATCH] Fix-kernel-detection
-
-Signed-off-by: Diego Dompe <do...@hpe.com>

- configure.ac | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 04e3bac..1ab3f29 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -151,7 +151,7 @@ if test "$with_kernel_modules" = "yes"; then
-  if test ! -d "$LINUXDIR/kernel/"; then
-  AC_MSG_ERROR([$LINUXDIR/kernel does not exist])
-  fi
-- LINUXINCLUDE="$LINUXDIR/build/include"
-+ LINUXINCLUDE="$LINUXDIR/include"
-  if test ! -d "$LINUXINCLUDE"; then
- AC_MSG_ERROR([Can't find include dir under $LINUXDIR])
-  fi
-@@ -1034,7 +1034,7 @@ MODULES_DIR=""
- buildHgfsmounter=no
- 
- if test "$os" = "linux"; then
--   MODULES_DIR="$LINUXDIR/kernel/"
-+   MODULES_DIR="/lib/modules/$KERNEL_RELEASE"
- 
-CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
-CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
--- 
-1.9.1
-
diff --git 
a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch
 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-configure.ac-don-t-use-dnet-config.patch
similarity index 100%
rename from 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch
rename to 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-configure.ac-don-t-use-dnet-config.patch
diff --git 
a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-add-include-sys-sysmacros.h.patch
 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch
similarity index 100%
rename from 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-add-include-sys-sysmacros.h.patch
rename to 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch
diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 76d3840e6..24c8e9300 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -23,41 +23,30 @@ LICENSE_modules/solaris = "CDDLv1"
 SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https \
file://tools.conf \
file://vmtoolsd.service \
-   file://0001-Fix-kernel-detection.patch \
-   file://0002-configure.ac-don-t-use-dnet-config.patch \
-   file://0003-add-include-sys-sysmacros.h.patch \
+   file://0001-configure.ac-don-t-use-dnet-config.patch \
+   file://0002-add-include-sys-sysmacros.h.patch \
"
 
 SRCREV = "854c0bb374612f7e633b448ca273f970f154458b"
 
 S = "${WORKDIR}/git/open-vm-tools"
 
-DEPENDS = "virtual/kernel glib-2.0 glib-2.0-native util-linux libdnet procps"
-RDEPENDS_${PN} = "util-linux libdnet kernel-module-vmhgfs"
+DEPENDS = "glib-2.0 glib-2.0-native util-linux libdnet procps"
+RDEPENDS_${PN} = "util-linux libdnet"
 
-inherit module-base kernel-module-split autotools pkgconfig systemd
-
-# from module.bbclass...
-addtask make_scripts after do_patch before do_compile
-do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
-do_make_scripts[depends] = "virtual/kernel:do_shared_workdi

[oe] [meta-oe][PATCH v2] 13/17] open-vm-tools: support FUSE

2017-06-23 Thread Martin Kelly
The vmhgfs driver is now gone, but they use FUSE instead. Add FUSE support so we
don't lose the functionality vmhgfs use to provide.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index c3cb9d567..7d024f260 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -47,6 +47,9 @@ NO_X11_FLAGS = "--without-x --without-gtk2 --without-gtk3"
 X11_DEPENDS = "libxext libxi libxrender libxrandr libxtst gtk+ gdk-pixbuf"
 PACKAGECONFIG[x11] = ",${NO_X11_FLAGS},${X11_DEPENDS}"
 
+# fuse gets implicitly detected; there is no --without-fuse option.
+PACKAGECONFIG[fuse] = ",,fuse"
+
 CFLAGS += '-Wno-error=deprecated-declarations'
 
 FILES_${PN} += "/usr/lib/open-vm-tools/plugins/vmsvc/lib*.so \
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 05/17] open-vm-tools: base_contains --> bb.utils.contains

2017-06-23 Thread Martin Kelly
base_contains is deprecated, as the friendly warning reminds us.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
index 1142399df..9db43b0a1 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
@@ -51,7 +51,7 @@ EXTRA_OECONF = "--without-icu --disable-multimon 
--disable-docs --disable-tests
 --disable-grabbitmqproxy --disable-vgauth --disable-deploypkg \
--with-linuxdir=${STAGING_KERNEL_DIR} 
--with-kernel-release=${KERNEL_VERSION} --without-root-privileges"
 
-EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'x11', '', '--without-x', 
d)}"
+EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 
'--without-x', d)}"
 
 EXTRA_OEMAKE = "KERNEL_RELEASE=${KERNEL_VERSION}"
 
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 07/17] open-vm-tools: don't use mspack

2017-06-23 Thread Martin Kelly
It's not actually needed when you set --disable-deploypkg.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 8a71cb3b6..6793d450b 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -30,7 +30,7 @@ SRCREV = "854c0bb374612f7e633b448ca273f970f154458b"
 
 S = "${WORKDIR}/git/open-vm-tools"
 
-DEPENDS = "virtual/kernel glib-2.0 glib-2.0-native util-linux libdnet procps 
libmspack"
+DEPENDS = "virtual/kernel glib-2.0 glib-2.0-native util-linux libdnet procps"
 RDEPENDS_${PN} = "util-linux libdnet kernel-module-vmhgfs"
 
 inherit module-base kernel-module-split autotools pkgconfig systemd
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 04/17] open-vm-tools: clarify and expand licensing

2017-06-23 Thread Martin Kelly
Userspace tools are licensed LGPLv2 and the kernel modules are various licenses
depending on the platform. Clarify this and add appropriate licensing variables.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb | 10 --
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
index 683f34eee..1142399df 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
@@ -11,8 +11,14 @@
 
 DECRIPTION = "open-vm-tools"
 SECTION = "vmware-tools"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=5804fe91d3294da4ac47c02b454bbc8a"
+
+LICENSE = "LGPLv2.1 & GPLv2 & BSD & CDDLv1"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=0eac46f0b7886425d7faed6aae5aef66"
+LICENSE_modules/freebsd/vmblock = "BSD"
+LICENSE_modules/freebsd/vmmemctl = "GPLv2"
+LICENSE_modules/freebsd/vmxnet = "GPLv2"
+LICENSE_modules/linux = "GPLv2"
+LICENSE_modules/solaris = "CDDLv1"
 
 PR = "r5"
 
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 06/17] open-vm-tools: update version to 10.1.5

2017-06-23 Thread Martin Kelly
Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 .../{open-vm-tools_10.0.5.bb => open-vm-tools_10.1.5.bb}| 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)
 rename meta-oe/recipes-support/open-vm-tools/{open-vm-tools_10.0.5.bb => 
open-vm-tools_10.1.5.bb} (95%)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
similarity index 95%
rename from meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
rename to meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 9db43b0a1..8a71cb3b6 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -13,22 +13,20 @@ DECRIPTION = "open-vm-tools"
 SECTION = "vmware-tools"
 
 LICENSE = "LGPLv2.1 & GPLv2 & BSD & CDDLv1"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=0eac46f0b7886425d7faed6aae5aef66"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b66ba4cb4fc017682c95efc300410e79"
 LICENSE_modules/freebsd/vmblock = "BSD"
 LICENSE_modules/freebsd/vmmemctl = "GPLv2"
 LICENSE_modules/freebsd/vmxnet = "GPLv2"
 LICENSE_modules/linux = "GPLv2"
 LICENSE_modules/solaris = "CDDLv1"
 
-PR = "r5"
-
 SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https \
file://tools.conf \
file://vmtoolsd.service \
file://0001-Fix-kernel-detection.patch \
"
 
-SRCREV = "538ea037a1549b6fd4e57529f7448a3fd2aa47af"
+SRCREV = "854c0bb374612f7e633b448ca273f970f154458b"
 
 S = "${WORKDIR}/git/open-vm-tools"
 
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 14/17] open-vm-tools: scope build to only x86

2017-06-23 Thread Martin Kelly
Since open-vm-tools builds only on x86, set COMPATIBLE_HOST to reflect
this.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 7d024f260..906eaba64 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -34,6 +34,9 @@ S = "${WORKDIR}/git/open-vm-tools"
 DEPENDS = "glib-2.0 glib-2.0-native util-linux libdnet procps"
 RDEPENDS_${PN} = "util-linux libdnet"
 
+# open-vm-tools is supported only on x86.
+COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux'
+
 inherit autotools pkgconfig systemd
 
 SYSTEMD_SERVICE_${PN} = "vmtoolsd.service"
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 02/17] open-vm-tools: add missing pkgconfig dependency

2017-06-23 Thread Martin Kelly
The configure.ac script uses pkgconfig but we didn't depend on it, so it was
silently not using pkgconfig.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
index 4dee03a23..a68d48574 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.0.5.bb
@@ -29,7 +29,7 @@ S = "${WORKDIR}/git/open-vm-tools"
 DEPENDS = "virtual/kernel glib-2.0 util-linux libdnet procps libmspack"
 RDEPENDS_${PN} = "util-linux libdnet kernel-module-vmhgfs"
 
-inherit module-base kernel-module-split autotools systemd
+inherit module-base kernel-module-split autotools pkgconfig systemd
 
 # from module.bbclass...
 addtask make_scripts after do_patch before do_compile
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 12/17] open-vm-tools: line up configure options

2017-06-23 Thread Martin Kelly
Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 24c8e9300..c3cb9d567 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -38,10 +38,10 @@ inherit autotools pkgconfig systemd
 
 SYSTEMD_SERVICE_${PN} = "vmtoolsd.service"
 
-EXTRA_OECONF = "--without-icu --disable-multimon --disable-docs 
--disable-tests \
-   --without-gtkmm --without-xerces --without-pam \
+EXTRA_OECONF = "--without-icu --disable-multimon --disable-docs \
+--disable-tests --without-gtkmm --without-xerces --without-pam 
\
 --disable-grabbitmqproxy --disable-vgauth --disable-deploypkg \
-   --without-root-privileges --without-kernel-modules"
+--without-root-privileges --without-kernel-modules"
 
 NO_X11_FLAGS = "--without-x --without-gtk2 --without-gtk3"
 X11_DEPENDS = "libxext libxi libxrender libxrandr libxtst gtk+ gdk-pixbuf"
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 16/17] open-vm-tools: fix all hardcoded paths

2017-06-23 Thread Martin Kelly
Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 .../recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb  | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 4ab2820c1..2a83e864f 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -56,15 +56,15 @@ PACKAGECONFIG[fuse] = ",,fuse"
 CFLAGS += "-Wno-error=deprecated-declarations"
 
 FILES_${PN} += "\
-/usr/lib/open-vm-tools/plugins/vmsvc/lib*.so \
-/usr/lib/open-vm-tools/plugins/common/lib*.so \
+${libdir}/open-vm-tools/plugins/vmsvc/lib*.so \
+${libdir}/open-vm-tools/plugins/common/lib*.so \
 ${sysconfdir}/vmware-tools/tools.conf \
 "
-FILES_${PN}-locale += "/usr/share/open-vm-tools/messages"
-FILES_${PN}-dev += "/usr/lib/open-vm-tools/plugins/common/lib*.la"
+FILES_${PN}-locale += "${datadir}/open-vm-tools/messages"
+FILES_${PN}-dev += "${libdir}/open-vm-tools/plugins/common/lib*.la"
 FILES_${PN}-dbg += "\
-/usr/lib/open-vm-tools/plugins/common/.debug \
-/usr/lib/open-vm-tools/plugins/vmsvc/.debug \
+${libdir}/open-vm-tools/plugins/common/.debug \
+${libdir}/open-vm-tools/plugins/vmsvc/.debug \
 "
 
 CONFFILES_${PN} += "${sysconfdir}/vmware-tools/tools.conf"
@@ -72,7 +72,7 @@ CONFFILES_${PN} += "${sysconfdir}/vmware-tools/tools.conf"
 RDEPENDS_${PN} = "util-linux libdnet fuse"
 
 do_install_append() {
-ln -sf /usr/sbin/mount.vmhgfs ${D}/sbin/mount.vmhgfs
+ln -sf ${sbindir}/mount.vmhgfs ${D}/sbin/mount.vmhgfs
 install -d ${D}${systemd_unitdir}/system ${D}${sysconfdir}/vmware-tools
 install -m 644 ${WORKDIR}/*.service ${D}${systemd_unitdir}/system
 install -m 0644 ${WORKDIR}/tools.conf 
${D}${sysconfdir}/vmware-tools/tools.conf
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 17/17] open-vm-tools: remove -Wno-error

2017-06-23 Thread Martin Kelly
In the past, we compiled with -Wno-error=deprecated-declarations, but
the current version compiles fine without it, so remove it.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb | 2 --
 1 file changed, 2 deletions(-)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 2a83e864f..65fbfc9e9 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -53,8 +53,6 @@ PACKAGECONFIG[x11] = ",${NO_X11_FLAGS},${X11_DEPENDS}"
 # fuse gets implicitly detected; there is no --without-fuse option.
 PACKAGECONFIG[fuse] = ",,fuse"
 
-CFLAGS += "-Wno-error=deprecated-declarations"
-
 FILES_${PN} += "\
 ${libdir}/open-vm-tools/plugins/vmsvc/lib*.so \
 ${libdir}/open-vm-tools/plugins/common/lib*.so \
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 15/17] open-vm-tools: style changes

2017-06-23 Thread Martin Kelly
Various cosmetic changes to make the recipe match the style guide:

http://www.openembedded.org/wiki/Styleguide

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 .../open-vm-tools/open-vm-tools_10.1.5.bb  | 22 ++
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb 
b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 906eaba64..4ab2820c1 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -9,7 +9,8 @@
 # in meta-openembedded by agreement of the author (Diego Dompe).
 #
 
-DECRIPTION = "open-vm-tools"
+SUMMARY = "Tools to enhance VMWare guest integration and performance"
+HOMEPAGE = "https://github.com/vmware/open-vm-tools;
 SECTION = "vmware-tools"
 
 LICENSE = "LGPLv2.1 & GPLv2 & BSD & CDDLv1"
@@ -32,7 +33,6 @@ SRCREV = "854c0bb374612f7e633b448ca273f970f154458b"
 S = "${WORKDIR}/git/open-vm-tools"
 
 DEPENDS = "glib-2.0 glib-2.0-native util-linux libdnet procps"
-RDEPENDS_${PN} = "util-linux libdnet"
 
 # open-vm-tools is supported only on x86.
 COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux'
@@ -53,18 +53,24 @@ PACKAGECONFIG[x11] = ",${NO_X11_FLAGS},${X11_DEPENDS}"
 # fuse gets implicitly detected; there is no --without-fuse option.
 PACKAGECONFIG[fuse] = ",,fuse"
 
-CFLAGS += '-Wno-error=deprecated-declarations'
+CFLAGS += "-Wno-error=deprecated-declarations"
 
-FILES_${PN} += "/usr/lib/open-vm-tools/plugins/vmsvc/lib*.so \
-   /usr/lib/open-vm-tools/plugins/common/lib*.so \
-${sysconfdir}/vmware-tools/tools.conf"
+FILES_${PN} += "\
+/usr/lib/open-vm-tools/plugins/vmsvc/lib*.so \
+/usr/lib/open-vm-tools/plugins/common/lib*.so \
+${sysconfdir}/vmware-tools/tools.conf \
+"
 FILES_${PN}-locale += "/usr/share/open-vm-tools/messages"
 FILES_${PN}-dev += "/usr/lib/open-vm-tools/plugins/common/lib*.la"
-FILES_${PN}-dbg += "/usr/lib/open-vm-tools/plugins/common/.debug \
-   /usr/lib/open-vm-tools/plugins/vmsvc/.debug"
+FILES_${PN}-dbg += "\
+/usr/lib/open-vm-tools/plugins/common/.debug \
+/usr/lib/open-vm-tools/plugins/vmsvc/.debug \
+"
 
 CONFFILES_${PN} += "${sysconfdir}/vmware-tools/tools.conf"
 
+RDEPENDS_${PN} = "util-linux libdnet fuse"
+
 do_install_append() {
 ln -sf /usr/sbin/mount.vmhgfs ${D}/sbin/mount.vmhgfs
 install -d ${D}${systemd_unitdir}/system ${D}${sysconfdir}/vmware-tools
-- 
2.11.0

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


[oe] [meta-oe][PATCH v2] 00/17] new recipe v2: open-vm-tools recipe

2017-06-23 Thread Martin Kelly
Hi all,

This is version 2 of a patch series to add a new recipe for Open VM Tools to
meta-oe. This recipe is invaluable for using Openembedded with VMWare, as
without the tools, performance is very slow.

More information about Open VM Tools can be found here:

https://github.com/vmware/open-vm-tools

Please note that, as mentioned in the first commit, this recipe is modified
from the recipe originally found in the Open-Switch repository. The first
patch is directly from that repository, and the following patches are
modifications to it.

Original recipe: https://github.com/open-switch/ops-build
yocto/openswitch/meta-foss-openswitch/recipes-extended/open-vm-tools/open-vm-tools_10.0.5.bb
Commit 9008de2d8e100f3f868c66765742bca9fa98f3f9

Although the original recipe packaging was Apache-licensed, I received
permission from the author (Diego Dompe) to relicense it under the MIT license
for inclusion in meta-openembedded:

https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html
https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html

The following changes since commit d2da8b82cfb2f8e55236751c1c56c9e7f3b5f68d:

  scsirastools: Upgrade to 1.6.6 (2017-06-22 16:04:14 +0200)

are available in the git repository at:

  git://github.com/XevoInc/meta-openembedded open-vm-tools-v2
  https://github.com/XevoInc/meta-openembedded/tree/open-vm-tools-v2

Martin Kelly (17):
  add open-vm-tools recipe
  open-vm-tools: add missing pkgconfig dependency
  open-vm-tools: add missing glib-2.0-native dependency
  open-vm-tools: clarify and expand licensing
  open-vm-tools: base_contains --> bb.utils.contains
  open-vm-tools: update version to 10.1.5
  open-vm-tools: don't use mspack
  open-vm-tools: don't use dnet-config
  open-vm-tools: add #include to fix build break
  open-vm-tools: add missing X11 dependencies
  open-vm-tools: remove kernel module logic
  open-vm-tools: line up configure options
  open-vm-tools: support FUSE
  open-vm-tools: scope build to only x86
  open-vm-tools: style changes
  open-vm-tools: fix all hardcoded paths
  open-vm-tools: remove -Wno-error

 .../recipes-support/open-vm-tools/files/tools.conf |  2 +
 .../open-vm-tools/files/vmtoolsd.service   | 11 +++
 .../0001-configure.ac-don-t-use-dnet-config.patch  | 41 +++
 .../0002-add-include-sys-sysmacros.h.patch | 33 +
 .../open-vm-tools/open-vm-tools_10.1.5.bb  | 84 ++
 5 files changed, 171 insertions(+)
 create mode 100644 meta-oe/recipes-support/open-vm-tools/files/tools.conf
 create mode 100644 meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-configure.ac-don-t-use-dnet-config.patch
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb

-- 
2.11.0

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


Re: [oe] [meta-oe][PATCH 00/14] new recipe: open-vm-tools recipe

2017-06-22 Thread Martin Kelly

On 06/22/2017 10:32 AM, Martin Jansa wrote:

It basically just calls this script:

openembedded-core/scripts/sstate-diff-machines.sh
--machines="qemux86copy qemux86 qemuarm" --targets=world
--tmpdir=tmp-glibc/ --analyze 2>&1 | tee ${LOGDIR}/signatures.log

see:
https://github.com/shr-project/jenkins-jobs/blob/master/jenkins-job.sh#L258

for qemux86copy you either need to add meta-selftest layer from oe-core
or apply:
http://git.openembedded.org/openembedded-core-contrib/commit/?h=jansa/master=9d45c08641b868322af4bebc2f095340cf4dac3f

Sorry I didn't reply earlier, I think it's resolved by dropped kernel
dependency and I didn't notice the question about reproducing it.



I'm trying to run the script, but I'm just getting output suggesting 
everything is OK, even with the old change that I know has issues. I'm 
guessing I need to manually run through some steps that simulate what 
Jenkins would have done before running this script ("bitbake world" on 
several arches with a particular directory structure?).


It seems to me we have a few options:
- Try to troubleshoot how to manually run the tests
- Submit the fixed-up version and hope it works. I agree that dropping 
the kernel dependency will probably fix the issue.
- If you know how to trigger the Jenkins build manually, you could test 
it on my new branch before I submit:

https://github.com/xevoinc/meta-openembedded/tree/open-vm-tools-v2

I'm happy with any of these; let me know what you think.



On Thu, Jun 22, 2017 at 7:15 PM, Martin Kelly <mke...@xevo.com
<mailto:mke...@xevo.com>> wrote:

(ping) I apologize for the top-post but did not want to have the ping
lost in the noise.

On Mon, 2017-06-19 at 16:43 -0700, Martin Kelly wrote:
> On Sun, 2017-06-18 at 22:28 +0200, Martin Jansa wrote:
> > And there is also this:
> >
> > === Incorrect PACKAGE_ARCH or sstate signatures (3) ===
> >
> > Complete log:
http://logs.nslu2-linux.org/buildlogs/oe/world/rocko/
<http://logs.nslu2-linux.org/buildlogs/oe/world/rocko/>
> > lo
> > g.signatures.20170618_014055.log/
> > * ERROR: 3 issues were found in these recipes: open-vm-tools
> >
> > * ERROR: 1 errors found in
> > signatures.qemux86.do_configure.sigdata.log
> > * ERROR: 1 errors found in
> > signatures.qemux86.do_populate_sysroot.sigdata.log
> > * ERROR: 1 errors found in
> > signatures.qemux86.do_package_write_ipk.sigdata.log
> >
> > * ERROR: open-vm-tools different signature for task
> > do_configure.sigdata between qemux86copy and qemux86
> > * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-
> > glibc/sstate-
> > diff/1497786055/signatures.qemux86.do_configure.sigdata.log
> > * ERROR: open-vm-tools different signature for task
> > do_populate_sysroot.sigdata between qemux86copy and qemux86
> > * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-
> > glibc/sstate-
> > diff/1497786055/signatures.qemux86.do_populate_sysroot.sigdata.log
> > * ERROR: open-vm-tools different signature for task
> > do_package_write_ipk.sigdata between qemux86copy and qemux86
> > * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-
> > glibc/sstate-
> > diff/1497786055/signatures.qemux86.do_package_write_ipk.sigdata.log
> > * ERROR: 3 issues were found in these recipes: open-vm-tools
> >
> > So it probably depends on some MACHINE specific variable without
> > being marked as MACHINE_ARCH.
> >
> > Looking at:
> >
https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2
<https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2>
> > ab
> > 7cac5dc94aaed8992b5a1/meta-oe/recipes-support/open-vm-tools/open-
> > vm-
> > tools_10.1.5.bb <http://tools_10.1.5.bb>
> >
> > It's depending on kernel, so it needs to be MACHINE_ARCH, also I've
> > noticed few more issues:
> >
>
> Thanks for all the feedback. I believe I've now fixed all the issues
> you outlined.
>
> I dropped the kernel dependency entirely, as we're no longer building
> the kernel modules (they all got upstreamed). Thus I suspect the
> issue
> is no longer present with my latest changes.
>
> That said, I can't repro the sstate errors on my local machine. Could
> you provide repro steps so I can verify this is fixed before I send
> new
> patches?
>
> > DEPENDS is there twice:
> >
https://github.com/XevoInc/meta-openembe

Re: [oe] [meta-oe][PATCH 00/14] new recipe: open-vm-tools recipe

2017-06-22 Thread Martin Kelly
(ping) I apologize for the top-post but did not want to have the ping
lost in the noise.

On Mon, 2017-06-19 at 16:43 -0700, Martin Kelly wrote:
> On Sun, 2017-06-18 at 22:28 +0200, Martin Jansa wrote:
> > And there is also this:
> > 
> > === Incorrect PACKAGE_ARCH or sstate signatures (3) ===
> > 
> > Complete log: http://logs.nslu2-linux.org/buildlogs/oe/world/rocko/
> > lo
> > g.signatures.20170618_014055.log/
> >     * ERROR: 3 issues were found in these recipes: open-vm-tools
> > 
> >     * ERROR: 1 errors found in
> > signatures.qemux86.do_configure.sigdata.log
> >     * ERROR: 1 errors found in
> > signatures.qemux86.do_populate_sysroot.sigdata.log
> >     * ERROR: 1 errors found in
> > signatures.qemux86.do_package_write_ipk.sigdata.log
> > 
> >     * ERROR: open-vm-tools different signature for task
> > do_configure.sigdata between qemux86copy and qemux86
> >     * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-
> > glibc/sstate-
> > diff/1497786055/signatures.qemux86.do_configure.sigdata.log
> >     * ERROR: open-vm-tools different signature for task
> > do_populate_sysroot.sigdata between qemux86copy and qemux86
> >     * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-
> > glibc/sstate-
> > diff/1497786055/signatures.qemux86.do_populate_sysroot.sigdata.log
> >     * ERROR: open-vm-tools different signature for task
> > do_package_write_ipk.sigdata between qemux86copy and qemux86
> >     * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-
> > glibc/sstate-
> > diff/1497786055/signatures.qemux86.do_package_write_ipk.sigdata.log
> >     * ERROR: 3 issues were found in these recipes: open-vm-tools
> > 
> > So it probably depends on some MACHINE specific variable without
> > being marked as MACHINE_ARCH.
> > 
> > Looking at:
> > https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2
> > ab
> > 7cac5dc94aaed8992b5a1/meta-oe/recipes-support/open-vm-tools/open-
> > vm-
> > tools_10.1.5.bb
> > 
> > It's depending on kernel, so it needs to be MACHINE_ARCH, also I've
> > noticed few more issues:
> > 
> 
> Thanks for all the feedback. I believe I've now fixed all the issues
> you outlined.
> 
> I dropped the kernel dependency entirely, as we're no longer building
> the kernel modules (they all got upstreamed). Thus I suspect the
> issue
> is no longer present with my latest changes.
> 
> That said, I can't repro the sstate errors on my local machine. Could
> you provide repro steps so I can verify this is fixed before I send
> new
> patches?
> 
> > DEPENDS is there twice:
> > https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2
> > ab
> > 7cac5dc94aaed8992b5a1/meta-oe/recipes-support/open-vm-tools/open-
> > vm-
> > tools_10.1.5.bb#L24
> > https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2
> > ab
> > 7cac5dc94aaed8992b5a1/meta-oe/recipes-support/open-vm-tools/open-
> > vm-
> > tools_10.1.5.bb#L39
> > 
> > What is supposed to set KERNEL_VERSION variable in:
> > https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2
> > ab
> > 7cac5dc94aaed8992b5a1/meta-oe/recipes-support/open-vm-tools/open-
> > vm-
> > tools_10.1.5.bb#L58
> > ? 
> > 
> > Don't use tags in SRCREV, use git hash instead (otherwise bitbake
> > fetcher will reach upstream git repo every single time the recipe
> > is
> > parsed and will cause failed builds when github isn't accessible).
> > https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2
> > ab
> > 7cac5dc94aaed8992b5a1/meta-oe/recipes-support/open-vm-tools/open-
> > vm-
> > tools_10.1.5.bb#L35
> > 
> > There are many hardcoded paths like /usr/lib/ or /usr/sbin/, please
> > use proper variables like libdir, sbindir.
> > 
> > Once you fix these issues please resend all changes to the ML, it's
> > much better to review inline than this.
> > 
> > Regards,
> > 
> > 
> > On Sun, Jun 18, 2017 at 9:58 PM, Martin Jansa <martin.jansa@gmail.c
> > om
> > > wrote:
> > > Fails to configure on qemuarm.
> > > 
> > > If arm isn't expected to be supported, can you please update
> > > COMPATIBLE_HOST restriction?
> > > 
> > > http://errors.yoctoproject.org/Errors/Details/145599/
> > > 
> > > On Thu, Jun 15, 2017 at 7:50 PM, Martin Jansa <martin.jansa@gmail
> > > .c
> > > om> wrote:
> > > &g

Re: [oe] meta-qt5 nothing provides qtdeclarative-plugins

2017-06-21 Thread Martin Kelly
On Wed, 2017-06-21 at 14:41 -0400, Paul Knopf wrote:
> I'm not familiar with the qt5 build process. Do you know what
> PACKAGECONFIG
> I need to enable?
> 
> https://github.com/meta-qt5/meta-qt5/blob/3ae86cb/recipes-qt/qt5/qtba
> se_git.bb
> 

You need qml-debug. See this thread for more details:

https://lists.linuxfoundation.org/pipermail/automotive-discussions/2017
-May/004026.html

>From the thread, if you don't need the qmltooling plugin, then I
believe you can just drop your dependency on qtdeclarative-plugins, and
the error will go away.

> On Wed, Jun 21, 2017 at 2:37 PM, Martin Jansa  >
> wrote:
> 
> > My guess is that you're missing a few qtbase PACKAGECONFIGs.
> > 
> > On Wed, Jun 21, 2017 at 8:15 PM, Paul Knopf  > >
> > wrote:
> > 
> > > When I try to use "packagegroup-qt5-qtcreator-debug", I get this
> > > error.
> > > 
> > > nothing provides qtdeclarative-plugins needed by
> > > packagegroup-qt5-qtcreator-debug-1.0-r0.noarch
> > > 
> > > I am using poky/pyro, with meta-qt5/master
> > > (3ae86cb32edd1449f702e0a094929ae9b21ce191).
> > > 
> > > I checked the build/workspace directory for this recipe, and
> > > indeed, no
> > > files are being put into the qtdeclarative-plugins package. The
> > > build
> > > directory contains no plugins directory.
> > > 
> > > I checked the morty branch and some
> > > "plugins/qmltooling/libqmldbg_*".so"
> > > files were being placed inside of the "qtdeclarative-plugins"
> > > package.
> > > 
> > > Does the "packagegroup-qt5-qtcreator-debug" need to remove the
> > > "qtdeclarative-plugins" dependency, or does the qtdeclarative
> > > recipe need
> > > to be fixes to include plugins in the build output?
> > > --
> > > ___
> > > 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 00/14] new recipe: open-vm-tools recipe

2017-06-19 Thread Martin Kelly
On Sun, 2017-06-18 at 22:28 +0200, Martin Jansa wrote:
> And there is also this:
> 
> === Incorrect PACKAGE_ARCH or sstate signatures (3) ===
> 
> Complete log: http://logs.nslu2-linux.org/buildlogs/oe/world/rocko/lo
> g.signatures.20170618_014055.log/
>     * ERROR: 3 issues were found in these recipes: open-vm-tools
> 
>     * ERROR: 1 errors found in
> signatures.qemux86.do_configure.sigdata.log
>     * ERROR: 1 errors found in
> signatures.qemux86.do_populate_sysroot.sigdata.log
>     * ERROR: 1 errors found in
> signatures.qemux86.do_package_write_ipk.sigdata.log
> 
>     * ERROR: open-vm-tools different signature for task
> do_configure.sigdata between qemux86copy and qemux86
>     * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-
> glibc/sstate-
> diff/1497786055/signatures.qemux86.do_configure.sigdata.log
>     * ERROR: open-vm-tools different signature for task
> do_populate_sysroot.sigdata between qemux86copy and qemux86
>     * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-
> glibc/sstate-
> diff/1497786055/signatures.qemux86.do_populate_sysroot.sigdata.log
>     * ERROR: open-vm-tools different signature for task
> do_package_write_ipk.sigdata between qemux86copy and qemux86
>     * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-
> glibc/sstate-
> diff/1497786055/signatures.qemux86.do_package_write_ipk.sigdata.log
>     * ERROR: 3 issues were found in these recipes: open-vm-tools
> 
> So it probably depends on some MACHINE specific variable without
> being marked as MACHINE_ARCH.
> 
> Looking at:
> https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2ab
> 7cac5dc94aaed8992b5a1/meta-oe/recipes-support/open-vm-tools/open-vm-
> tools_10.1.5.bb
> 
> It's depending on kernel, so it needs to be MACHINE_ARCH, also I've
> noticed few more issues:
> 

Thanks for all the feedback. I believe I've now fixed all the issues
you outlined.

I dropped the kernel dependency entirely, as we're no longer building
the kernel modules (they all got upstreamed). Thus I suspect the issue
is no longer present with my latest changes.

That said, I can't repro the sstate errors on my local machine. Could
you provide repro steps so I can verify this is fixed before I send new
patches?

> DEPENDS is there twice:
> https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2ab
> 7cac5dc94aaed8992b5a1/meta-oe/recipes-support/open-vm-tools/open-vm-
> tools_10.1.5.bb#L24
> https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2ab
> 7cac5dc94aaed8992b5a1/meta-oe/recipes-support/open-vm-tools/open-vm-
> tools_10.1.5.bb#L39
> 
> What is supposed to set KERNEL_VERSION variable in:
> https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2ab
> 7cac5dc94aaed8992b5a1/meta-oe/recipes-support/open-vm-tools/open-vm-
> tools_10.1.5.bb#L58
> ? 
> 
> Don't use tags in SRCREV, use git hash instead (otherwise bitbake
> fetcher will reach upstream git repo every single time the recipe is
> parsed and will cause failed builds when github isn't accessible).
> https://github.com/XevoInc/meta-openembedded/blob/402d1b3917195beb2ab
> 7cac5dc94aaed8992b5a1/meta-oe/recipes-support/open-vm-tools/open-vm-
> tools_10.1.5.bb#L35
> 
> There are many hardcoded paths like /usr/lib/ or /usr/sbin/, please
> use proper variables like libdir, sbindir.
> 
> Once you fix these issues please resend all changes to the ML, it's
> much better to review inline than this.
> 
> Regards,
> 
> 
> On Sun, Jun 18, 2017 at 9:58 PM, Martin Jansa <martin.ja...@gmail.com
> > wrote:
> > Fails to configure on qemuarm.
> > 
> > If arm isn't expected to be supported, can you please update
> > COMPATIBLE_HOST restriction?
> > 
> > http://errors.yoctoproject.org/Errors/Details/145599/
> > 
> > On Thu, Jun 15, 2017 at 7:50 PM, Martin Jansa <martin.jansa@gmail.c
> > om> wrote:
> > > OK, I'll try to remember to fix it before merge.
> > > 
> > > I'm sorry about it, tweaking other people commits always strikes
> > > back :).
> > > 
> > > On Thu, Jun 15, 2017 at 7:40 PM, Martin Kelly <mke...@xevo.com>
> > > wrote:
> > > > On 06/15/2017 09:54 AM, Martin Jansa wrote:
> > > > > It didn't make it to patchwork, because you've sent only the
> > > > > cover
> > > > > letter. I've added it to master-next now.
> > > > > 
> > > > > Next time please send also individual patches. So that it
> > > > > gets more
> > > > > visibility for other people to comment and also that I can
> > > > > use patchwork
> > > > > to pul

Re: [oe] [meta-oe][PATCH 00/14] new recipe: open-vm-tools recipe

2017-06-19 Thread Martin Kelly
On Fri, 2017-06-16 at 21:53 +, Darren Hart wrote:
> On 06/09/2017 03:22 PM, Martin Kelly wrote:
> > Hi all,
> > 
> > This patch series adds a new recipe for Open VM Tools to meta-oe.
> > This recipe is invaluable for using Openembedded with VMWare, as
> > without the tools, performance is very slow.
> > More information about Open VM Tools can be found here:
> > 
> > 
> > https://github.com/vmware/open-vm-tools
> > 
> > 
> > 
> > Please note that, as mentioned in the first commit, this recipe is
> > modified from the recipe originally found in the Open-Switch
> > repository. The first patch is directly from that repository, and
> > the following patches are modifications to it.
> 
> Hi all,
> 
> Please forgive me if this doesn’t land on the mailing list quite
> right. I am no longer subscribed to this list and replying from web
> archives can be hit and miss.
> 
> I wanted to reach out and say it’s great to see this recipe being
> submitted to meta-oe, and nice work updating the recipe meta-data.
> 
> If there is something we can do to help make this easier to maintain,
> support, etc, please don’t hesitate to reach out to me. I noticed,
> for example, there are a few patches to deal with deprecated library
> calls and the OE build environment.
> 

Thanks, will do. There's a few patches that should probably go upstream
if they're not already present in some other form.

> Finally… as the author of send-pull-request, I have to confess a
> twinge of guilt when it failed you Martin. If you want to send me
> details on how you ran it and the details of the failure, I’d be
> happy to look into it.
> 
> One possibility is that your local branch didn’t match the remote
> branch. Another possibility is that it isn’t parsing the GitHub
> repository location correctly, and that may need updating.
> 

Thanks; as you may have seen, I need to make a few changes due to
issues that Martin Jansa found. I will try send-pull-request again and
send you details about any issues I hit.

> Thanks,
> 
> --
> Darren Hart
> Director / Open Source Architect
> VMware Open Source Technology Center
> 
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe][PATCH 00/14] new recipe: open-vm-tools recipe

2017-06-19 Thread Martin Kelly
-Original Message-
From: Martin Jansa <martin.ja...@gmail.com>
To: Martin Kelly <mke...@xevo.com>
Cc: openembeded-devel <openembedded-devel@lists.openembedded.org>, Koen
Kooi <k...@dominion.thruhere.net>
Subject: Re: [oe] [meta-oe][PATCH 00/14] new recipe: open-vm-tools
recipe
Date: Sun, 18 Jun 2017 21:58:47 +0200

Fails to configure on qemuarm.

If arm isn't expected to be supported, can you please update
COMPATIBLE_HOST restriction?

http://errors.yoctoproject.org/Errors/Details/145599/

Yes, I will fix this and the other issues you found. Thanks for finding
them.

On Thu, Jun 15, 2017 at 7:50 PM, Martin Jansa <martin.ja...@gmail.com>
wrote:
> OK, I'll try to remember to fix it before merge.
> 
> I'm sorry about it, tweaking other people commits always strikes back
> :).
> 
> On Thu, Jun 15, 2017 at 7:40 PM, Martin Kelly <mke...@xevo.com>
> wrote:
> > On 06/15/2017 09:54 AM, Martin Jansa wrote:
> > > It didn't make it to patchwork, because you've sent only the
> > > cover
> > > letter. I've added it to master-next now.
> > > 
> > > Next time please send also individual patches. So that it gets
> > > more
> > > visibility for other people to comment and also that I can use
> > > patchwork
> > > to pull it in.
> > > 
> > > Regards,
> > > 
> > > 
> >  
> > Small note: Looks like the initial commit (24b2ac) has a small typo
> > that should ideally be fixed before it's merged into master:
> > 
> > "open-vm-tools: add recipe from meat-foss-openswitch"
> > 
> > "meat" --> "meta"
> > 
> > > On Thu, Jun 15, 2017 at 6:36 PM, Martin Kelly <mke...@xevo.com
> > > <mailto:mke...@xevo.com>> wrote:
> > > 
> > >     On 06/09/2017 03:22 PM, Martin Kelly wrote:
> > > 
> > >         Hi all,
> > > 
> > >         This patch series adds a new recipe for Open VM Tools to
> > >         meta-oe. This
> > >         recipe is invaluable for using Openembedded with VMWare,
> > > as
> > >         without the
> > >         tools, performance is very slow.
> > > 
> > >         More information about Open VM Tools can be found here:
> > > 
> > >         https://github.com/vmware/open-vm-tools
> > >         <https://github.com/vmware/open-vm-tools>
> > > 
> > >         Please note that, as mentioned in the first commit, this
> > > recipe is
> > >         modified from the recipe originally found in the Open-
> > > Switch
> > >         repository.
> > >         The first patch is directly from that repository, and the
> > > following
> > >         patches are modifications to it.
> > > 
> > >         Original recipe:
> > >         https://github.com/open-switch/ops-build
> > >         <https://github.com/open-switch/ops-build>
> > >         yocto/openswitch/meta-foss-openswitch/recipes-
> > > extended/open-vm-tools/open-vm-tools_10.0.5.bb
> > >         <http://open-vm-tools_10.0.5.bb>
> > > 
> > >         Commit 9008de2d8e100f3f868c66765742bca9fa98f3f9
> > > 
> > >         Although the original recipe packaging was Apache-
> > > licensed, I
> > >         received
> > >         permission from the author (Diego Dompe) to relicense it
> > > under
> > >         the MIT
> > >         license for inclusion in meta-openembedded:
> > > 
> > >         https://lists.openswitch.net/pipermail/ops-dev/2017-April
> > > /014715.html
> > >         <https://lists.openswitch.net/pipermail/ops-dev/2017-Apri
> > > l/014715.html>
> > >         https://lists.openswitch.net/pipermail/ops-dev/2017-April
> > > /014716.html
> > > 
> > >         <https://lists.openswitch.net/pipermail/ops-dev/2017-Apri
> > > l/014716.html>
> > > 
> > >         --
> > >         The following changes since commit
> > >         41cf832cc9abd6f2293a6d612463a34a53a9a52a:
> > > 
> > >           Revert "rrdtool: add gettext-native dependency" (2017-
> > > 06-05
> > >         11:13:09
> > >         +0200)
> > > 
> > >         are available in the git repository at:
> > > 
> > >           https://github.com/XevoInc/meta-openembedded
> > >         <https://github.com/XevoInc/meta-openembedded>
> > > 
> > >         for you to fetch changes up to
&g

Re: [oe] [meta-oe][PATCH 00/14] new recipe: open-vm-tools recipe

2017-06-15 Thread Martin Kelly

On 06/15/2017 09:54 AM, Martin Jansa wrote:

It didn't make it to patchwork, because you've sent only the cover
letter. I've added it to master-next now.

Next time please send also individual patches. So that it gets more
visibility for other people to comment and also that I can use patchwork
to pull it in.

Regards,



Small note: Looks like the initial commit (24b2ac) has a small typo that 
should ideally be fixed before it's merged into master:


"open-vm-tools: add recipe from meat-foss-openswitch"

"meat" --> "meta"


On Thu, Jun 15, 2017 at 6:36 PM, Martin Kelly <mke...@xevo.com
<mailto:mke...@xevo.com>> wrote:

On 06/09/2017 03:22 PM, Martin Kelly wrote:

Hi all,

This patch series adds a new recipe for Open VM Tools to
meta-oe. This
recipe is invaluable for using Openembedded with VMWare, as
without the
tools, performance is very slow.

More information about Open VM Tools can be found here:

https://github.com/vmware/open-vm-tools
<https://github.com/vmware/open-vm-tools>

Please note that, as mentioned in the first commit, this recipe is
modified from the recipe originally found in the Open-Switch
repository.
The first patch is directly from that repository, and the following
patches are modifications to it.

Original recipe:
https://github.com/open-switch/ops-build
<https://github.com/open-switch/ops-build>

yocto/openswitch/meta-foss-openswitch/recipes-extended/open-vm-tools/open-vm-tools_10.0.5.bb
<http://open-vm-tools_10.0.5.bb>

Commit 9008de2d8e100f3f868c66765742bca9fa98f3f9

Although the original recipe packaging was Apache-licensed, I
received
permission from the author (Diego Dompe) to relicense it under
the MIT
license for inclusion in meta-openembedded:

https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html
<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html>
https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html
<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html>

--
The following changes since commit
41cf832cc9abd6f2293a6d612463a34a53a9a52a:

  Revert "rrdtool: add gettext-native dependency" (2017-06-05
11:13:09
+0200)

are available in the git repository at:

  https://github.com/XevoInc/meta-openembedded
<https://github.com/XevoInc/meta-openembedded>

for you to fetch changes up to
402d1b3917195beb2ab7cac5dc94aaed8992b5a1:

  open-vm-tools: style changes (2017-06-07 22:31:34 +0000)

    
Martin Kelly (14):
  add open-vm-tools recipe
  open-vm-tools: add missing pkgconfig dependency
  open-vm-tools: add missing glib-2.0-native dependency
  open-vm-tools: clarify and expand licensing
  open-vm-tools: base_contains --> bb.utils.contains
  open-vm-tools: update version to 10.1.5
  open-vm-tools: don't use mspack
  open-vm-tools: don't use dnet-config
  open-vm-tools: add #include to fix build break
  open-vm-tools: add missing X11 dependencies
  open-vm-tools: remove kernel module logic
  open-vm-tools: line up configure options
  open-vm-tools: support FUSE
  open-vm-tools: style changes

 .../recipes-support/open-vm-tools/files/tools.conf |  2 +
 .../open-vm-tools/files/vmtoolsd.service   | 11 +++
 .../open-vm-tools/0001-Fix-kernel-detection.patch  | 35 +
 .../0002-configure.ac-don-t-use-dnet-config.patch  | 41 ++
 .../0003-add-include-sys-sysmacros.h.patch | 33 
 .../open-vm-tools/open-vm-tools_10.1.5.bb
<http://open-vm-tools_10.1.5.bb>  | 90
++
 6 files changed, 212 insertions(+)
 create mode 100644
meta-oe/recipes-support/open-vm-tools/files/tools.conf
 create mode 100644
meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service
 create mode 100644

meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch

 create mode 100644

meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch

 create mode 100644

meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-add-include-sys-sysmacros.h.patch

 create mode 100644
meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
<http://open-vm-tools_10.1.5.bb>
--
  

Re: [oe] [meta-oe][PATCH 00/14] new recipe: open-vm-tools recipe

2017-06-15 Thread Martin Kelly

On 06/15/2017 10:17 AM, Martin Jansa wrote:

No problem, I had issues with that script as well, but it works for me
if I provide all necessary params manually (when it doesn't try to
figure out anything).



Makes sense; I think the script may be too smart for its own good :).


On Thu, Jun 15, 2017 at 7:07 PM, Martin Kelly <mke...@xevo.com
<mailto:mke...@xevo.com>> wrote:

On 06/15/2017 09:54 AM, Martin Jansa wrote:

It didn't make it to patchwork, because you've sent only the cover
letter. I've added it to master-next now.

Next time please send also individual patches. So that it gets more
visibility for other people to comment and also that I can use
patchwork
to pull it in.

Regards,


Thanks, sorry about that. I was trying to use the send-pull-request
script and getting errors; somehow it couldn't figure out the branch
I was using. I tried to fix the script but eventually gave up and
did a manual pull request attempting to mimic what the script would
have spit out.

On Thu, Jun 15, 2017 at 6:36 PM, Martin Kelly <mke...@xevo.com
<mailto:mke...@xevo.com>
<mailto:mke...@xevo.com <mailto:mke...@xevo.com>>> wrote:

    On 06/09/2017 03:22 PM, Martin Kelly wrote:

Hi all,

This patch series adds a new recipe for Open VM Tools to
meta-oe. This
recipe is invaluable for using Openembedded with VMWare, as
without the
tools, performance is very slow.

More information about Open VM Tools can be found here:

https://github.com/vmware/open-vm-tools
<https://github.com/vmware/open-vm-tools>
<https://github.com/vmware/open-vm-tools
<https://github.com/vmware/open-vm-tools>>

Please note that, as mentioned in the first commit, this
recipe is
modified from the recipe originally found in the Open-Switch
repository.
The first patch is directly from that repository, and
the following
patches are modifications to it.

Original recipe:
https://github.com/open-switch/ops-build
<https://github.com/open-switch/ops-build>
<https://github.com/open-switch/ops-build
<https://github.com/open-switch/ops-build>>


yocto/openswitch/meta-foss-openswitch/recipes-extended/open-vm-tools/open-vm-tools_10.0.5.bb
<http://open-vm-tools_10.0.5.bb>
<http://open-vm-tools_10.0.5.bb
<http://open-vm-tools_10.0.5.bb>>

Commit 9008de2d8e100f3f868c66765742bca9fa98f3f9

Although the original recipe packaging was
Apache-licensed, I
received
permission from the author (Diego Dompe) to relicense it
under
the MIT
license for inclusion in meta-openembedded:


https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html
<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html>

<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html
<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html>>

https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html
<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html>


<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html
<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html>>

--
The following changes since commit
41cf832cc9abd6f2293a6d612463a34a53a9a52a:

  Revert "rrdtool: add gettext-native dependency"
(2017-06-05
11:13:09
+0200)

are available in the git repository at:

  https://github.com/XevoInc/meta-openembedded
<https://github.com/XevoInc/meta-openembedded>
<https://github.com/XevoInc/meta-openembedded
<https://github.com/XevoInc/meta-openembedded>>

for you to fetch changes up to
402d1b3917195beb2ab7cac5dc94aaed8992b5a1:

  open-vm-tools: style changes (2017-06-07 22:31:34 +)



Martin Kelly (14):
  add open-vm-tools recipe
  open-vm-tools: add missing pkgconfig dependency
  open-vm-tools: add missing glib-2.0-native dependency
  open-vm-tools: clarify and expand licensing
  open-vm-tool

Re: [oe] [meta-oe][PATCH 00/14] new recipe: open-vm-tools recipe

2017-06-15 Thread Martin Kelly

On 06/09/2017 03:22 PM, Martin Kelly wrote:

Hi all,

This patch series adds a new recipe for Open VM Tools to meta-oe. This
recipe is invaluable for using Openembedded with VMWare, as without the
tools, performance is very slow.

More information about Open VM Tools can be found here:

https://github.com/vmware/open-vm-tools

Please note that, as mentioned in the first commit, this recipe is
modified from the recipe originally found in the Open-Switch repository.
The first patch is directly from that repository, and the following
patches are modifications to it.

Original recipe:
https://github.com/open-switch/ops-build
yocto/openswitch/meta-foss-openswitch/recipes-extended/open-vm-tools/open-vm-tools_10.0.5.bb

Commit 9008de2d8e100f3f868c66765742bca9fa98f3f9

Although the original recipe packaging was Apache-licensed, I received
permission from the author (Diego Dompe) to relicense it under the MIT
license for inclusion in meta-openembedded:

https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html
https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html

--
The following changes since commit
41cf832cc9abd6f2293a6d612463a34a53a9a52a:

  Revert "rrdtool: add gettext-native dependency" (2017-06-05 11:13:09
+0200)

are available in the git repository at:

  https://github.com/XevoInc/meta-openembedded

for you to fetch changes up to 402d1b3917195beb2ab7cac5dc94aaed8992b5a1:

  open-vm-tools: style changes (2017-06-07 22:31:34 +)

--------
Martin Kelly (14):
  add open-vm-tools recipe
  open-vm-tools: add missing pkgconfig dependency
  open-vm-tools: add missing glib-2.0-native dependency
  open-vm-tools: clarify and expand licensing
  open-vm-tools: base_contains --> bb.utils.contains
  open-vm-tools: update version to 10.1.5
  open-vm-tools: don't use mspack
  open-vm-tools: don't use dnet-config
  open-vm-tools: add #include to fix build break
  open-vm-tools: add missing X11 dependencies
  open-vm-tools: remove kernel module logic
  open-vm-tools: line up configure options
  open-vm-tools: support FUSE
  open-vm-tools: style changes

 .../recipes-support/open-vm-tools/files/tools.conf |  2 +
 .../open-vm-tools/files/vmtoolsd.service   | 11 +++
 .../open-vm-tools/0001-Fix-kernel-detection.patch  | 35 +
 .../0002-configure.ac-don-t-use-dnet-config.patch  | 41 ++
 .../0003-add-include-sys-sysmacros.h.patch | 33 
 .../open-vm-tools/open-vm-tools_10.1.5.bb  | 90
++
 6 files changed, 212 insertions(+)
 create mode 100644 meta-oe/recipes-support/open-vm-tools/files/tools.conf
 create mode 100644
meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service
 create mode 100644
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch

 create mode 100644
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch

 create mode 100644
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-add-include-sys-sysmacros.h.patch

 create mode 100644
meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
--
2.1.4


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


Re: [oe] [meta-oe][PATCH 00/14] new recipe: open-vm-tools recipe

2017-06-15 Thread Martin Kelly

On 06/15/2017 09:54 AM, Martin Jansa wrote:

It didn't make it to patchwork, because you've sent only the cover
letter. I've added it to master-next now.

Next time please send also individual patches. So that it gets more
visibility for other people to comment and also that I can use patchwork
to pull it in.

Regards,



Thanks, sorry about that. I was trying to use the send-pull-request 
script and getting errors; somehow it couldn't figure out the branch I 
was using. I tried to fix the script but eventually gave up and did a 
manual pull request attempting to mimic what the script would have spit out.



On Thu, Jun 15, 2017 at 6:36 PM, Martin Kelly <mke...@xevo.com
<mailto:mke...@xevo.com>> wrote:

On 06/09/2017 03:22 PM, Martin Kelly wrote:

Hi all,

This patch series adds a new recipe for Open VM Tools to
meta-oe. This
recipe is invaluable for using Openembedded with VMWare, as
without the
tools, performance is very slow.

More information about Open VM Tools can be found here:

https://github.com/vmware/open-vm-tools
<https://github.com/vmware/open-vm-tools>

Please note that, as mentioned in the first commit, this recipe is
modified from the recipe originally found in the Open-Switch
repository.
The first patch is directly from that repository, and the following
patches are modifications to it.

Original recipe:
https://github.com/open-switch/ops-build
<https://github.com/open-switch/ops-build>

yocto/openswitch/meta-foss-openswitch/recipes-extended/open-vm-tools/open-vm-tools_10.0.5.bb
<http://open-vm-tools_10.0.5.bb>

Commit 9008de2d8e100f3f868c66765742bca9fa98f3f9

Although the original recipe packaging was Apache-licensed, I
received
permission from the author (Diego Dompe) to relicense it under
the MIT
license for inclusion in meta-openembedded:

https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html
<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html>
https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html
<https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html>

--
The following changes since commit
41cf832cc9abd6f2293a6d612463a34a53a9a52a:

  Revert "rrdtool: add gettext-native dependency" (2017-06-05
11:13:09
+0200)

are available in the git repository at:

  https://github.com/XevoInc/meta-openembedded
<https://github.com/XevoInc/meta-openembedded>

for you to fetch changes up to
402d1b3917195beb2ab7cac5dc94aaed8992b5a1:

  open-vm-tools: style changes (2017-06-07 22:31:34 +)

--------
Martin Kelly (14):
  add open-vm-tools recipe
  open-vm-tools: add missing pkgconfig dependency
  open-vm-tools: add missing glib-2.0-native dependency
  open-vm-tools: clarify and expand licensing
  open-vm-tools: base_contains --> bb.utils.contains
  open-vm-tools: update version to 10.1.5
  open-vm-tools: don't use mspack
  open-vm-tools: don't use dnet-config
  open-vm-tools: add #include to fix build break
  open-vm-tools: add missing X11 dependencies
  open-vm-tools: remove kernel module logic
  open-vm-tools: line up configure options
  open-vm-tools: support FUSE
  open-vm-tools: style changes

 .../recipes-support/open-vm-tools/files/tools.conf |  2 +
 .../open-vm-tools/files/vmtoolsd.service   | 11 +++
 .../open-vm-tools/0001-Fix-kernel-detection.patch  | 35 +
 .../0002-configure.ac-don-t-use-dnet-config.patch  | 41 ++
 .../0003-add-include-sys-sysmacros.h.patch | 33 
 .../open-vm-tools/open-vm-tools_10.1.5.bb
<http://open-vm-tools_10.1.5.bb>  | 90
++
 6 files changed, 212 insertions(+)
 create mode 100644
meta-oe/recipes-support/open-vm-tools/files/tools.conf
 create mode 100644
meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service
 create mode 100644

meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch

 create mode 100644

meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch

 create mode 100644

meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-add-include-sys-sysmacros.h.patch

 create mode 100644
meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
&l

[oe] [meta-oe][PATCH 00/14] new recipe: open-vm-tools recipe

2017-06-09 Thread Martin Kelly

Hi all,

This patch series adds a new recipe for Open VM Tools to meta-oe. This 
recipe is invaluable for using Openembedded with VMWare, as without the 
tools, performance is very slow.


More information about Open VM Tools can be found here:

https://github.com/vmware/open-vm-tools

Please note that, as mentioned in the first commit, this recipe is 
modified from the recipe originally found in the Open-Switch repository. 
The first patch is directly from that repository, and the following 
patches are modifications to it.


Original recipe:
https://github.com/open-switch/ops-build
yocto/openswitch/meta-foss-openswitch/recipes-extended/open-vm-tools/open-vm-tools_10.0.5.bb
Commit 9008de2d8e100f3f868c66765742bca9fa98f3f9

Although the original recipe packaging was Apache-licensed, I received 
permission from the author (Diego Dompe) to relicense it under the MIT 
license for inclusion in meta-openembedded:


https://lists.openswitch.net/pipermail/ops-dev/2017-April/014715.html
https://lists.openswitch.net/pipermail/ops-dev/2017-April/014716.html

--
The following changes since commit 41cf832cc9abd6f2293a6d612463a34a53a9a52a:

  Revert "rrdtool: add gettext-native dependency" (2017-06-05 11:13:09 
+0200)


are available in the git repository at:

  https://github.com/XevoInc/meta-openembedded

for you to fetch changes up to 402d1b3917195beb2ab7cac5dc94aaed8992b5a1:

  open-vm-tools: style changes (2017-06-07 22:31:34 +)

--------
Martin Kelly (14):
  add open-vm-tools recipe
  open-vm-tools: add missing pkgconfig dependency
  open-vm-tools: add missing glib-2.0-native dependency
  open-vm-tools: clarify and expand licensing
  open-vm-tools: base_contains --> bb.utils.contains
  open-vm-tools: update version to 10.1.5
  open-vm-tools: don't use mspack
  open-vm-tools: don't use dnet-config
  open-vm-tools: add #include to fix build break
  open-vm-tools: add missing X11 dependencies
  open-vm-tools: remove kernel module logic
  open-vm-tools: line up configure options
  open-vm-tools: support FUSE
  open-vm-tools: style changes

 .../recipes-support/open-vm-tools/files/tools.conf |  2 +
 .../open-vm-tools/files/vmtoolsd.service   | 11 +++
 .../open-vm-tools/0001-Fix-kernel-detection.patch  | 35 +
 .../0002-configure.ac-don-t-use-dnet-config.patch  | 41 ++
 .../0003-add-include-sys-sysmacros.h.patch | 33 
 .../open-vm-tools/open-vm-tools_10.1.5.bb  | 90 
++

 6 files changed, 212 insertions(+)
 create mode 100644 meta-oe/recipes-support/open-vm-tools/files/tools.conf
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/files/vmtoolsd.service
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-kernel-detection.patch
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools/0003-add-include-sys-sysmacros.h.patch
 create mode 100644 
meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb

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


Re: [oe] [meta-oe][PATCH] gtest: add -fPIC

2017-03-28 Thread Martin Kelly

On 03/28/2017 02:32 PM, Andre McCurdy wrote:


Right. So the question is if security flags are enabled (and therefore
-fpie is passed into the gtest build via CFLAGS) then why do you see
an issue?



Looking at this more, I see that I hit the issue in dlt-daemon because 
it was trying to compile a shared version of gtest, resulting in this error:


command:
[snip]-g++  -fPIC [snip] -shared -o libgtest.so [snip]

out:
[snip]/ld: CMakeFiles/gtest.dir/src/gtest-all.cc.o: relocation 
R_X86_64_PC32 against symbol 
`_ZTVN7testing8internal17TestEventRepeaterE' can not be used when making 
a shared object; recompile with -fPIC


However, looking at the gtest version in meta-oe, I see only static 
libraries, as you say. Thus unless we start building shared versions of 
gtest, it looks like this patch is applicable to dlt-daemon but not 
gtest, so we can drop it. Thanks!

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


Re: [oe] [meta-oe][PATCH] gtest: add -fPIC

2017-03-28 Thread Martin Kelly

On 03/28/2017 01:47 PM, Khem Raj wrote:



On 3/28/17 1:37 PM, Andre McCurdy wrote:

On Tue, Mar 28, 2017 at 12:33 PM, Martin Kelly <mar...@xevo.com> wrote:

From: Martin Kelly <mke...@xevo.com>

I tried turning on the Yocto security flags and hit a compilation
error due to gtest not compiling. Adding -fPIC fixes the issue.


Since gtest only creates static libraries, compiling everything with
-fPIC might not be the correct solution.


it still is going to be linked with a PIE binary then it should be PIC



Yes, I should probably clarify that gtest itself compiles just fine, but 
the failure occurs when you try to link against it. As an example from 
the AGL project, dlt-daemon fails to link with security flags turned on, 
with an error message indicating that -fPIC should be added.


More context here:
https://gerrit.automotivelinux.org/gerrit/#/c/8935/
--
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe][PATCH] gtest: add -fPIC

2017-03-28 Thread Martin Kelly

On 03/28/2017 02:05 PM, Andre McCurdy wrote:

On Tue, Mar 28, 2017 at 1:55 PM, Martin Kelly <mke...@xevo.com> wrote:

On 03/28/2017 01:47 PM, Khem Raj wrote:

On 3/28/17 1:37 PM, Andre McCurdy wrote:

On Tue, Mar 28, 2017 at 12:33 PM, Martin Kelly <mar...@xevo.com> wrote:


From: Martin Kelly <mke...@xevo.com>

I tried turning on the Yocto security flags and hit a compilation
error due to gtest not compiling. Adding -fPIC fixes the issue.



Since gtest only creates static libraries, compiling everything with
-fPIC might not be the correct solution.


it still is going to be linked with a PIE binary then it should be PIC


Wouldn't compiling all gtest objects with -fpie work in that case too?



I am no expert in this, but from the gcc manpage, it looks like -fPIE 
will work only when linking with executables, while -fPIC will work in 
either case. Thus I suppose it depends on whether we want to support 
linking gtest against a library.

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


[oe] [meta-oe][PATCH] gtest: add -fPIC

2017-03-28 Thread Martin Kelly
From: Martin Kelly <mke...@xevo.com>

I tried turning on the Yocto security flags and hit a compilation
error due to gtest not compiling. Adding -fPIC fixes the issue.

Signed-off-by: Martin Kelly <mke...@xevo.com>
---
 meta-oe/recipes-test/gtest/gtest_1.8.0.bb | 9 +
 1 file changed, 9 insertions(+)

diff --git a/meta-oe/recipes-test/gtest/gtest_1.8.0.bb 
b/meta-oe/recipes-test/gtest/gtest_1.8.0.bb
index 483dc1f..9ba4ee4 100644
--- a/meta-oe/recipes-test/gtest/gtest_1.8.0.bb
+++ b/meta-oe/recipes-test/gtest/gtest_1.8.0.bb
@@ -19,6 +19,15 @@ S = "${WORKDIR}/googletest-release-${PV}"
 
 inherit cmake
 
+# -fPIC is needed to prevent relocation errors when we compile with Yocto
+# security flags. See this issue for more details:
+#
+# https://github.com/google/googletest/issues/854
+#
+# If that issue is fixed, we can probably remove the manual -fPIC flags here.
+OECMAKE_C_FLAGS += " -fPIC"
+OECMAKE_CXX_FLAGS += " -fPIC"
+
 ALLOW_EMPTY_${PN} = "1"
 ALLOW_EMPTY_${PN}-dbg = "1"
 
-- 
2.1.4

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


Re: [oe] [meta-clang] llvm-config cross-compile improvements

2017-03-20 Thread Martin Kelly

On 03/20/2017 10:37 AM, Khem Raj wrote:

On Sat, Mar 18, 2017 at 8:29 PM, Martin Kelly <mke...@xevo.com> wrote:

Hi,

This patch series fixes a number of issues I hit when trying to use the
meta-clang llvm-config to cross-compile a project that uses CMake, calling
into llvm-config, to determine compile flags. With the series applied, the
cross compile successfully builds and runs. Please let me know if you have
any concerns or if there is something I missed, and I will fix it up.

The following changes since commit c9c74d269ba79abbc20919de96f1eb2b8a81edec:

  clang/compiler-rt: Fix nativesdk builds break compiler-rt dep for clang
(2017-03-16 22:54:02 -0700)

are available in the git repository at:

  https://github.com/surround-io/meta-clang

for you to fetch changes up to 7d294bc2548ade23b7d25761d73769e712617c51:




can you send a simple gh pull request please ?



Done; sorry, from the meta-clang readme, I thought it was asking for 
pull requests to go over openembedded-devel, but I'm happy with Github too.

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


[oe] [meta-clang] llvm-config cross-compile improvements

2017-03-19 Thread Martin Kelly

Hi,

This patch series fixes a number of issues I hit when trying to use the 
meta-clang llvm-config to cross-compile a project that uses CMake, 
calling into llvm-config, to determine compile flags. With the series 
applied, the cross compile successfully builds and runs. Please let me 
know if you have any concerns or if there is something I missed, and I 
will fix it up.


The following changes since commit c9c74d269ba79abbc20919de96f1eb2b8a81edec:

  clang/compiler-rt: Fix nativesdk builds break compiler-rt dep for 
clang (2017-03-16 22:54:02 -0700)


are available in the git repository at:

  https://github.com/surround-io/meta-clang

for you to fetch changes up to 7d294bc2548ade23b7d25761d73769e712617c51:

  clang: build for only target and host (2017-03-18 18:01:50 -0700)


Martin Kelly (5):
  clang: correct spacing issue
  clang: remove commented-out code
  clang: fix the llvm-common wrapper
  clang: build libLLVM.so
  clang: build for only target and host

 recipes-devtools/clang/clang.inc 
 |  5 -


recipes-devtools/clang/clang/0004-llvm-allow-env-override-of-exe-path.patch 
| 36 ++
 recipes-devtools/clang/clang_git.bb 
 | 52 ++
 recipes-devtools/clang/llvm-common/llvm-config 
 | 41 +++

 4 files changed, 96 insertions(+), 38 deletions(-)
 create mode 100644 
recipes-devtools/clang/clang/0004-llvm-allow-env-override-of-exe-path.patch

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