[v2][oe-core][PATCH 1/1] systemd: fix CVE-2020-13776

2020-06-11 Thread Joe Slater
Backport from systemd.git.

Signed-off-by: Joe Slater 
---
 .../systemd/systemd/CVE-2020-13776.patch   | 96 ++
 meta/recipes-core/systemd/systemd_245.6.bb |  1 +
 2 files changed, 97 insertions(+)
 create mode 100644 meta/recipes-core/systemd/systemd/CVE-2020-13776.patch

diff --git a/meta/recipes-core/systemd/systemd/CVE-2020-13776.patch 
b/meta/recipes-core/systemd/systemd/CVE-2020-13776.patch
new file mode 100644
index 000..7b5e3e7
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/CVE-2020-13776.patch
@@ -0,0 +1,96 @@
+From 156a5fd297b61bce31630d7a52c15614bf784843 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= 
+Date: Sun, 31 May 2020 18:21:09 +0200
+Subject: [PATCH 1/1] basic/user-util: always use base 10 for user/group
+ numbers
+
+We would parse numbers with base prefixes as user identifiers. For example,
+"0x2b3bfa0" would be interpreted as UID==45334432 and "01750" would be
+interpreted as UID==1000. This parsing was used also in cases where either a
+user/group name or number may be specified. This means that names like
+0x2b3bfa0 would be ambiguous: they are a valid user name according to our
+documented relaxed rules, but they would also be parsed as numeric uids.
+
+This behaviour is definitely not expected by users, since tools generally only
+accept decimal numbers (e.g. id, getent passwd), while other tools only accept
+user names and thus will interpret such strings as user names without even
+attempting to convert them to numbers (su, ssh). So let's follow suit and only
+accept numbers in decimal notation. Effectively this means that we will reject
+such strings as a username/uid/groupname/gid where strict mode is used, and try
+to look up a user/group with such a name in relaxed mode.
+
+Since the function changed is fairly low-level and fairly widely used, this
+affects multiple tools: loginctl show-user/enable-linger/disable-linger foo',
+the third argument in sysusers.d, fourth and fifth arguments in tmpfiles.d,
+etc.
+
+Fixes #15985.
+---
+ src/basic/user-util.c |  2 +-
+ src/test/test-user-util.c | 10 ++
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+--- end of commit 156a5fd297b61bce31630d7a52c15614bf784843 ---
+
+
+Add definition of safe_atou32_full() from commit 
b934ac3d6e7dcad114776ef30ee9098693e7ab7e
+
+CVE: CVE-2020-13776
+
+Upstream-Status: Backport [https://github.com/systemd/systemd.git]
+
+Signed-off-by: Joe Slater 
+
+
+
+--- git.orig/src/basic/user-util.c
 git/src/basic/user-util.c
+@@ -49,7 +49,7 @@ int parse_uid(const char *s, uid_t *ret)
+ assert(s);
+ 
+ assert_cc(sizeof(uid_t) == sizeof(uint32_t));
+-r = safe_atou32(s, );
++r = safe_atou32_full(s, 10, );
+ if (r < 0)
+ return r;
+ 
+--- git.orig/src/test/test-user-util.c
 git/src/test/test-user-util.c
+@@ -48,9 +48,19 @@ static void test_parse_uid(void) {
+ 
+ r = parse_uid("65535", );
+ assert_se(r == -ENXIO);
++assert_se(uid == 100);
++
++r = parse_uid("0x1234", );
++assert_se(r == -EINVAL);
++assert_se(uid == 100);
++
++r = parse_uid("01234", );
++assert_se(r == 0);
++assert_se(uid == 1234);
+ 
+ r = parse_uid("asdsdas", );
+ assert_se(r == -EINVAL);
++assert_se(uid == 1234);
+ }
+ 
+ static void test_uid_ptr(void) {
+--- git.orig/src/basic/parse-util.h
 git/src/basic/parse-util.h
+@@ -45,9 +45,13 @@ static inline int safe_atoux16(const cha
+ 
+ int safe_atoi16(const char *s, int16_t *ret);
+ 
+-static inline int safe_atou32(const char *s, uint32_t *ret_u) {
++static inline int safe_atou32_full(const char *s, unsigned base, uint32_t 
*ret_u) {
+ assert_cc(sizeof(uint32_t) == sizeof(unsigned));
+-return safe_atou(s, (unsigned*) ret_u);
++return safe_atou_full(s, base, (unsigned*) ret_u);
++}
++
++static inline int safe_atou32(const char *s, uint32_t *ret_u) {
++return safe_atou32_full(s, 0, (unsigned*) ret_u);
+ }
+ 
+ static inline int safe_atoi32(const char *s, int32_t *ret_i) {
diff --git a/meta/recipes-core/systemd/systemd_245.6.bb 
b/meta/recipes-core/systemd/systemd_245.6.bb
index ece4220..b6681b2 100644
--- a/meta/recipes-core/systemd/systemd_245.6.bb
+++ b/meta/recipes-core/systemd/systemd_245.6.bb
@@ -20,6 +20,7 @@ SRC_URI += "file://touchscreen.rules \
file://99-default.preset \

file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \
file://0003-implment-systemd-sysv-install-for-OE.patch \
+   file://CVE-2020-13776.patch \
"
 
 # patches needed by musl
-- 
2.7.4

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

View/Reply Online (#139429): 
https://lists.openembedded.org/g/openembedded-core/message/139429
Mute This Topic: https://lists.openembedded.org/mt/74827943/21656
Group Owner: 

[OE-core] [PATCH] meson: backport library ordering fix

2020-06-11 Thread Andrew Geissler
meson had a bug where they started looking for static boost libraries
first vs. the default behavior of looking at shared libraries first.
This caused issues because some projects assume the shared libraries
first which automatically add in other shared library dependencies.
Static libraries do not have the default behavior so projects that use
boost start failing to compile with undefined references to other boost
libraries.

Signed-off-by: Andrew Geissler 
---
 meta/recipes-devtools/meson/meson.inc |  1 +
 ...sort-shared-before-static-fixes-7171.patch | 35 +++
 2 files changed, 36 insertions(+)
 create mode 100644 
meta/recipes-devtools/meson/meson/0001-boost-Always-sort-shared-before-static-fixes-7171.patch

diff --git a/meta/recipes-devtools/meson/meson.inc 
b/meta/recipes-devtools/meson/meson.inc
index 12bc08648a..a0b54f57db 100644
--- a/meta/recipes-devtools/meson/meson.inc
+++ b/meta/recipes-devtools/meson/meson.inc
@@ -15,6 +15,7 @@ SRC_URI = 
"https://github.com/mesonbuild/meson/releases/download/${PV}/meson-${P
file://cross-prop-default.patch \

file://0001-modules-python.py-do-not-substitute-python-s-install.patch \

file://0001-gnome.py-prefix-g-i-paths-with-PKG_CONFIG_SYSROOT_DI.patch \
+   file://0001-boost-Always-sort-shared-before-static-fixes-7171.patch 
\
"
 SRC_URI[sha256sum] = 
"a7716eeae8f8dff002e4147642589ab6496ff839e4376a5aed761f83c1fa0455"
 
diff --git 
a/meta/recipes-devtools/meson/meson/0001-boost-Always-sort-shared-before-static-fixes-7171.patch
 
b/meta/recipes-devtools/meson/meson/0001-boost-Always-sort-shared-before-static-fixes-7171.patch
new file mode 100644
index 00..217218180e
--- /dev/null
+++ 
b/meta/recipes-devtools/meson/meson/0001-boost-Always-sort-shared-before-static-fixes-7171.patch
@@ -0,0 +1,35 @@
+From 5862ad6965c60caa861dfdcd29e499c34c4d00da Mon Sep 17 00:00:00 2001
+From: Daniel Mensinger 
+Date: Thu, 21 May 2020 13:35:27 +0200
+Subject: [PATCH] boost: Always sort shared before static (fixes #7171)
+
+Upstream-Status: Backport 
[https://github.com/mesonbuild/meson/commit/5862ad6965c60caa861dfdcd29e499c34c4d00da]
+
+Signed-off-by: Andrew Geissler 
+---
+ mesonbuild/dependencies/boost.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/mesonbuild/dependencies/boost.py 
b/mesonbuild/dependencies/boost.py
+index 6e85c534..38497041 100644
+--- a/mesonbuild/dependencies/boost.py
 b/mesonbuild/dependencies/boost.py
+@@ -189,13 +189,13 @@ class BoostLibraryFile():
+ def __lt__(self, other: T.Any) -> bool:
+ if isinstance(other, BoostLibraryFile):
+ return (
+-self.mod_name, self.version_lib, self.arch, self.static,
++self.mod_name, self.static, self.version_lib, self.arch,
+ not self.mt, not self.runtime_static,
+ not self.debug, self.runtime_debug, self.python_debug,
+ self.stlport, self.deprecated_iostreams,
+ self.name,
+ ) < (
+-other.mod_name, other.version_lib, other.arch, other.static,
++other.mod_name, other.static, other.version_lib, other.arch,
+ not other.mt, not other.runtime_static,
+ not other.debug, other.runtime_debug, other.python_debug,
+ other.stlport, other.deprecated_iostreams,
+--
+2.26.2
+
-- 
2.24.3 (Apple Git-128)

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

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


Re: [OE-core] Changing kernel to the Mainline kernel ,linux-stable instead of linux-raspberrypi

2020-06-11 Thread Paul Barker
On Thu, 11 Jun 2020 at 20:16, Pankaj Vinadrao Joshi
 wrote:
>
>
> Thanks for response..You have provided the link ,But i want to build 
> specifically for 5.4.3 only ,where i should change in the existing file so 
> that i will be able to build the image for same since i am very new to yocto 
> can you help me out ??

Why do you want to use an old patch release in the 5.4 series? You
should be using the latest patch release in a stable series so that
you've got all the bug and security fixes.

Thanks,

-- 
Paul Barker
Konsulko Group
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


Re: [OE-core] Changing kernel to the Mainline kernel ,linux-stable instead of linux-raspberrypi

2020-06-11 Thread Pankaj Vinadrao Joshi
Thanks for response..You have provided the link ,But i want to build 
specifically for 5.4.3 only ,where i should change in the existing file so that 
i will be able to build the image for same since i am very new to yocto can you 
help me out ??
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[OE-core] ✗ patchtest: failure for systemd: fix CVE-2020-13776

2020-06-11 Thread Patchwork
== Series Details ==

Series: systemd: fix CVE-2020-13776
Revision: 1
URL   : https://patchwork.openembedded.org/series/24594/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch[1/1] systemd: fix CVE-2020-13776
 Issue Missing or incorrectly formatted CVE tag in included patch 
file [test_cve_tag_format] 
  Suggested fixCorrect or include the CVE tag on cve patch with format: 
"CVE: CVE--"



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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

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


[oe-core][PATCH 1/1] systemd: fix CVE-2020-13776

2020-06-11 Thread Joe Slater
Backport from systemd.git.

CVE: CVE-2020-13776

Signed-off-by: Joe Slater 
---
 .../systemd/systemd/CVE-2020-13776.patch   | 94 ++
 meta/recipes-core/systemd/systemd_245.6.bb |  1 +
 2 files changed, 95 insertions(+)
 create mode 100644 meta/recipes-core/systemd/systemd/CVE-2020-13776.patch

diff --git a/meta/recipes-core/systemd/systemd/CVE-2020-13776.patch 
b/meta/recipes-core/systemd/systemd/CVE-2020-13776.patch
new file mode 100644
index 000..f4fde26
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/CVE-2020-13776.patch
@@ -0,0 +1,94 @@
+From 156a5fd297b61bce31630d7a52c15614bf784843 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= 
+Date: Sun, 31 May 2020 18:21:09 +0200
+Subject: [PATCH 1/1] basic/user-util: always use base 10 for user/group
+ numbers
+
+We would parse numbers with base prefixes as user identifiers. For example,
+"0x2b3bfa0" would be interpreted as UID==45334432 and "01750" would be
+interpreted as UID==1000. This parsing was used also in cases where either a
+user/group name or number may be specified. This means that names like
+0x2b3bfa0 would be ambiguous: they are a valid user name according to our
+documented relaxed rules, but they would also be parsed as numeric uids.
+
+This behaviour is definitely not expected by users, since tools generally only
+accept decimal numbers (e.g. id, getent passwd), while other tools only accept
+user names and thus will interpret such strings as user names without even
+attempting to convert them to numbers (su, ssh). So let's follow suit and only
+accept numbers in decimal notation. Effectively this means that we will reject
+such strings as a username/uid/groupname/gid where strict mode is used, and try
+to look up a user/group with such a name in relaxed mode.
+
+Since the function changed is fairly low-level and fairly widely used, this
+affects multiple tools: loginctl show-user/enable-linger/disable-linger foo',
+the third argument in sysusers.d, fourth and fifth arguments in tmpfiles.d,
+etc.
+
+Fixes #15985.
+---
+ src/basic/user-util.c |  2 +-
+ src/test/test-user-util.c | 10 ++
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+--- end of commit 156a5fd297b61bce31630d7a52c15614bf784843 ---
+
+
+Add definition of safe_atou32_full() from commit 
b934ac3d6e7dcad114776ef30ee9098693e7ab7e
+
+Upstream-Status: Backport [https://github.com/systemd/systemd.git]
+
+Signed-off-by: Joe Slater 
+
+
+
+--- git.orig/src/basic/user-util.c
 git/src/basic/user-util.c
+@@ -49,7 +49,7 @@ int parse_uid(const char *s, uid_t *ret)
+ assert(s);
+ 
+ assert_cc(sizeof(uid_t) == sizeof(uint32_t));
+-r = safe_atou32(s, );
++r = safe_atou32_full(s, 10, );
+ if (r < 0)
+ return r;
+ 
+--- git.orig/src/test/test-user-util.c
 git/src/test/test-user-util.c
+@@ -48,9 +48,19 @@ static void test_parse_uid(void) {
+ 
+ r = parse_uid("65535", );
+ assert_se(r == -ENXIO);
++assert_se(uid == 100);
++
++r = parse_uid("0x1234", );
++assert_se(r == -EINVAL);
++assert_se(uid == 100);
++
++r = parse_uid("01234", );
++assert_se(r == 0);
++assert_se(uid == 1234);
+ 
+ r = parse_uid("asdsdas", );
+ assert_se(r == -EINVAL);
++assert_se(uid == 1234);
+ }
+ 
+ static void test_uid_ptr(void) {
+--- git.orig/src/basic/parse-util.h
 git/src/basic/parse-util.h
+@@ -45,9 +45,13 @@ static inline int safe_atoux16(const cha
+ 
+ int safe_atoi16(const char *s, int16_t *ret);
+ 
+-static inline int safe_atou32(const char *s, uint32_t *ret_u) {
++static inline int safe_atou32_full(const char *s, unsigned base, uint32_t 
*ret_u) {
+ assert_cc(sizeof(uint32_t) == sizeof(unsigned));
+-return safe_atou(s, (unsigned*) ret_u);
++return safe_atou_full(s, base, (unsigned*) ret_u);
++}
++
++static inline int safe_atou32(const char *s, uint32_t *ret_u) {
++return safe_atou32_full(s, 0, (unsigned*) ret_u);
+ }
+ 
+ static inline int safe_atoi32(const char *s, int32_t *ret_i) {
diff --git a/meta/recipes-core/systemd/systemd_245.6.bb 
b/meta/recipes-core/systemd/systemd_245.6.bb
index ece4220..b6681b2 100644
--- a/meta/recipes-core/systemd/systemd_245.6.bb
+++ b/meta/recipes-core/systemd/systemd_245.6.bb
@@ -20,6 +20,7 @@ SRC_URI += "file://touchscreen.rules \
file://99-default.preset \

file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \
file://0003-implment-systemd-sysv-install-for-OE.patch \
+   file://CVE-2020-13776.patch \
"
 
 # patches needed by musl
-- 
2.7.4

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

View/Reply Online (#139424): 
https://lists.openembedded.org/g/openembedded-core/message/139424
Mute This Topic: https://lists.openembedded.org/mt/74824755/21656
Group Owner: 

Re: [OE-core] Changing kernel to the Mainline kernel ,linux-stable instead of linux-raspberrypi

2020-06-11 Thread Paul Barker
On Thu, 11 Jun 2020 at 19:12, Pankaj Vinadrao Joshi
 wrote:
>
> Hi,
> i have built the image for rpi4 using openembedded-core and meta-openembedded 
> but i found that by default its taking the kernel which is linux-raspberrypi 
> which is 4.19.x or 5.4.y but i want to change the kernel to the vanilla,5.5.6 
> from the mainline.
> Can someone guide me on how i should proceed with ??

Hi Pankaj,

You can use the linux-stable recipes in meta-kernel
(https://gitlab.com/openembedded/community/meta-kernel) to achieve
this. We don't have recipes for 5.5.y as it's already EOL but there
are recipes for 5.6.y. I'll be adding the recipe for 5.7.y very soon.
There will likely be a little integration work to do to get this
working with a Raspberry Pi, I've already done that for raspberrypi3
(as you can see in the readme for the meta-kernel layer) but other
models are currently left as an exercise for the reader. Patches are
welcome :)

You could also look at the linux-yocto recipes in openembedded-core.

Thanks,

-- 
Paul Barker
Konsulko Group
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[OE-core] Changing kernel to the Mainline kernel ,linux-stable instead of linux-raspberrypi

2020-06-11 Thread Pankaj Vinadrao Joshi
Hi,
i have built the image for rpi4 using openembedded-core and meta-openembedded 
but i found that by default its taking the kernel which is linux-raspberrypi 
which is 4.19.x or 5.4.y but i want to change the kernel to the vanilla,5.5.6 
from the mainline.
Can someone guide me on how i should proceed with ??
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


Re: [OE-core] [PATCH] python3: add the rdepends for python3-misc

2020-06-11 Thread Alejandro Hernandez
Hey, I just tested this and statistics does depend on numbers, this 
patch should fix the issue.


python3-misc is treated as a special package where everything that 
doesnt belong to another package ends up there, hence its assumed users 
know what theyre doing and dependencies for these arent checked 
automatically.


Alejandro

Acked-by: Alejandro Hernandez 


On 6/11/20 2:38 AM, Alejandro Hernandez wrote:


Hey Mingli,

What are you adding to the image to reproduce this issue?


Cheers,

Alejandro

On 6/11/20 1:39 AM, Yu, Mingli wrote:

From: Mingli Yu

* Add python3-numbers to rdepends for python3-misc to fix below error:
  # python3
  [snip]
  >>> import statistics
  [snip]
  ModuleNotFoundError: No module named 'numbers'

* Don't use the hardcoded python3 moudules rdepends

Signed-off-by: Mingli Yu
---
  meta/recipes-devtools/python/python3_3.8.3.bb | 10 +-
  1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3_3.8.3.bb 
b/meta/recipes-devtools/python/python3_3.8.3.bb
index 09793dade2..997308dc75 100644
--- a/meta/recipes-devtools/python/python3_3.8.3.bb
+++ b/meta/recipes-devtools/python/python3_3.8.3.bb
@@ -331,7 +331,15 @@ INSANE_SKIP_${PN}-dev += "dev-elf"
  
  # catch all the rest (unsorted)

  PACKAGES += "${PN}-misc"
-RDEPENDS_${PN}-misc += "python3-core python3-email python3-codecs python3-pydoc 
python3-pickle python3-audio"
+RDEPENDS_${PN}-misc += "\
+  ${PN}-core \
+  ${PN}-email \
+  ${PN}-codecs \
+  ${PN}-pydoc \
+  ${PN}-pickle \
+  ${PN}-audio \
+  ${PN}-numbers \
+"
  RDEPENDS_${PN}-modules_append_class-target = " ${MLPREFIX}python3-misc"
  RDEPENDS_${PN}-modules_append_class-nativesdk = " ${MLPREFIX}python3-misc"
  FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} 
${libdir}/python${PYTHON_MAJMIN}/lib-dynload"




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

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


[OE-core][PATCH] u-boot: avoid blind merging all *.cfg

2020-06-11 Thread Jens Rehsack
This fixes u-boot-qoriq breakage of:

commit 4fde8c8f479f5acd24fb6e0d0b9b4dc94d6f560b
Author: Ming Liu 
Date:   Wed Jun 3 13:56:01 2020 +0200

u-boot: support merging .cfg files for UBOOT_CONFIG

U-boot recipe supports .cfg files in SRC_URI, but they would be merged
to .config during do_configure only when UBOOT_MACHINE is set, we
should also support merging .cfg files for UBOOT_CONFIG.

The intension of 4fde8c8 looks more than append delta-config snippets to
u-boot config and should probably be rewritten to express that much better
than implicitely assume all "*.cfg" are for merging into .config.

Signed-off-by: Jens Rehsack 
---
 meta/recipes-bsp/u-boot/u-boot.inc | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot.inc 
b/meta/recipes-bsp/u-boot/u-boot.inc
index f6a68da0f6..c91da02959 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -89,8 +89,10 @@ do_configure () {
 j=$(expr $j + 1);
 if [ $j -eq $i ]; then
 oe_runmake -C ${S} O=${B}/${config} ${config}
-merge_config.sh -m -O ${B}/${config} 
${B}/${config}/.config ${@" ".join(find_cfgs(d))}
-oe_runmake -C ${S} O=${B}/${config} oldconfig
+if [ test -n "${@' '.join(find_cfgs(d))}" ]; then
+merge_config.sh -m -O ${B}/${config} 
${B}/${config}/.config ${@" ".join(find_cfgs(d))}
+oe_runmake -C ${S} O=${B}/${config} oldconfig
+fi
 fi
 done
 unset j
@@ -123,7 +125,7 @@ do_compile () {
 echo ${UBOOT_LOCALVERSION} > ${S}/.scmversion
 fi
 
-if [ -n "${UBOOT_CONFIG}" ]
+if [ -n "${UBOOT_CONFIG}" -o -n "${UBOOT_DELTA_CONFIG}" ]
 then
 unset i j k
 for config in ${UBOOT_MACHINE}; do
-- 
2.17.1

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

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


[OE-core] [PATCH] Revert "bitbake.conf: Remove unused DEPLOY_DIR_TOOLS variable"

2020-06-11 Thread Richard Purdie
This reverts commit b1f15f651461d07a8cfbd3bdcfea0e89f195212d.

The variable is used by multiple other layers and users are requesting
it be added back.

Signed-off-by: Richard Purdie 
---
 meta/conf/bitbake.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 9336c244bc6..f7700f11911 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -410,6 +410,7 @@ DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
 DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
 DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
 DEPLOY_DIR_IMAGE ?= "${DEPLOY_DIR}/images/${MACHINE}"
+DEPLOY_DIR_TOOLS = "${DEPLOY_DIR}/tools"
 
 PKGDATA_DIR = "${TMPDIR}/pkgdata/${MACHINE}"
 
-- 
2.25.1

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

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


Re: [OE-core] [PATCH] python3: add the rdepends for python3-misc

2020-06-11 Thread Alejandro Hernandez

Hey Mingli,

What are you adding to the image to reproduce this issue?


Cheers,

Alejandro

On 6/11/20 1:39 AM, Yu, Mingli wrote:

From: Mingli Yu 

* Add python3-numbers to rdepends for python3-misc to fix below error:
  # python3
  [snip]
  >>> import statistics
  [snip]
  ModuleNotFoundError: No module named 'numbers'

* Don't use the hardcoded python3 moudules rdepends

Signed-off-by: Mingli Yu 
---
  meta/recipes-devtools/python/python3_3.8.3.bb | 10 +-
  1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3_3.8.3.bb 
b/meta/recipes-devtools/python/python3_3.8.3.bb
index 09793dade2..997308dc75 100644
--- a/meta/recipes-devtools/python/python3_3.8.3.bb
+++ b/meta/recipes-devtools/python/python3_3.8.3.bb
@@ -331,7 +331,15 @@ INSANE_SKIP_${PN}-dev += "dev-elf"
  
  # catch all the rest (unsorted)

  PACKAGES += "${PN}-misc"
-RDEPENDS_${PN}-misc += "python3-core python3-email python3-codecs python3-pydoc 
python3-pickle python3-audio"
+RDEPENDS_${PN}-misc += "\
+  ${PN}-core \
+  ${PN}-email \
+  ${PN}-codecs \
+  ${PN}-pydoc \
+  ${PN}-pickle \
+  ${PN}-audio \
+  ${PN}-numbers \
+"
  RDEPENDS_${PN}-modules_append_class-target = " ${MLPREFIX}python3-misc"
  RDEPENDS_${PN}-modules_append_class-nativesdk = " ${MLPREFIX}python3-misc"
  FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} 
${libdir}/python${PYTHON_MAJMIN}/lib-dynload"


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

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


Re: [OE-core] [PATCH] virglrenderer: correct REQUIRED_DISTRO_FEATURES

2020-06-11 Thread Yu, Mingli



On 6/11/20 4:14 PM, Alexander Kanavin wrote:
On Thu, 11 Jun 2020 at 09:22, Yu, Mingli > wrote:


 > This is not an error, but expected behavior. virglrenderer-native
only
 > works when opengl is in DISTRO_FEATURES and should be skipped
otherwise.

Does it mean the DISTRO_FEATURES setting also affects the native build?
If so, please ignore this patch.


By default it does not, but for specific items listed in bitbake.conf it 
does:


# Normally target distro features will not be applied to native builds:
# Native distro features on this list will use the target feature value
DISTRO_FEATURES_FILTER_NATIVE ?= "api-documentation opengl"
DISTRO_FEATURES_FILTER_NATIVESDK ?= "api-documentation opengl"


Understood, many thanks your explanation!

Thanks,



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

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


Re: [OE-core] [PATCH] virglrenderer: correct REQUIRED_DISTRO_FEATURES

2020-06-11 Thread Alexander Kanavin
On Thu, 11 Jun 2020 at 09:22, Yu, Mingli  wrote:

> > This is not an error, but expected behavior. virglrenderer-native only
> > works when opengl is in DISTRO_FEATURES and should be skipped otherwise.
>
> Does it mean the DISTRO_FEATURES setting also affects the native build?
> If so, please ignore this patch.
>

By default it does not, but for specific items listed in bitbake.conf it
does:

# Normally target distro features will not be applied to native builds:
# Native distro features on this list will use the target feature value
DISTRO_FEATURES_FILTER_NATIVE ?= "api-documentation opengl"
DISTRO_FEATURES_FILTER_NATIVESDK ?= "api-documentation opengl"

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

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


[OE-core] [PATCH] python3: add the rdepends for python3-misc

2020-06-11 Thread Yu, Mingli
From: Mingli Yu 

* Add python3-numbers to rdepends for python3-misc to fix below error:
 # python3
 [snip]
 >>> import statistics
 [snip]
 ModuleNotFoundError: No module named 'numbers'

* Don't use the hardcoded python3 moudules rdepends

Signed-off-by: Mingli Yu 
---
 meta/recipes-devtools/python/python3_3.8.3.bb | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3_3.8.3.bb 
b/meta/recipes-devtools/python/python3_3.8.3.bb
index 09793dade2..997308dc75 100644
--- a/meta/recipes-devtools/python/python3_3.8.3.bb
+++ b/meta/recipes-devtools/python/python3_3.8.3.bb
@@ -331,7 +331,15 @@ INSANE_SKIP_${PN}-dev += "dev-elf"
 
 # catch all the rest (unsorted)
 PACKAGES += "${PN}-misc"
-RDEPENDS_${PN}-misc += "python3-core python3-email python3-codecs 
python3-pydoc python3-pickle python3-audio"
+RDEPENDS_${PN}-misc += "\
+  ${PN}-core \
+  ${PN}-email \
+  ${PN}-codecs \
+  ${PN}-pydoc \
+  ${PN}-pickle \
+  ${PN}-audio \
+  ${PN}-numbers \
+"
 RDEPENDS_${PN}-modules_append_class-target = " ${MLPREFIX}python3-misc"
 RDEPENDS_${PN}-modules_append_class-nativesdk = " ${MLPREFIX}python3-misc"
 FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} 
${libdir}/python${PYTHON_MAJMIN}/lib-dynload"
-- 
2.24.1

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

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


Re: [OE-core] [PATCH] virglrenderer: correct REQUIRED_DISTRO_FEATURES

2020-06-11 Thread Yu, Mingli

Hi Alex,

On 6/10/20 4:25 PM, Alexander Kanavin wrote:
On Wed, 10 Jun 2020 at 04:10, Yu, Mingli > wrote:


Hi Alex and Denys,

On 6/10/20 5:50 AM, Denys Dmytriyenko wrote:
 > +1
 >
 > The commit message should explain "why" and not "what", as "what"
can be
 > easily understood from the code itself.

In fact, the DISTRO_FEATURES setting shouldn't affect native build.

Initially this patch is used to fix below error when opengl not defined
in DISTRO_FEATURES in my build environment.
$ bitbake virglrenderer-native
virglrenderer-native was skipped: missing required distro feature
'opengl' (not in DISTRO_FEATURES)


This is not an error, but expected behavior. virglrenderer-native only 
works when opengl is in DISTRO_FEATURES and should be skipped otherwise.


Does it mean the DISTRO_FEATURES setting also affects the native build? 
If so, please ignore this patch.


Thanks,



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

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


[OE-core] [PATCH] python3-dbusmock: add the missing rdepends

2020-06-11 Thread Yu, Mingli
From: Mingli Yu 

Add the missing rdepends to fix below error:
 # python3
 [snip]
 >>> import dbusmock
 [snip]
 ModuleNotFoundError: No module named 'unittest'

Signed-off-by: Mingli Yu 
---
 meta/recipes-devtools/python/python3-dbusmock_0.19.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python/python3-dbusmock_0.19.bb 
b/meta/recipes-devtools/python/python3-dbusmock_0.19.bb
index 5389e48973..d297dbc1df 100644
--- a/meta/recipes-devtools/python/python3-dbusmock_0.19.bb
+++ b/meta/recipes-devtools/python/python3-dbusmock_0.19.bb
@@ -12,5 +12,6 @@ inherit pypi setuptools3
 RDEPENDS_${PN} += "\
 ${PYTHON_PN}-dbus \
 ${PYTHON_PN}-pygobject \
+${PYTHON_PN}-unittest \
 ${PYTHON_PN}-xml \
 "
-- 
2.24.1

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

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