[OE-core] [meta-oe][PATCH v3] heaptrack: add bitbake recipe

2020-11-20 Thread Sinan Kaya
Add this useful tool to the devtools list.

Reviewed-by: Otavio Salvador 
Signed-off-by: Sinan Kaya 
---
 .../heaptrack/heaptrack_git.bb | 18 ++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb

diff --git a/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb 
b/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb
new file mode 100644
index 00..efee3bbec4
--- /dev/null
+++ b/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb
@@ -0,0 +1,18 @@
+DESCRIPTION = "Heaptrack"
+HOMEPAGE = "https://phabricator.kde.org/source/heaptrack/;
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+
+DEPENDS = "zlib boost libunwind elfutils"
+
+SRC_URI = "git://github.com/KDE/heaptrack.git;protocol=https"
+
+SRCREV = "f8d9e665196614b606eaab9c6fc81d65a88a2af1"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+EXTRA_OECMAKE += " -DHEAPTRACK_BUILD_GUI=OFF"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144896): 
https://lists.openembedded.org/g/openembedded-core/message/144896
Mute This Topic: https://lists.openembedded.org/mt/78405447/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] [meta-oe][PATCH v2] heaptrack: add bitbake recipe

2020-11-20 Thread Otavio Salvador
Em sáb., 21 de nov. de 2020 às 00:11, Sinan Kaya  escreveu:
>
> Add this useful tool to the devtools list.
>
> Signed-off-by: Sinan Kaya 
> ---
>  .../heaptrack/heaptrack_git.bb| 19 +++
>  1 file changed, 19 insertions(+)
>  create mode 100644 meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb
>
> diff --git a/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb 
> b/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb
> new file mode 100644
> index 00..143274d816
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb
> @@ -0,0 +1,19 @@
> +DESCRIPTION = "Heaptrack"
> +HOMEPAGE = "https://phabricator.kde.org/source/heaptrack/;
> +LICENSE = "LGPL-2.1"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
> +PR = "r0"

PR as r0 is the default, please drop.

After doing it, please add:

Reviewed-by: Otavio Salvador 


-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144895): 
https://lists.openembedded.org/g/openembedded-core/message/144895
Mute This Topic: https://lists.openembedded.org/mt/78405210/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [meta-oe][PATCH v2] heaptrack: add bitbake recipe

2020-11-20 Thread Sinan Kaya
Add this useful tool to the devtools list.

Signed-off-by: Sinan Kaya 
---
 .../heaptrack/heaptrack_git.bb| 19 +++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb

diff --git a/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb 
b/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb
new file mode 100644
index 00..143274d816
--- /dev/null
+++ b/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "Heaptrack"
+HOMEPAGE = "https://phabricator.kde.org/source/heaptrack/;
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+PR = "r0"
+
+DEPENDS = "zlib boost libunwind elfutils"
+
+SRC_URI = "git://github.com/KDE/heaptrack.git;protocol=https"
+
+SRCREV = "f8d9e665196614b606eaab9c6fc81d65a88a2af1"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+EXTRA_OECMAKE += " -DHEAPTRACK_BUILD_GUI=OFF"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144894): 
https://lists.openembedded.org/g/openembedded-core/message/144894
Mute This Topic: https://lists.openembedded.org/mt/78405210/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] [meta-oe][PATCH] heaptrack: add bitbake recipe

2020-11-20 Thread Otavio Salvador
Em sáb., 21 de nov. de 2020 às 00:03, Sinan Kaya  escreveu:
>
> Add this useful tool to the devtools list.
>
> Signed-off-by: Sinan Kaya 

Why split the recipe; please unify it on the _git.bb file as it is a
single version and there is no gain on this indirection.

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144893): 
https://lists.openembedded.org/g/openembedded-core/message/144893
Mute This Topic: https://lists.openembedded.org/mt/78405076/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [meta-oe][PATCH] heaptrack: add bitbake recipe

2020-11-20 Thread Sinan Kaya
Add this useful tool to the devtools list.

Signed-off-by: Sinan Kaya 
---
 .../recipes-devtools/heaptrack/heaptrack.inc| 17 +
 .../recipes-devtools/heaptrack/heaptrack_git.bb |  2 ++
 2 files changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/heaptrack/heaptrack.inc
 create mode 100644 meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb

diff --git a/meta-oe/recipes-devtools/heaptrack/heaptrack.inc 
b/meta-oe/recipes-devtools/heaptrack/heaptrack.inc
new file mode 100644
index 00..e45632a50c
--- /dev/null
+++ b/meta-oe/recipes-devtools/heaptrack/heaptrack.inc
@@ -0,0 +1,17 @@
+DESCRIPTION = "Heaptrack"
+HOMEPAGE = "https://phabricator.kde.org/source/heaptrack/;
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+PR = "r0"
+
+DEPENDS = "zlib boost libunwind elfutils"
+
+SRC_URI = "git://github.com/KDE/heaptrack.git;protocol=https"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+EXTRA_OECMAKE += " -DHEAPTRACK_BUILD_GUI=OFF"
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb 
b/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb
new file mode 100644
index 00..8fdd590cad
--- /dev/null
+++ b/meta-oe/recipes-devtools/heaptrack/heaptrack_git.bb
@@ -0,0 +1,2 @@
+require ${PN}.inc
+SRCREV = "f8d9e665196614b606eaab9c6fc81d65a88a2af1"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144892): 
https://lists.openembedded.org/g/openembedded-core/message/144892
Mute This Topic: https://lists.openembedded.org/mt/78405076/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [meta-oe][PATCH] collectd: make all plugins optional

2020-11-20 Thread Sinan Kaya
Plugins pull in unnecesary library dependencies to the target.
Make sure that user selects only the required plugins rather
than all plugins.

Signed-off-by: Sinan Kaya 
---
 .../collectd/collectd_5.12.0.bb   | 138 ++
 1 file changed, 138 insertions(+)

diff --git a/meta-oe/recipes-extended/collectd/collectd_5.12.0.bb 
b/meta-oe/recipes-extended/collectd/collectd_5.12.0.bb
index f84a91adf1..05f633a397 100644
--- a/meta-oe/recipes-extended/collectd/collectd_5.12.0.bb
+++ b/meta-oe/recipes-extended/collectd/collectd_5.12.0.bb
@@ -51,6 +51,144 @@ PACKAGECONFIG[libatasmart] = 
"--with-libatasmart,--without-libatasmart,libatasma
 PACKAGECONFIG[ldap] = "--enable-openldap --with-libldap,--disable-openldap 
--without-libldap, openldap"
 PACKAGECONFIG[rrdtool] = "--enable-rrdtool,--disable-rrdtool,rrdtool"
 PACKAGECONFIG[rrdcached] = "--enable-rrdcached,--disable-rrdcached,rrdcached"
+PACKAGECONFIG[aggregation] = "--enable-aggregation,--disable-aggregation"
+PACKAGECONFIG[apache] = "--enable-apache,--disable-apache"
+PACKAGECONFIG[apcups] = "--enable-apcups,--disable-apcups"
+PACKAGECONFIG[apple_sensors] = "--enable-apple_sensors,--disable-apple_sensors"
+PACKAGECONFIG[aquaero] = "--enable-aquaero,--disable-aquaero"
+PACKAGECONFIG[ascent] = "--enable-ascent,--disable-ascent"
+PACKAGECONFIG[barometer] = "--enable-barometer,--disable-barometer"
+PACKAGECONFIG[battery] = "--enable-battery,--disable-battery"
+PACKAGECONFIG[bind] = "--enable-bind,--disable-bind"
+PACKAGECONFIG[ceph] = "--enable-ceph,--disable-ceph"
+PACKAGECONFIG[cgroups] = "--enable-cgroups,--disable-cgroups"
+PACKAGECONFIG[chrony] = "--enable-chrony,--disable-chrony"
+PACKAGECONFIG[conntrack] = "--enable-conntrack,--disable-conntrack"
+PACKAGECONFIG[contextswitch] = "--enable-contextswitch,--disable-contextswitch"
+PACKAGECONFIG[cpu] = "--enable-cpu,--disable-cpu"
+PACKAGECONFIG[cpufreq] = "--enable-cpufreq,--disable-cpufreq"
+PACKAGECONFIG[cpusleep] = "--enable-cpusleep,--disable-cpusleep"
+PACKAGECONFIG[csv] = "--enable-csv,--disable-csv"
+PACKAGECONFIG[curl] = "--enable-curl,--disable-curl"
+PACKAGECONFIG[curl_json] = "--enable-curl_json,--disable-curl_json"
+PACKAGECONFIG[curl_xml] = "--enable-curl_xml,--disable-curl_xml"
+PACKAGECONFIG[df] = "--enable-df,--disable-df"
+PACKAGECONFIG[disk] = "--enable-disk,--disable-disk"
+PACKAGECONFIG[dns] = "--enable-dns,--disable-dns"
+PACKAGECONFIG[dpdkevents] = "--enable-dpdkevents,--disable-dpdkevents"
+PACKAGECONFIG[dpdkstat] = "--enable-dpdkstat,--disable-dpdkstat"
+PACKAGECONFIG[drbd] = "--enable-drbd,--disable-drbd"
+PACKAGECONFIG[email] = "--enable-email,--disable-email"
+PACKAGECONFIG[entropy] = "--enable-entropy,--disable-entropy"
+PACKAGECONFIG[ethstat] = "--enable-ethstat,--disable-ethstat"
+PACKAGECONFIG[exec] = "--enable-exec,--disable-exec"
+PACKAGECONFIG[fhcount] = "--enable-fhcount,--disable-fhcount"
+PACKAGECONFIG[filecount] = "--enable-filecount,--disable-filecount"
+PACKAGECONFIG[fscache] = "--enable-fscache,--disable-fscache"
+PACKAGECONFIG[gmond] = "--enable-gmond,--disable-gmond"
+PACKAGECONFIG[gps] = "--enable-gps,--disable-gps"
+PACKAGECONFIG[grpc] = "--enable-grpc,--disable-grpc"
+PACKAGECONFIG[hddtemp] = "--enable-hddtemp,--disable-hddtemp"
+PACKAGECONFIG[hugepages] = "--enable-hugepages,--disable-hugepages"
+PACKAGECONFIG[intel_pmu] = "--enable-intel_pmu,--disable-intel_pmu"
+PACKAGECONFIG[intel_rdt] = "--enable-intel_rdt,--disable-intel_rdt"
+PACKAGECONFIG[interface] = "--enable-interface,--disable-interface"
+PACKAGECONFIG[ipc] = "--enable-ipc,--disable-ipc"
+PACKAGECONFIG[ipmi] = "--enable-ipmi,--disable-ipmi"
+PACKAGECONFIG[ipvs] = "--enable-ipvs,--disable-ipvs"
+PACKAGECONFIG[irq] = "--enable-irq,--disable-irq"
+PACKAGECONFIG[load] = "--enable-load,--disable-load"
+PACKAGECONFIG[log_logstash] = "--enable-log_logstash,--disable-log_logstash"
+PACKAGECONFIG[logfile] = "--enable-logfile,--disable-logfile"
+PACKAGECONFIG[lpar] = "--enable-lpar,--disable-lpar"
+PACKAGECONFIG[lua] = "--enable-lua,--disable-lua"
+PACKAGECONFIG[madwifi] = "--enable-madwifi,--disable-madwifi"
+PACKAGECONFIG[match_empty_counter] = 
"--enable-match_empty_counter,--disable-match_empty_counter"
+PACKAGECONFIG[match_hashed] = "--enable-match_hashed,--disable-match_hashed"
+PACKAGECONFIG[match_regex] = "--enable-match_regex,--disable-match_regex"
+PACKAGECONFIG[match_timediff] = 
"--enable-match_timediff,--disable-match_timediff"
+PACKAGECONFIG[match_value] = "--enable-match_value,--disable-match_value"
+PACKAGECONFIG[mbmon] = "--enable-mbmon,--disable-mbmon"
+PACKAGECONFIG[mcelog] = "--enable-mcelog,--disable-mcelog"
+PACKAGECONFIG[md] = "--enable-md,--disable-md"
+PACKAGECONFIG[memcachec] = "--enable-memcachec,--disable-memcachec"
+PACKAGECONFIG[memcached] = "--enable-memcached,--disable-memcached"
+PACKAGECONFIG[memory] = "--enable-memory,--disable-memory"
+PACKAGECONFIG[mic] = "--enable-mic,--disable-mic"
+PACKAGECONFIG[mqtt] = "--enable-mqtt,--disable-mqtt"

[OE-core] [meta-oe][PATCH v2] net-tools: split into binary packages

2020-11-20 Thread Sinan Kaya
Support per binary package to not bloat the system with unneeded
tools.

Signed-off-by: Sinan Kaya 
---
 .../net-tools/net-tools_1.60-26.bb| 25 +++
 1 file changed, 25 insertions(+)

diff --git a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb 
b/meta/recipes-extended/net-tools/net-tools_1.60-26.bb
index 8bd30fc6d9b..ace18b830f2 100644
--- a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb
+++ b/meta/recipes-extended/net-tools/net-tools_1.60-26.bb
@@ -129,4 +129,29 @@ python __anonymous() {
 }
 ALTERNATIVE_PRIORITY = "100"
 
+python __anonymous () {
+packages = []
+for prog in d.getVar('base_sbindir_progs').split():
+pkg = "net-tools-%s" % prog.replace("_", "-")
+packages.append(pkg)
+if not d.getVar("FILES_%s" % pkg):
+d.setVar("FILES_%s" % pkg, "${base_sbindir}/%s*" % prog)
+for prog in d.getVar('base_bindir_progs').split():
+pkg = "net-tools-%s" % prog.replace("_", "-")
+packages.append(pkg)
+if not d.getVar("FILES_%s" % pkg):
+d.setVar("FILES_%s" % pkg, "${base_bindir}/%s*" % prog)
+pkg = "net-tools-man"
+packages.append(pkg)
+if not d.getVar("FILES_%s" % pkg):
+d.setVar("FILES_%s" % pkg, "${mandir}/*")
+d.setVar("NETTOOLS_PACKAGES", " ".join(packages))
+}
+# "net-tools" is a metapackage which pulls in all net-tools binaries
+PACKAGES += "${NETTOOLS_PACKAGES}"
+PROVIDES += "${NETTOOLS_PACKAGES}"
+FILES_${PN} = ""
+ALLOW_EMPTY_${PN} = "1"
+RRECOMMENDS_${PN} += "${NETTOOLS_PACKAGES}"
+
 BBCLASSEXTEND = "native nativesdk"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144890): 
https://lists.openembedded.org/g/openembedded-core/message/144890
Mute This Topic: https://lists.openembedded.org/mt/78404359/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 5/5] qemu: fix CVE-2020-24352

2020-11-20 Thread Steve Sakoman
From: Lee Chee Yang 

Signed-off-by: Lee Chee Yang 
Signed-off-by: Steve Sakoman 
---
 meta/recipes-devtools/qemu/qemu.inc   |  1 +
 .../qemu/qemu/CVE-2020-24352.patch| 52 +++
 2 files changed, 53 insertions(+)
 create mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2020-24352.patch

diff --git a/meta/recipes-devtools/qemu/qemu.inc 
b/meta/recipes-devtools/qemu/qemu.inc
index b6941403ea..067179fdeb 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -50,6 +50,7 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
   file://CVE-2020-16092.patch \
   
file://0001-target-mips-Increase-number-of-TLB-entries-on-the-34.patch \
   file://CVE-2019-20175.patch \
+  file://CVE-2020-24352.patch \
   "
 UPSTREAM_CHECK_REGEX = "qemu-(?P\d+(\.\d+)+)\.tar"
 
diff --git a/meta/recipes-devtools/qemu/qemu/CVE-2020-24352.patch 
b/meta/recipes-devtools/qemu/qemu/CVE-2020-24352.patch
new file mode 100644
index 00..861ff6c3b0
--- /dev/null
+++ b/meta/recipes-devtools/qemu/qemu/CVE-2020-24352.patch
@@ -0,0 +1,52 @@
+From ca1f9cbfdce4d63b10d57de80fef89a89d92a540 Mon Sep 17 00:00:00 2001
+From: Prasad J Pandit 
+Date: Wed, 21 Oct 2020 16:08:18 +0530
+Subject: [PATCH 1/1] ati: check x y display parameter values
+
+The source and destination x,y display parameters in ati_2d_blt()
+may run off the vga limits if either of s->regs.[src|dst]_[xy] is
+zero. Check the parameter values to avoid potential crash.
+
+Reported-by: Gaoning Pan 
+Signed-off-by: Prasad J Pandit 
+Message-id: 20201021103818.1704030-1-ppan...@redhat.com
+Signed-off-by: Gerd Hoffmann 
+
+Upstream-Status: Backport [ 
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=ca1f9cbfdce4d63b10d57de80fef89a89d92a540;hp=2ddafce7f797082ad216657c830afd4546f16e37
 ]
+CVE: CVE-2020-24352
+Signed-off-by: Chee Yang Lee 
+---
+ hw/display/ati_2d.c | 10 ++
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/hw/display/ati_2d.c b/hw/display/ati_2d.c
+index 23a8ae0..4dc10ea 100644
+--- a/hw/display/ati_2d.c
 b/hw/display/ati_2d.c
+@@ -75,8 +75,9 @@ void ati_2d_blt(ATIVGAState *s)
+ dst_stride *= bpp;
+ }
+ uint8_t *end = s->vga.vram_ptr + s->vga.vram_size;
+-if (dst_bits >= end || dst_bits + dst_x + (dst_y + s->regs.dst_height) *
+-dst_stride >= end) {
++if (dst_x > 0x3fff || dst_y > 0x3fff || dst_bits >= end
++|| dst_bits + dst_x
++ + (dst_y + s->regs.dst_height) * dst_stride >= end) {
+ qemu_log_mask(LOG_UNIMP, "blt outside vram not implemented\n");
+ return;
+ }
+@@ -107,8 +108,9 @@ void ati_2d_blt(ATIVGAState *s)
+ src_bits += s->regs.crtc_offset & 0x07ff;
+ src_stride *= bpp;
+ }
+-if (src_bits >= end || src_bits + src_x +
+-(src_y + s->regs.dst_height) * src_stride >= end) {
++if (src_x > 0x3fff || src_y > 0x3fff || src_bits >= end
++|| src_bits + src_x
++ + (src_y + s->regs.dst_height) * src_stride >= end) {
+ qemu_log_mask(LOG_UNIMP, "blt outside vram not implemented\n");
+ return;
+ }
+-- 
+1.8.3.1
+
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144889): 
https://lists.openembedded.org/g/openembedded-core/message/144889
Mute This Topic: https://lists.openembedded.org/mt/78402780/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 3/5] python3: whitelist CVE-2020-15523

2020-11-20 Thread Steve Sakoman
From: Lee Chee Yang 

This CVE is issue on _Py_CheckPython3 uses uninitialized dllpath when embedder 
sets module path with Py_SetPath.
Since it is .dll issue (on windows only), hence whitelist it.

https://bugs.python.org/issue29778

Signed-off-by: Lee Chee Yang 
Signed-off-by: Steve Sakoman 
---
 meta/recipes-devtools/python/python3_3.8.2.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/python/python3_3.8.2.bb 
b/meta/recipes-devtools/python/python3_3.8.2.bb
index 758ed87546..5f7901dbf2 100644
--- a/meta/recipes-devtools/python/python3_3.8.2.bb
+++ b/meta/recipes-devtools/python/python3_3.8.2.bb
@@ -54,6 +54,9 @@ CVE_PRODUCT = "python"
 # This is not exploitable when glibc has CVE-2016-10739 fixed.
 CVE_CHECK_WHITELIST += "CVE-2019-18348"
 
+# This is windows only issue.
+CVE_CHECK_WHITELIST += "CVE-2020-15523"
+
 PYTHON_MAJMIN = "3.8"
 
 S = "${WORKDIR}/Python-${PV}"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144887): 
https://lists.openembedded.org/g/openembedded-core/message/144887
Mute This Topic: https://lists.openembedded.org/mt/78402778/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 4/5] python3: fix CVE-2020-27619

2020-11-20 Thread Steve Sakoman
From: Lee Chee Yang 

Signed-off-by: Lee Chee Yang 
Signed-off-by: Steve Sakoman 
---
 .../python/python3/CVE-2020-27619.patch   | 70 +++
 meta/recipes-devtools/python/python3_3.8.2.bb |  1 +
 2 files changed, 71 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3/CVE-2020-27619.patch

diff --git a/meta/recipes-devtools/python/python3/CVE-2020-27619.patch 
b/meta/recipes-devtools/python/python3/CVE-2020-27619.patch
new file mode 100644
index 00..bafa1cb999
--- /dev/null
+++ b/meta/recipes-devtools/python/python3/CVE-2020-27619.patch
@@ -0,0 +1,70 @@
+From 6c6c256df3636ff6f6136820afaefa5a10a3ac33 Mon Sep 17 00:00:00 2001
+From: "Miss Skeleton (bot)" <31488909+miss-isling...@users.noreply.github.com>
+Date: Tue, 6 Oct 2020 05:38:54 -0700
+Subject: [PATCH] bpo-41944: No longer call eval() on content received via HTTP
+ in the CJK codec tests (GH-22566) (GH-22577)
+
+(cherry picked from commit 2ef5caa58febc8968e670e39e3d37cf8eef3cab8)
+
+Co-authored-by: Serhiy Storchaka 
+
+Co-authored-by: Serhiy Storchaka 
+
+Upstream-Status: Backport 
[https://github.com/python/cpython/commit/6c6c256df3636ff6f6136820afaefa5a10a3ac33]
+CVE: CVE-2020-27619
+Signed-off-by: Lee Chee Yang 
+---
+ Lib/test/multibytecodec_support.py| 22 +++
+ .../2020-10-05-17-43-46.bpo-41944.rf1dYb.rst  |  1 +
+ 2 files changed, 9 insertions(+), 14 deletions(-)
+ create mode 100644 
Misc/NEWS.d/next/Tests/2020-10-05-17-43-46.bpo-41944.rf1dYb.rst
+
+diff --git a/Lib/test/multibytecodec_support.py 
b/Lib/test/multibytecodec_support.py
+index cca8af67d6d1d..f76c0153f5ecf 100644
+--- a/Lib/test/multibytecodec_support.py
 b/Lib/test/multibytecodec_support.py
+@@ -305,29 +305,23 @@ def test_mapping_file(self):
+ self._test_mapping_file_plain()
+ 
+ def _test_mapping_file_plain(self):
+-unichrs = lambda s: ''.join(map(chr, map(eval, s.split('+'
++def unichrs(s):
++return ''.join(chr(int(x, 16)) for x in s.split('+'))
++
+ urt_wa = {}
+ 
+ with self.open_mapping_file() as f:
+ for line in f:
+ if not line:
+ break
+-data = line.split('#')[0].strip().split()
++data = line.split('#')[0].split()
+ if len(data) != 2:
+ continue
+ 
+-csetval = eval(data[0])
+-if csetval <= 0x7F:
+-csetch = bytes([csetval & 0xff])
+-elif csetval >= 0x100:
+-csetch = bytes([(csetval >> 24), ((csetval >> 16) & 0xff),
+-((csetval >> 8) & 0xff), (csetval & 
0xff)])
+-elif csetval >= 0x1:
+-csetch = bytes([(csetval >> 16), ((csetval >> 8) & 0xff),
+-(csetval & 0xff)])
+-elif csetval >= 0x100:
+-csetch = bytes([(csetval >> 8), (csetval & 0xff)])
+-else:
++if data[0][:2] != '0x':
++self.fail(f"Invalid line: {line!r}")
++csetch = bytes.fromhex(data[0][2:])
++if len(csetch) == 1 and 0x80 <= csetch[0]:
+ continue
+ 
+ unich = unichrs(data[1])
+diff --git a/Misc/NEWS.d/next/Tests/2020-10-05-17-43-46.bpo-41944.rf1dYb.rst 
b/Misc/NEWS.d/next/Tests/2020-10-05-17-43-46.bpo-41944.rf1dYb.rst
+new file mode 100644
+index 0..4f9782f1c85af
+--- /dev/null
 b/Misc/NEWS.d/next/Tests/2020-10-05-17-43-46.bpo-41944.rf1dYb.rst
+@@ -0,0 +1 @@
++Tests for CJK codecs no longer call ``eval()`` on content received via HTTP.
diff --git a/meta/recipes-devtools/python/python3_3.8.2.bb 
b/meta/recipes-devtools/python/python3_3.8.2.bb
index 5f7901dbf2..1d0b4cdb77 100644
--- a/meta/recipes-devtools/python/python3_3.8.2.bb
+++ b/meta/recipes-devtools/python/python3_3.8.2.bb
@@ -35,6 +35,7 @@ SRC_URI = 
"http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \

file://0001-bpo-39503-CVE-2020-8492-Fix-AbstractBasicAuthHandler.patch \
file://CVE-2020-14422.patch \
file://CVE-2020-26116.patch \
+   file://CVE-2020-27619.patch \
"
 
 SRC_URI_append_class-native = " \
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144888): 
https://lists.openembedded.org/g/openembedded-core/message/144888
Mute This Topic: https://lists.openembedded.org/mt/78402779/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 2/5] bison: update to 3.5.4 for CVE-2020-14150

2020-11-20 Thread Steve Sakoman
From: Lee Chee Yang 

Release notes:
https://lists.gnu.org/archive/html/info-gnu/2020-04/msg0.html

Signed-off-by: Lee Chee Yang 
Signed-off-by: Steve Sakoman 
---
 meta/recipes-devtools/bison/{bison_3.5.3.bb => bison_3.5.4.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/bison/{bison_3.5.3.bb => bison_3.5.4.bb} (94%)

diff --git a/meta/recipes-devtools/bison/bison_3.5.3.bb 
b/meta/recipes-devtools/bison/bison_3.5.4.bb
similarity index 94%
rename from meta/recipes-devtools/bison/bison_3.5.3.bb
rename to meta/recipes-devtools/bison/bison_3.5.4.bb
index e6c169e9db..9830721038 100644
--- a/meta/recipes-devtools/bison/bison_3.5.3.bb
+++ b/meta/recipes-devtools/bison/bison_3.5.4.bb
@@ -14,7 +14,7 @@ SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.xz \
file://add-with-bisonlocaledir.patch \
file://0001-bison-fix-the-parallel-build.patch \
 "
-SRC_URI[sha256sum] = 
"2bf85b5f88a5f2fa8069aed2a2dfc3a9f8d15a97e59c713e3906e5fdd982a7c4"
+SRC_URI[sha256sum] = 
"4c17e99881978fa32c05933c5262457fa5b2b611668454f8dc2a695cd6b3720c"
 
 # No point in hardcoding path to m4, just use PATH
 EXTRA_OECONF += "M4=m4"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144886): 
https://lists.openembedded.org/g/openembedded-core/message/144886
Mute This Topic: https://lists.openembedded.org/mt/78402777/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 1/5] libproxy: fix CVE-2020-26154

2020-11-20 Thread Steve Sakoman
From: Lee Chee Yang 

Signed-off-by: Lee Chee Yang 
Signed-off-by: Steve Sakoman 
---
 .../libproxy/libproxy/CVE-2020-26154.patch| 98 +++
 .../libproxy/libproxy_0.4.15.bb   |  1 +
 2 files changed, 99 insertions(+)
 create mode 100644 meta/recipes-support/libproxy/libproxy/CVE-2020-26154.patch

diff --git a/meta/recipes-support/libproxy/libproxy/CVE-2020-26154.patch 
b/meta/recipes-support/libproxy/libproxy/CVE-2020-26154.patch
new file mode 100644
index 00..0ccb99da81
--- /dev/null
+++ b/meta/recipes-support/libproxy/libproxy/CVE-2020-26154.patch
@@ -0,0 +1,98 @@
+From 4411b523545b22022b4be7d0cac25aa170ae1d3e Mon Sep 17 00:00:00 2001
+From: Fei Li 
+Date: Fri, 17 Jul 2020 02:18:37 +0800
+Subject: [PATCH] Fix buffer overflow when PAC is enabled
+
+The bug was found on Windows 10 (MINGW64) when PAC is enabled. It turned
+out to be the large PAC file (more than 102400 bytes) returned by a
+local proxy program with no content-length present.
+
+Upstream-Status: Backport 
[https://github.com/libproxy/libproxy/commit/6d342b50366a048d3d543952e2be271b5742c5f8]
+CVE: CVE-2020-26154
+Signed-off-by: Chee Yang Lee 
+
+---
+ libproxy/url.cpp | 44 +++-
+ 1 file changed, 31 insertions(+), 13 deletions(-)
+
+diff --git a/libproxy/url.cpp b/libproxy/url.cpp
+index ee776b2..8684086 100644
+--- a/libproxy/url.cpp
 b/libproxy/url.cpp
+@@ -54,7 +54,7 @@ using namespace std;
+ #define PAC_MIME_TYPE_FB "text/plain"
+ 
+ // This is the maximum pac size (to avoid memory attacks)
+-#define PAC_MAX_SIZE 102400
++#define PAC_MAX_SIZE 0x80
+ // This is the default block size to use when receiving via HTTP
+ #define PAC_HTTP_BLOCK_SIZE 512
+ 
+@@ -478,15 +478,13 @@ char* url::get_pac() {
+   }
+ 
+   // Get content
+-  unsigned int recvd = 0;
+-  buffer = new char[PAC_MAX_SIZE];
+-  memset(buffer, 0, PAC_MAX_SIZE);
++  std::vector dynamic_buffer;
+   do {
+   unsigned int chunk_length;
+ 
+   if (chunked) {
+   // Discard the empty line if we received a 
previous chunk
+-  if (recvd > 0) recvline(sock);
++  if (!dynamic_buffer.empty()) recvline(sock);
+ 
+   // Get the chunk-length line as an integer
+   if (sscanf(recvline(sock).c_str(), "%x", 
_length) != 1 || chunk_length == 0) break;
+@@ -498,21 +496,41 @@ char* url::get_pac() {
+ 
+   if (content_length >= PAC_MAX_SIZE) break;
+ 
+-  while (content_length == 0 || recvd != content_length) {
+-  int r = recv(sock, buffer + recvd,
+-   content_length == 0 ? 
PAC_HTTP_BLOCK_SIZE
+-   : 
content_length - recvd, 0);
++  while (content_length == 0 || dynamic_buffer.size() != 
content_length) {
++  // Calculate length to recv
++  unsigned int length_to_read = 
PAC_HTTP_BLOCK_SIZE;
++  if (content_length > 0)
++  length_to_read = content_length - 
dynamic_buffer.size();
++
++  // Prepare buffer
++  dynamic_buffer.resize(dynamic_buffer.size() + 
length_to_read);
++
++  int r = recv(sock, dynamic_buffer.data() + 
dynamic_buffer.size() - length_to_read, length_to_read, 0);
++
++  // Shrink buffer to fit
++  if (r >= 0)
++  
dynamic_buffer.resize(dynamic_buffer.size() - length_to_read + r);
++
++  // PAC size too large, discard
++  if (dynamic_buffer.size() >= PAC_MAX_SIZE) {
++  chunked = false;
++  dynamic_buffer.clear();
++  break;
++  }
++
+   if (r <= 0) {
+   chunked = false;
+   break;
+   }
+-  recvd += r;
+   }
+   } while (chunked);
+ 
+-  if (content_length != 0 && string(buffer).size() != 
content_length) {
+-  delete[] buffer;
+-  buffer = NULL;
++  if (content_length == 0 || content_length == 
dynamic_buffer.size()) {
++  buffer = new char[dynamic_buffer.size() + 1];
++  if (!dynamic_buffer.empty()) {
++  memcpy(buffer, dynamic_buffer.data(), 

[OE-core][dunfell 0/5] Patch review

2020-11-20 Thread Steve Sakoman
Please review this next set of patches for dunfell and have comments back by
end of day Monday.

Passed a-full on autobuilder:

https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/1611

The following changes since commit 84e1a32096db9deb98d282a652beec95dbfe80f1:

  python3: add ldconfig rdepends for python3-ctypes (2020-11-17 07:34:27 -1000)

are available in the Git repository at:

  git://git.openembedded.org/openembedded-core-contrib stable/dunfell-nut
  
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=stable/dunfell-nut

Lee Chee Yang (5):
  libproxy: fix CVE-2020-26154
  bison: update to 3.5.4 for CVE-2020-14150
  python3: whitelist CVE-2020-15523
  python3: fix CVE-2020-27619
  qemu: fix CVE-2020-24352

 .../bison/{bison_3.5.3.bb => bison_3.5.4.bb}  |  2 +-
 .../python/python3/CVE-2020-27619.patch   | 70 +
 meta/recipes-devtools/python/python3_3.8.2.bb |  4 +
 meta/recipes-devtools/qemu/qemu.inc   |  1 +
 .../qemu/qemu/CVE-2020-24352.patch| 52 ++
 .../libproxy/libproxy/CVE-2020-26154.patch| 98 +++
 .../libproxy/libproxy_0.4.15.bb   |  1 +
 7 files changed, 227 insertions(+), 1 deletion(-)
 rename meta/recipes-devtools/bison/{bison_3.5.3.bb => bison_3.5.4.bb} (94%)
 create mode 100644 meta/recipes-devtools/python/python3/CVE-2020-27619.patch
 create mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2020-24352.patch
 create mode 100644 meta/recipes-support/libproxy/libproxy/CVE-2020-26154.patch

-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144884): 
https://lists.openembedded.org/g/openembedded-core/message/144884
Mute This Topic: https://lists.openembedded.org/mt/78402774/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 2/2] gstreamer1.0-plugins-base: Use bb.utils.filter to reduce code

2020-11-20 Thread Otavio Salvador
Good point. Please ignore this commit. My fault :-(

Em sex., 20 de nov. de 2020 às 18:21, Andre McCurdy
 escreveu:
>
> On Fri, Nov 20, 2020 at 9:36 AM Otavio Salvador
>  wrote:
> >
> > Signed-off-by: Otavio Salvador 
> > ---
> >
> >  .../gstreamer/gstreamer1.0-plugins-base_1.18.1.bb  | 7 +--
> >  1 file changed, 1 insertion(+), 6 deletions(-)
> >
> > diff --git 
> > a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb 
> > b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
> > index 8813b8faca..43d51552f1 100644
> > --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
> > +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
> > @@ -64,12 +64,7 @@ PACKAGECONFIG[wayland]  = ",,wayland-native wayland 
> > wayland-protocols libdrm
> >  PACKAGECONFIG[dispmanx] = ",,virtual/libomxil"
> >  PACKAGECONFIG[viv-fb]   = ",,virtual/libgles2 virtual/libg2d"
> >
> > -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', ' 
> > x11', '', d)}"
> > -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'gbm', ' 
> > gbm', '', d)}"
> > -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'wayland', ' 
> > wayland', '', d)}"
> > -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'dispmanx', 
> > ' dispmanx', '', d)}"
> > -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'egl', ' 
> > egl', '', d)}"
> > -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'viv-fb', ' 
> > viv-fb', '', d)}"
> > +OPENGL_WINSYS_append = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm 
> > wayland dispmanx egl viv-fb', d)}"
>
> This drops the first leading space so isn't exactly equivalent.
>
> >  EXTRA_OEMESON += " \
> >  -Ddoc=disabled \
> > --
> > 2.29.2
> >
> >
> > 
> >



-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144883): 
https://lists.openembedded.org/g/openembedded-core/message/144883
Mute This Topic: https://lists.openembedded.org/mt/78394639/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 2/2] gstreamer1.0-plugins-base: Use bb.utils.filter to reduce code

2020-11-20 Thread Andre McCurdy
On Fri, Nov 20, 2020 at 9:36 AM Otavio Salvador
 wrote:
>
> Signed-off-by: Otavio Salvador 
> ---
>
>  .../gstreamer/gstreamer1.0-plugins-base_1.18.1.bb  | 7 +--
>  1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git 
> a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb 
> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
> index 8813b8faca..43d51552f1 100644
> --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
> +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
> @@ -64,12 +64,7 @@ PACKAGECONFIG[wayland]  = ",,wayland-native wayland 
> wayland-protocols libdrm
>  PACKAGECONFIG[dispmanx] = ",,virtual/libomxil"
>  PACKAGECONFIG[viv-fb]   = ",,virtual/libgles2 virtual/libg2d"
>
> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', ' x11', 
> '', d)}"
> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'gbm', ' gbm', 
> '', d)}"
> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'wayland', ' 
> wayland', '', d)}"
> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'dispmanx', ' 
> dispmanx', '', d)}"
> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'egl', ' egl', 
> '', d)}"
> -OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'viv-fb', ' 
> viv-fb', '', d)}"
> +OPENGL_WINSYS_append = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland 
> dispmanx egl viv-fb', d)}"

This drops the first leading space so isn't exactly equivalent.

>  EXTRA_OEMESON += " \
>  -Ddoc=disabled \
> --
> 2.29.2
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144882): 
https://lists.openembedded.org/g/openembedded-core/message/144882
Mute This Topic: https://lists.openembedded.org/mt/78394639/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] valgrind: helgrind: Intercept libc functions

2020-11-20 Thread Stacy Gaikovaia
From: Stacy Gaikovaia 

PTH_FUNC definition needs to be modified in order to
intercept posix thread functions in both libc and libpthread.
In order to handle this in helgrind, weak alias the pthread functions in glibc.
Include a special case for musl.

See https://bugs.kde.org/show_bug.cgi?id=428909 for additional
discussion.

Upstream-Status: Submitted

Signed-off-by: Paul Floyd 
Signed-off-by: Stacy Gaikovaia 
---
 ...01-helgrind-Intercept-libc-functions.patch | 54 +++
 .../valgrind/valgrind_3.16.1.bb   |  1 +
 2 files changed, 55 insertions(+)
 create mode 100644 
meta/recipes-devtools/valgrind/valgrind/0001-helgrind-Intercept-libc-functions.patch

diff --git 
a/meta/recipes-devtools/valgrind/valgrind/0001-helgrind-Intercept-libc-functions.patch
 
b/meta/recipes-devtools/valgrind/valgrind/0001-helgrind-Intercept-libc-functions.patch
new file mode 100644
index 00..f66df3d2d2
--- /dev/null
+++ 
b/meta/recipes-devtools/valgrind/valgrind/0001-helgrind-Intercept-libc-functions.patch
@@ -0,0 +1,54 @@
+From cdec010444df5a4328e90d07a2024fdeefcc74b5 Mon Sep 17 00:00:00 2001
+From: Paul Floyd 
+Date: Wed, 18 Nov 2020 12:49:20 -0400
+Subject: [PATCH] helgrind: Intercept libc functions
+
+PTH_FUNC definition needs to be modified in order to
+intercept posix thread functions in both libc and
+libpthread. In order to handle this in helgrind, weak alias
+the pthread functions in glibc.
+
+Upstream-Status: Submitted
+
+Signed-off-by: Paul Floyd 
+Signed-off-by: Stacy Gaikovaia 
+---
+ helgrind/hg_intercepts.c | 12 
+ 1 file changed, 12 insertions(+)
+
+diff --git a/helgrind/hg_intercepts.c b/helgrind/hg_intercepts.c
+index a10c3a4a3..316140ca6 100644
+--- a/helgrind/hg_intercepts.c
 b/helgrind/hg_intercepts.c
+@@ -77,6 +77,11 @@
+ /*---  ---*/
+ /**/
+ 
++#define hg_expand(tok) #tok
++#define hg_str(tok) hg_expand(tok)
++# define hg_weak_alias(name, aliasname) \
++  extern __typeof (name) aliasname __attribute__ ((weak, alias(hg_str(name
++
+ #if defined(VGO_solaris)
+ /* On Solaris, libpthread is just a filter library on top of libc.
+  * Threading and synchronization functions in runtime linker are not
+@@ -91,9 +96,16 @@
+ #define CREQ_PTHREAD_T Word
+ #define SEM_ERROR ret
+ #else
++#ifdef MUSL_LIBC
++#define PTH_FUNC(ret_ty, f, args...) \
++   ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBPTHREAD_SONAME,f)(args); \
++   ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBPTHREAD_SONAME,f)(args)
++#else
+ #define PTH_FUNC(ret_ty, f, args...) \
+ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBPTHREAD_SONAME,f)(args); \
++   hg_weak_alias(I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBPTHREAD_SONAME,f), 
I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBC_SONAME,f)); \
+ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBPTHREAD_SONAME,f)(args)
++#endif
+ #define CREQ_PTHREAD_T pthread_t
+ #define SEM_ERROR errno
+ #endif /* VGO_solaris */
+-- 
+2.17.1
+
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.16.1.bb 
b/meta/recipes-devtools/valgrind/valgrind_3.16.1.bb
index bcba55f327..5db181ac14 100644
--- a/meta/recipes-devtools/valgrind/valgrind_3.16.1.bb
+++ b/meta/recipes-devtools/valgrind/valgrind_3.16.1.bb
@@ -42,6 +42,7 @@ SRC_URI = 
"https://sourceware.org/pub/valgrind/valgrind-${PV}.tar.bz2 \
file://0001-memcheck-tests-Fix-timerfd-syscall-test.patch \
file://0001-drd-Port-to-Fedora-33.patch \
file://0001-drd-musl-fix.patch \
+   file://0001-helgrind-Intercept-libc-functions.patch \
"
 SRC_URI[md5sum] = "d1b153f1ab17cf1f311705e7a83ef589"
 SRC_URI[sha256sum] = 
"c91f3a2f7b02db0f3bc99479861656154d241d2fdb265614ba918cc6720a33ca"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144881): 
https://lists.openembedded.org/g/openembedded-core/message/144881
Mute This Topic: https://lists.openembedded.org/mt/78371779/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 0/9] Pull request (cover letter only)

2020-11-20 Thread Steve Sakoman
The following changes since commit b4a92a20a683a74423fd5a833d5c016f63dba2b4:

  freetype: fix CVE-2020-15999, backport from 2.10.4 (2020-11-13 05:57:16 -1000)

are available in the Git repository at:

  git://git.openembedded.org/openembedded-core-contrib stable/dunfell-next
  
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=stable/dunfell-next

Alexander Kanavin (2):
  ptest-runner: fix upstream version check
  glib-2.0: correct build with latest meson

Anibal Limon (1):
  ptest-runner: Bump to 2.4.0

Joshua Watt (3):
  classes/reproducible: Move to library code
  lib/oe/reproducible: Fix error when no git HEAD
  lib/oe/reproducible.py: Fix git HEAD check

Khem Raj (1):
  ptest-runner: Backport patch to fix inappropriate ioctl error

Mark Jonas (1):
  libbsd: Remove BSD-4-Clause from main package

Mingli Yu (1):
  python3: add ldconfig rdepends for python3-ctypes

 meta/classes/reproducible_build.bbclass   |  90 +--
 meta/lib/oe/reproducible.py   | 104 ++
 .../glib-2.0/meson.cross.d/common-linux   |   2 +-
 meta/recipes-devtools/python/python3_3.8.2.bb |   1 +
 meta/recipes-support/libbsd/libbsd_0.10.0.bb  |   3 +-
 ...-runner_2.3.2.bb => ptest-runner_2.4.0.bb} |   5 +-
 6 files changed, 114 insertions(+), 91 deletions(-)
 create mode 100644 meta/lib/oe/reproducible.py
 rename meta/recipes-support/ptest-runner/{ptest-runner_2.3.2.bb => 
ptest-runner_2.4.0.bb} (87%)

-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144880): 
https://lists.openembedded.org/g/openembedded-core/message/144880
Mute This Topic: https://lists.openembedded.org/mt/78397398/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 v2] go: Update to 1.15.5

2020-11-20 Thread Khem Raj
On Fri, Nov 20, 2020 at 9:33 AM Richard Purdie
 wrote:
>
> On Fri, 2020-11-20 at 16:33 +, Richard Purdie via
> lists.openembedded.org wrote:
> > On Fri, 2020-11-20 at 00:15 -0800, Khem Raj wrote:
> > > Define CXX_FOR_TARGET and CC_FOR_TARGET for target go
> > > since we are cross building it, it helps in defining the compiler
> > > for cgo on target
> > >
> > > Disable CGO_LDFLAGS for go-runtime since it confuses the linker
> > >
> > > Fixes
> > > > Building std for target, linux/arm.
> > > > go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1
> > >
> > > Signed-off-by: Khem Raj 
> > > ---
> > > v2: Fix go-runtime build
> >
> > Various failures in world builds:
> >
> > musl x86:
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/2728
> > musl x86-64:
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/2731
> > no-x11:
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2729
>
> and selftests:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/1582
>
> Cheers,

thanks I can see some of it locally too. will deep dive there is
something quirky with CGO flags
>
> Richard
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144879): 
https://lists.openembedded.org/g/openembedded-core/message/144879
Mute This Topic: https://lists.openembedded.org/mt/78385121/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 v3 6/8] python3-pytest: Add recipe

2020-11-20 Thread Khem Raj
On Fri, Nov 20, 2020 at 9:35 AM Richard Purdie
 wrote:
>
> On Fri, 2020-11-20 at 09:29 -0800, Khem Raj wrote:
> > +RDEPENDS_${PN}_append_class-target = " \
> > +${PYTHON_PN}-attrs \
> > +${PYTHON_PN}-debugger \
> > +${PYTHON_PN}-doctest \
> > +${PYTHON_PN}-iniconfig \
> > +${PYTHON_PN}-json \
> > +${PYTHON_PN}-pluggy \
> > +${PYTHON_PN}-py \
> > +${PYTHON_PN}-setuptools \
> > +${PYTHON_PN}-six \
> > +${PYTHON_PN}-atomicwrites \
> > +${PYTHON_PN}-importlib-metadata \
> > +${PYTHON_PN}-pathlib2 \
> > +${PYTHON_PN}-wcwidth \
> > +${PYTHON_PN}-more-itertools \
> > +${PYTHON_PN}-packaging \
> > +"
>
> Do these exist in OE-Core? I think there are a lot of dependencies
> pytest pulls in? I don't think this precludes the move but I'm not sure
> the patchset is complete.
>

hmm not all. I wonder if it makes sense to move these recipes as well
to support pytest in core otherwise
I guess I will just move the numpy dependencies onto PN-ptest in numpy
recipe and live with that or packageconfig it out.

> Cheers,
>
> Richard
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144878): 
https://lists.openembedded.org/g/openembedded-core/message/144878
Mute This Topic: https://lists.openembedded.org/mt/78394489/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/2] gstreamer1.0-plugins-base: Add 'viv-fb' OpenGL Window System option

2020-11-20 Thread Otavio Salvador
This adds the 'viv-fb' PACKAGECONFIG option to allow Vivante GPU window
system to work.

Signed-off-by: Otavio Salvador 
---

 .../gstreamer/gstreamer1.0-plugins-base_1.18.1.bb   | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb 
b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
index 8e3ff21c90..8813b8faca 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
@@ -62,12 +62,14 @@ PACKAGECONFIG[egl]  = ",,virtual/egl"
 PACKAGECONFIG[gbm]  = ",,virtual/libgbm libgudev libdrm"
 PACKAGECONFIG[wayland]  = ",,wayland-native wayland wayland-protocols 
libdrm"
 PACKAGECONFIG[dispmanx] = ",,virtual/libomxil"
+PACKAGECONFIG[viv-fb]   = ",,virtual/libgles2 virtual/libg2d"
 
 OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', ' x11', 
'', d)}"
 OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'gbm', ' gbm', 
'', d)}"
 OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'wayland', ' 
wayland', '', d)}"
 OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'dispmanx', ' 
dispmanx', '', d)}"
 OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'egl', ' egl', 
'', d)}"
+OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'viv-fb', ' 
viv-fb', '', d)}"
 
 EXTRA_OEMESON += " \
 -Ddoc=disabled \
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144876): 
https://lists.openembedded.org/g/openembedded-core/message/144876
Mute This Topic: https://lists.openembedded.org/mt/78394637/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 2/2] gstreamer1.0-plugins-base: Use bb.utils.filter to reduce code

2020-11-20 Thread Otavio Salvador
Signed-off-by: Otavio Salvador 
---

 .../gstreamer/gstreamer1.0-plugins-base_1.18.1.bb  | 7 +--
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git 
a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb 
b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
index 8813b8faca..43d51552f1 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.1.bb
@@ -64,12 +64,7 @@ PACKAGECONFIG[wayland]  = ",,wayland-native wayland 
wayland-protocols libdrm
 PACKAGECONFIG[dispmanx] = ",,virtual/libomxil"
 PACKAGECONFIG[viv-fb]   = ",,virtual/libgles2 virtual/libg2d"
 
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', ' x11', 
'', d)}"
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'gbm', ' gbm', 
'', d)}"
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'wayland', ' 
wayland', '', d)}"
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'dispmanx', ' 
dispmanx', '', d)}"
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'egl', ' egl', 
'', d)}"
-OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'viv-fb', ' 
viv-fb', '', d)}"
+OPENGL_WINSYS_append = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland 
dispmanx egl viv-fb', d)}"
 
 EXTRA_OEMESON += " \
 -Ddoc=disabled \
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144877): 
https://lists.openembedded.org/g/openembedded-core/message/144877
Mute This Topic: https://lists.openembedded.org/mt/78394639/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 v3 6/8] python3-pytest: Add recipe

2020-11-20 Thread Richard Purdie
On Fri, 2020-11-20 at 09:29 -0800, Khem Raj wrote:
> +RDEPENDS_${PN}_append_class-target = " \
> +${PYTHON_PN}-attrs \
> +${PYTHON_PN}-debugger \
> +${PYTHON_PN}-doctest \
> +${PYTHON_PN}-iniconfig \
> +${PYTHON_PN}-json \
> +${PYTHON_PN}-pluggy \
> +${PYTHON_PN}-py \
> +${PYTHON_PN}-setuptools \
> +${PYTHON_PN}-six \
> +${PYTHON_PN}-atomicwrites \
> +${PYTHON_PN}-importlib-metadata \
> +${PYTHON_PN}-pathlib2 \
> +${PYTHON_PN}-wcwidth \
> +${PYTHON_PN}-more-itertools \
> +${PYTHON_PN}-packaging \
> +"

Do these exist in OE-Core? I think there are a lot of dependencies
pytest pulls in? I don't think this precludes the move but I'm not sure
the patchset is complete.

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144875): 
https://lists.openembedded.org/g/openembedded-core/message/144875
Mute This Topic: https://lists.openembedded.org/mt/78394489/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 v2] go: Update to 1.15.5

2020-11-20 Thread Richard Purdie
On Fri, 2020-11-20 at 16:33 +, Richard Purdie via
lists.openembedded.org wrote:
> On Fri, 2020-11-20 at 00:15 -0800, Khem Raj wrote:
> > Define CXX_FOR_TARGET and CC_FOR_TARGET for target go
> > since we are cross building it, it helps in defining the compiler
> > for cgo on target
> > 
> > Disable CGO_LDFLAGS for go-runtime since it confuses the linker
> > 
> > Fixes
> > > Building std for target, linux/arm.
> > > go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1
> > 
> > Signed-off-by: Khem Raj 
> > ---
> > v2: Fix go-runtime build
> 
> Various failures in world builds:
> 
> musl x86:
> https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/2728
> musl x86-64:
> https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/2731
> no-x11:
> https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2729

and selftests:

https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/1582

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144874): 
https://lists.openembedded.org/g/openembedded-core/message/144874
Mute This Topic: https://lists.openembedded.org/mt/78385121/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 v3 7/8] maintainers: Add myself for new pytest related recipes

2020-11-20 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta/conf/distro/include/maintainers.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 5349aa3971..def8098b06 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -591,6 +591,7 @@ RECIPE_MAINTAINER_pn-python3-pycryptodomex = "Joshua Watt 

 RECIPE_MAINTAINER_pn-python3-extras = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-git = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-gitdb = "Oleksandr Kravchuk 
"
+RECIPE_MAINTAINER_pn-python3-hypothesis = "Khem Raj "
 RECIPE_MAINTAINER_pn-python3-iniparse = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-jinja2 = "Richard Purdie 
"
 RECIPE_MAINTAINER_pn-python3-libarchive-c = "Joshua Watt 
"
@@ -606,11 +607,13 @@ RECIPE_MAINTAINER_pn-python3-pyelftools = "Joshua Watt 
"
 RECIPE_MAINTAINER_pn-python3-pygments = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-pygobject = "Zang Ruochen 
"
 RECIPE_MAINTAINER_pn-python3-pyparsing = "Oleksandr Kravchuk 
"
+RECIPE_MAINTAINER_pn-python3-pytest = "Khem Raj "
 RECIPE_MAINTAINER_pn-python3-scons = "Tim Orling 
"
 RECIPE_MAINTAINER_pn-python3-scons-native = "Tim Orling 
"
 RECIPE_MAINTAINER_pn-python3-setuptools = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-six = "Zang Ruochen "
 RECIPE_MAINTAINER_pn-python3-smmap = "Oleksandr Kravchuk 
"
+RECIPE_MAINTAINER_pn-python3-sortedcontainers = "Khem Raj "
 RECIPE_MAINTAINER_pn-python3-subunit = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-testtools = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-qemu = "Richard Purdie 
"
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144872): 
https://lists.openembedded.org/g/openembedded-core/message/144872
Mute This Topic: https://lists.openembedded.org/mt/78394491/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 v3 8/8] python3-pytest: Upgrade to 6.1.2

2020-11-20 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 .../{python3-pytest_6.1.0.bb => python3-pytest_6.1.2.bb}  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-pytest_6.1.0.bb => 
python3-pytest_6.1.2.bb} (92%)

diff --git a/meta/recipes-devtools/python/python3-pytest_6.1.0.bb 
b/meta/recipes-devtools/python/python3-pytest_6.1.2.bb
similarity index 92%
rename from meta/recipes-devtools/python/python3-pytest_6.1.0.bb
rename to meta/recipes-devtools/python/python3-pytest_6.1.2.bb
index e3e65986db..1b5139ddee 100644
--- a/meta/recipes-devtools/python/python3-pytest_6.1.0.bb
+++ b/meta/recipes-devtools/python/python3-pytest_6.1.2.bb
@@ -3,10 +3,10 @@ SUMMARY = "Simple powerful testing with python"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b"
 
-SRC_URI[sha256sum] = 
"d010e24666435b39a4cf48740b039885642b6c273a3f77be3e7e03554d2806b7"
-
 SRC_URI_append = " 
file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch "
 
+SRC_URI[sha256sum] = 
"c0a7e94a8cdbc5422a51ccdad8e6f1024795939cc89159a0ae7f0b316ad3823e"
+
 inherit update-alternatives pypi setuptools3
 
 RDEPENDS_${PN}_append_class-target = " \
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144873): 
https://lists.openembedded.org/g/openembedded-core/message/144873
Mute This Topic: https://lists.openembedded.org/mt/78394498/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 v3 5/8] python3-numpy: Add ldd runtime dependency on ptest package

2020-11-20 Thread Khem Raj
Fixes
E   RuntimeError: command ['ldd'] cannot be run

Signed-off-by: Khem Raj 
---
 meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb 
b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
index b484e7cddc..e59ea752cc 100644
--- a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
+++ b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
@@ -49,6 +49,7 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \
   ${PYTHON_PN}-threading \
   ${PYTHON_PN}-multiprocessing \
 "
+RDEPENDS_${PN}-ptest += "ldd"
 
 RDEPENDS_${PN}_class-native = ""
 
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144870): 
https://lists.openembedded.org/g/openembedded-core/message/144870
Mute This Topic: https://lists.openembedded.org/mt/78394485/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 v3 6/8] python3-pytest: Add recipe

2020-11-20 Thread Khem Raj
Moved to OE-Core from meta-python

There are several recipes in various layers which use pytest framework
some of them being in OE-Core, this will help to keep this in core
recipe metadata

Signed-off-by: Khem Raj 
---
 ...he-setup_requires-for-setuptools-scm.patch | 39 +++
 .../python/python3-pytest_6.1.0.bb| 38 ++
 2 files changed, 77 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
 create mode 100644 meta/recipes-devtools/python/python3-pytest_6.1.0.bb

diff --git 
a/meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
 
b/meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
new file mode 100644
index 00..8c5c17247e
--- /dev/null
+++ 
b/meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
@@ -0,0 +1,39 @@
+From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:00 2001
+From: Yuan Chao 
+Date: Wed, 28 Aug 2019 16:12:27 +0900
+Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for
+ setuptools-scm
+
+The setup_requires argument forces the download of the egg file for 
setuptools-scm
+during the do_compile phase.  This download is incompatible with the typical 
fetch
+and mirror structure.  The only usage of scm is the generation of the 
_version.py
+file and in the release tarball it is already correctly created
+
+Upstream-Status: Inappropriate [oe specific]
+
+Signed-off-by: Derek Straka 
+
+Signed-off-by: Yuan Chao 
+
+Rebase for pytest 6.1.0.
+
+Signed-off-by: Kai Kang 
+---
+ setup.cfg | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/setup.cfg b/setup.cfg
+index 60f6564..c4d1471 100644
+--- a/setup.cfg
 b/setup.cfg
+@@ -55,7 +55,6 @@ package_dir =
+   =src
+ setup_requires = 
+   setuptools>=40.0
+-  setuptools-scm
+ zip_safe = no
+ 
+ [options.entry_points]
+-- 
+2.17.1
+
diff --git a/meta/recipes-devtools/python/python3-pytest_6.1.0.bb 
b/meta/recipes-devtools/python/python3-pytest_6.1.0.bb
new file mode 100644
index 00..e3e65986db
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pytest_6.1.0.bb
@@ -0,0 +1,38 @@
+SUMMARY = "Simple powerful testing with python"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b"
+
+SRC_URI[sha256sum] = 
"d010e24666435b39a4cf48740b039885642b6c273a3f77be3e7e03554d2806b7"
+
+SRC_URI_append = " 
file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch "
+
+inherit update-alternatives pypi setuptools3
+
+RDEPENDS_${PN}_append_class-target = " \
+${PYTHON_PN}-attrs \
+${PYTHON_PN}-debugger \
+${PYTHON_PN}-doctest \
+${PYTHON_PN}-iniconfig \
+${PYTHON_PN}-json \
+${PYTHON_PN}-pluggy \
+${PYTHON_PN}-py \
+${PYTHON_PN}-setuptools \
+${PYTHON_PN}-six \
+${PYTHON_PN}-atomicwrites \
+${PYTHON_PN}-importlib-metadata \
+${PYTHON_PN}-pathlib2 \
+${PYTHON_PN}-wcwidth \
+${PYTHON_PN}-more-itertools \
+${PYTHON_PN}-packaging \
+"
+
+ALTERNATIVE_${PN} += "py.test pytest"
+
+NATIVE_LINK_NAME[pytest] = "${bindir}/pytest"
+ALTERNATIVE_TARGET[pytest] = "${bindir}/pytest"
+
+ALTERNATIVE_LINK_NAME[py.test] = "${bindir}/py.test"
+ALTERNATIVE_TARGET[py.test] = "${bindir}/py.test"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144871): 
https://lists.openembedded.org/g/openembedded-core/message/144871
Mute This Topic: https://lists.openembedded.org/mt/78394489/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 v3 3/8] python3-sortedcontainers: Add recipe

2020-11-20 Thread Khem Raj
Used in some python package testing infrastructures

Signed-off-by: Khem Raj 
---
 .../python/python3-sortedcontainers_2.3.0.bb | 9 +
 1 file changed, 9 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb

diff --git a/meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb 
b/meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb
new file mode 100644
index 00..6060c03723
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb
@@ -0,0 +1,9 @@
+SUMMARY = "Sorted Containers is an Apache2 licensed sorted collections 
library, written in pure-Python, and fast as C-extensions."
+HOMEPAGE = "http://www.grantjenks.com/docs/sortedcontainers/;
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=7c7c6a1a12ec816da16c1839137d53ae"
+
+inherit pypi setuptools3
+SRC_URI[sha256sum] = 
"59cc937650cf60d677c16775597c89a960658a09cf7c1a668f86e1e4464b10a1"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144868): 
https://lists.openembedded.org/g/openembedded-core/message/144868
Mute This Topic: https://lists.openembedded.org/mt/78394483/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 v3 4/8] python-numpy: Add ptest

2020-11-20 Thread Khem Raj
Since 1.15, numpy have replaced nose with pytest testing framework
it additionally needs hypothesis and sortedcontainers modules

Signed-off-by: Khem Raj 
---
 meta/recipes-devtools/python-numpy/files/run-ptest | 5 +
 meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb | 7 +--
 2 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/python-numpy/files/run-ptest

diff --git a/meta/recipes-devtools/python-numpy/files/run-ptest 
b/meta/recipes-devtools/python-numpy/files/run-ptest
new file mode 100644
index 00..9a1c72aeb1
--- /dev/null
+++ b/meta/recipes-devtools/python-numpy/files/run-ptest
@@ -0,0 +1,5 @@
+#!/usr/bin/env python3
+
+import numpy
+numpy.test(label='full', verbose=2)
+
diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb 
b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
index d54f2f6c18..b484e7cddc 100644
--- a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
+++ b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
@@ -8,6 +8,7 @@ SRCNAME = "numpy"
 SRC_URI = 
"https://github.com/${SRCNAME}/${SRCNAME}/releases/download/v${PV}/${SRCNAME}-${PV}.tar.gz
 \

file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \
file://0001-numpy-core-Define-RISCV-32-support.patch \
+   file://run-ptest \
 "
 SRC_URI[sha256sum] = 
"fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413"
 
@@ -16,7 +17,7 @@ UPSTREAM_CHECK_REGEX = "(?P\d+(\.\d+)+)\.tar"
 
 DEPENDS += "python3-cython-native"
 
-inherit setuptools3
+inherit ptest setuptools3
 
 S = "${WORKDIR}/numpy-${PV}"
 
@@ -30,7 +31,6 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \
   ${PYTHON_PN}-pprint \
   ${PYTHON_PN}-pickle \
   ${PYTHON_PN}-shell \
-  ${PYTHON_PN}-nose \
   ${PYTHON_PN}-doctest \
   ${PYTHON_PN}-datetime \
   ${PYTHON_PN}-distutils \
@@ -39,6 +39,9 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \
   ${PYTHON_PN}-netclient \
   ${PYTHON_PN}-numbers \
   ${PYTHON_PN}-pydoc \
+  ${PYTHON_PN}-pytest \
+  ${PYTHON_PN}-hypothesis \
+  ${PYTHON_PN}-sortedcontainers \
   ${PYTHON_PN}-pkgutil \
   ${PYTHON_PN}-email \
   ${PYTHON_PN}-compression \
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144869): 
https://lists.openembedded.org/g/openembedded-core/message/144869
Mute This Topic: https://lists.openembedded.org/mt/78394484/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 v3 1/8] python3-numpy: Upgrade to 1.19.4

2020-11-20 Thread Khem Raj
Unify inc file into single recipe, py2 is gone

Signed-off-by: Khem Raj 
---
 meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb  | 3 ---
 .../{python-numpy.inc => python3-numpy_1.19.4.bb}   | 6 --
 2 files changed, 4 insertions(+), 5 deletions(-)
 delete mode 100644 meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb
 rename meta/recipes-devtools/python-numpy/{python-numpy.inc => 
python3-numpy_1.19.4.bb} (94%)

diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb 
b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb
deleted file mode 100644
index d388e88d25..00
--- a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb
+++ /dev/null
@@ -1,3 +0,0 @@
-inherit setuptools3
-require python-numpy.inc
-
diff --git a/meta/recipes-devtools/python-numpy/python-numpy.inc 
b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
similarity index 94%
rename from meta/recipes-devtools/python-numpy/python-numpy.inc
rename to meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
index 40f81046ee..d54f2f6c18 100644
--- a/meta/recipes-devtools/python-numpy/python-numpy.inc
+++ b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
@@ -8,14 +8,16 @@ SRCNAME = "numpy"
 SRC_URI = 
"https://github.com/${SRCNAME}/${SRCNAME}/releases/download/v${PV}/${SRCNAME}-${PV}.tar.gz
 \

file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \
file://0001-numpy-core-Define-RISCV-32-support.patch \
-   "
-SRC_URI[sha256sum] = 
"9179d259a9bc53ed7b153d31fc3156d1ca560d61079f53191cf177c3efc4a498"
+"
+SRC_URI[sha256sum] = 
"fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413"
 
 UPSTREAM_CHECK_URI = "https://github.com/numpy/numpy/releases;
 UPSTREAM_CHECK_REGEX = "(?P\d+(\.\d+)+)\.tar"
 
 DEPENDS += "python3-cython-native"
 
+inherit setuptools3
+
 S = "${WORKDIR}/numpy-${PV}"
 
 CLEANBROKEN = "1"
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144866): 
https://lists.openembedded.org/g/openembedded-core/message/144866
Mute This Topic: https://lists.openembedded.org/mt/78394481/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 v3 2/8] python3-hypothesis: Add recipe

2020-11-20 Thread Khem Raj
Its used in many python packages for testing eg. numpy

Signed-off-by: Khem Raj 
---
 .../python/python3-hypothesis_5.41.2.bb| 14 ++
 1 file changed, 14 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb

diff --git a/meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb 
b/meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb
new file mode 100644
index 00..d6b85089d2
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb
@@ -0,0 +1,14 @@
+SUMMARY = "A library for property-based testing"
+HOMEPAGE = 
"https://github.com/HypothesisWorks/hypothesis/tree/master/hypothesis-python;
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4ee62c16ebd0f4f99d906f36b7de8c3c"
+
+PYPI_PACKAGE = "hypothesis"
+
+inherit pypi setuptools3
+
+SRC_URI[sha256sum] = 
"f8c281355aaba1da696e40f1488c2bb47c42660424f5750daea45a85e2d047b3"
+
+RDEPENDS_${PN} += "python3-core"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144867): 
https://lists.openembedded.org/g/openembedded-core/message/144867
Mute This Topic: https://lists.openembedded.org/mt/78394482/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 v2 7/7] maintainers: Add myself for new pytest related recipes

2020-11-20 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta/conf/distro/include/maintainers.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 5349aa3971..def8098b06 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -591,6 +591,7 @@ RECIPE_MAINTAINER_pn-python3-pycryptodomex = "Joshua Watt 

 RECIPE_MAINTAINER_pn-python3-extras = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-git = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-gitdb = "Oleksandr Kravchuk 
"
+RECIPE_MAINTAINER_pn-python3-hypothesis = "Khem Raj "
 RECIPE_MAINTAINER_pn-python3-iniparse = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-jinja2 = "Richard Purdie 
"
 RECIPE_MAINTAINER_pn-python3-libarchive-c = "Joshua Watt 
"
@@ -606,11 +607,13 @@ RECIPE_MAINTAINER_pn-python3-pyelftools = "Joshua Watt 
"
 RECIPE_MAINTAINER_pn-python3-pygments = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-pygobject = "Zang Ruochen 
"
 RECIPE_MAINTAINER_pn-python3-pyparsing = "Oleksandr Kravchuk 
"
+RECIPE_MAINTAINER_pn-python3-pytest = "Khem Raj "
 RECIPE_MAINTAINER_pn-python3-scons = "Tim Orling 
"
 RECIPE_MAINTAINER_pn-python3-scons-native = "Tim Orling 
"
 RECIPE_MAINTAINER_pn-python3-setuptools = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-six = "Zang Ruochen "
 RECIPE_MAINTAINER_pn-python3-smmap = "Oleksandr Kravchuk 
"
+RECIPE_MAINTAINER_pn-python3-sortedcontainers = "Khem Raj "
 RECIPE_MAINTAINER_pn-python3-subunit = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-python3-testtools = "Oleksandr Kravchuk 
"
 RECIPE_MAINTAINER_pn-qemu = "Richard Purdie 
"
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144864): 
https://lists.openembedded.org/g/openembedded-core/message/144864
Mute This Topic: https://lists.openembedded.org/mt/78394424/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 pseudo] Fix build with gcc 10

2020-11-20 Thread Vincent Stehlé
On Fri, Nov 20, 2020 at 05:24:31PM +, Richard Purdie wrote:
> I think we already have this in the pseudo branch we use for OE?

Hi Richard,

This is correct. I was looking at the master branch. Sorry for the noise.

Best regards,
Vincent.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144865): 
https://lists.openembedded.org/g/openembedded-core/message/144865
Mute This Topic: https://lists.openembedded.org/mt/78393178/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 v2 5/7] python3-numpy: Add ldd runtime dependency on ptest package

2020-11-20 Thread Khem Raj
Fixes
E   RuntimeError: command ['ldd'] cannot be run

Signed-off-by: Khem Raj 
---
 meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb 
b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
index b484e7cddc..e59ea752cc 100644
--- a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
+++ b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
@@ -49,6 +49,7 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \
   ${PYTHON_PN}-threading \
   ${PYTHON_PN}-multiprocessing \
 "
+RDEPENDS_${PN}-ptest += "ldd"
 
 RDEPENDS_${PN}_class-native = ""
 
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144862): 
https://lists.openembedded.org/g/openembedded-core/message/144862
Mute This Topic: https://lists.openembedded.org/mt/78394421/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 v2 6/7] python3-pytest: Add recipe

2020-11-20 Thread Khem Raj
Moved to OE-Core from meta-python

There are several recipes in various layers which use pytest framework
some of them being in OE-Core, this will help to keep this in core
recipe metadata

Signed-off-by: Khem Raj 
---
 ...he-setup_requires-for-setuptools-scm.patch | 39 +++
 .../python/python3-pytest_6.1.0.bb| 38 ++
 2 files changed, 77 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
 create mode 100644 meta/recipes-devtools/python/python3-pytest_6.1.0.bb

diff --git 
a/meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
 
b/meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
new file mode 100644
index 00..8c5c17247e
--- /dev/null
+++ 
b/meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
@@ -0,0 +1,39 @@
+From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:00 2001
+From: Yuan Chao 
+Date: Wed, 28 Aug 2019 16:12:27 +0900
+Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for
+ setuptools-scm
+
+The setup_requires argument forces the download of the egg file for 
setuptools-scm
+during the do_compile phase.  This download is incompatible with the typical 
fetch
+and mirror structure.  The only usage of scm is the generation of the 
_version.py
+file and in the release tarball it is already correctly created
+
+Upstream-Status: Inappropriate [oe specific]
+
+Signed-off-by: Derek Straka 
+
+Signed-off-by: Yuan Chao 
+
+Rebase for pytest 6.1.0.
+
+Signed-off-by: Kai Kang 
+---
+ setup.cfg | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/setup.cfg b/setup.cfg
+index 60f6564..c4d1471 100644
+--- a/setup.cfg
 b/setup.cfg
+@@ -55,7 +55,6 @@ package_dir =
+   =src
+ setup_requires = 
+   setuptools>=40.0
+-  setuptools-scm
+ zip_safe = no
+ 
+ [options.entry_points]
+-- 
+2.17.1
+
diff --git a/meta/recipes-devtools/python/python3-pytest_6.1.0.bb 
b/meta/recipes-devtools/python/python3-pytest_6.1.0.bb
new file mode 100644
index 00..e3e65986db
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pytest_6.1.0.bb
@@ -0,0 +1,38 @@
+SUMMARY = "Simple powerful testing with python"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b"
+
+SRC_URI[sha256sum] = 
"d010e24666435b39a4cf48740b039885642b6c273a3f77be3e7e03554d2806b7"
+
+SRC_URI_append = " 
file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch "
+
+inherit update-alternatives pypi setuptools3
+
+RDEPENDS_${PN}_append_class-target = " \
+${PYTHON_PN}-attrs \
+${PYTHON_PN}-debugger \
+${PYTHON_PN}-doctest \
+${PYTHON_PN}-iniconfig \
+${PYTHON_PN}-json \
+${PYTHON_PN}-pluggy \
+${PYTHON_PN}-py \
+${PYTHON_PN}-setuptools \
+${PYTHON_PN}-six \
+${PYTHON_PN}-atomicwrites \
+${PYTHON_PN}-importlib-metadata \
+${PYTHON_PN}-pathlib2 \
+${PYTHON_PN}-wcwidth \
+${PYTHON_PN}-more-itertools \
+${PYTHON_PN}-packaging \
+"
+
+ALTERNATIVE_${PN} += "py.test pytest"
+
+NATIVE_LINK_NAME[pytest] = "${bindir}/pytest"
+ALTERNATIVE_TARGET[pytest] = "${bindir}/pytest"
+
+ALTERNATIVE_LINK_NAME[py.test] = "${bindir}/py.test"
+ALTERNATIVE_TARGET[py.test] = "${bindir}/py.test"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144863): 
https://lists.openembedded.org/g/openembedded-core/message/144863
Mute This Topic: https://lists.openembedded.org/mt/78394423/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 v2 3/7] python3-sortedcontainers: Add recipe

2020-11-20 Thread Khem Raj
Used in some python package testing infrastructures

Signed-off-by: Khem Raj 
---
 .../python/python3-sortedcontainers_2.3.0.bb | 9 +
 1 file changed, 9 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb

diff --git a/meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb 
b/meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb
new file mode 100644
index 00..6060c03723
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-sortedcontainers_2.3.0.bb
@@ -0,0 +1,9 @@
+SUMMARY = "Sorted Containers is an Apache2 licensed sorted collections 
library, written in pure-Python, and fast as C-extensions."
+HOMEPAGE = "http://www.grantjenks.com/docs/sortedcontainers/;
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=7c7c6a1a12ec816da16c1839137d53ae"
+
+inherit pypi setuptools3
+SRC_URI[sha256sum] = 
"59cc937650cf60d677c16775597c89a960658a09cf7c1a668f86e1e4464b10a1"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144860): 
https://lists.openembedded.org/g/openembedded-core/message/144860
Mute This Topic: https://lists.openembedded.org/mt/78394419/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 v2 4/7] python-numpy: Add ptest

2020-11-20 Thread Khem Raj
Since 1.15, numpy have replaced nose with pytest testing framework
it additionally needs hypothesis and sortedcontainers modules

Signed-off-by: Khem Raj 
---
 meta/recipes-devtools/python-numpy/files/run-ptest | 5 +
 meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb | 7 +--
 2 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/python-numpy/files/run-ptest

diff --git a/meta/recipes-devtools/python-numpy/files/run-ptest 
b/meta/recipes-devtools/python-numpy/files/run-ptest
new file mode 100644
index 00..9a1c72aeb1
--- /dev/null
+++ b/meta/recipes-devtools/python-numpy/files/run-ptest
@@ -0,0 +1,5 @@
+#!/usr/bin/env python3
+
+import numpy
+numpy.test(label='full', verbose=2)
+
diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb 
b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
index d54f2f6c18..b484e7cddc 100644
--- a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
+++ b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
@@ -8,6 +8,7 @@ SRCNAME = "numpy"
 SRC_URI = 
"https://github.com/${SRCNAME}/${SRCNAME}/releases/download/v${PV}/${SRCNAME}-${PV}.tar.gz
 \

file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \
file://0001-numpy-core-Define-RISCV-32-support.patch \
+   file://run-ptest \
 "
 SRC_URI[sha256sum] = 
"fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413"
 
@@ -16,7 +17,7 @@ UPSTREAM_CHECK_REGEX = "(?P\d+(\.\d+)+)\.tar"
 
 DEPENDS += "python3-cython-native"
 
-inherit setuptools3
+inherit ptest setuptools3
 
 S = "${WORKDIR}/numpy-${PV}"
 
@@ -30,7 +31,6 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \
   ${PYTHON_PN}-pprint \
   ${PYTHON_PN}-pickle \
   ${PYTHON_PN}-shell \
-  ${PYTHON_PN}-nose \
   ${PYTHON_PN}-doctest \
   ${PYTHON_PN}-datetime \
   ${PYTHON_PN}-distutils \
@@ -39,6 +39,9 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \
   ${PYTHON_PN}-netclient \
   ${PYTHON_PN}-numbers \
   ${PYTHON_PN}-pydoc \
+  ${PYTHON_PN}-pytest \
+  ${PYTHON_PN}-hypothesis \
+  ${PYTHON_PN}-sortedcontainers \
   ${PYTHON_PN}-pkgutil \
   ${PYTHON_PN}-email \
   ${PYTHON_PN}-compression \
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144861): 
https://lists.openembedded.org/g/openembedded-core/message/144861
Mute This Topic: https://lists.openembedded.org/mt/78394420/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 v2 1/7] python3-numpy: Upgrade to 1.19.4

2020-11-20 Thread Khem Raj
Unify inc file into single recipe, py2 is gone

Signed-off-by: Khem Raj 
---
 meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb  | 3 ---
 .../{python-numpy.inc => python3-numpy_1.19.4.bb}   | 6 --
 2 files changed, 4 insertions(+), 5 deletions(-)
 delete mode 100644 meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb
 rename meta/recipes-devtools/python-numpy/{python-numpy.inc => 
python3-numpy_1.19.4.bb} (94%)

diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb 
b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb
deleted file mode 100644
index d388e88d25..00
--- a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.3.bb
+++ /dev/null
@@ -1,3 +0,0 @@
-inherit setuptools3
-require python-numpy.inc
-
diff --git a/meta/recipes-devtools/python-numpy/python-numpy.inc 
b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
similarity index 94%
rename from meta/recipes-devtools/python-numpy/python-numpy.inc
rename to meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
index 40f81046ee..d54f2f6c18 100644
--- a/meta/recipes-devtools/python-numpy/python-numpy.inc
+++ b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
@@ -8,14 +8,16 @@ SRCNAME = "numpy"
 SRC_URI = 
"https://github.com/${SRCNAME}/${SRCNAME}/releases/download/v${PV}/${SRCNAME}-${PV}.tar.gz
 \

file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \
file://0001-numpy-core-Define-RISCV-32-support.patch \
-   "
-SRC_URI[sha256sum] = 
"9179d259a9bc53ed7b153d31fc3156d1ca560d61079f53191cf177c3efc4a498"
+"
+SRC_URI[sha256sum] = 
"fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413"
 
 UPSTREAM_CHECK_URI = "https://github.com/numpy/numpy/releases;
 UPSTREAM_CHECK_REGEX = "(?P\d+(\.\d+)+)\.tar"
 
 DEPENDS += "python3-cython-native"
 
+inherit setuptools3
+
 S = "${WORKDIR}/numpy-${PV}"
 
 CLEANBROKEN = "1"
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144858): 
https://lists.openembedded.org/g/openembedded-core/message/144858
Mute This Topic: https://lists.openembedded.org/mt/78394417/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 v2 2/7] python3-hypothesis: Add recipe

2020-11-20 Thread Khem Raj
Its used in many python packages for testing eg. numpy

Signed-off-by: Khem Raj 
---
 .../python/python3-hypothesis_5.41.2.bb| 14 ++
 1 file changed, 14 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb

diff --git a/meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb 
b/meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb
new file mode 100644
index 00..d6b85089d2
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-hypothesis_5.41.2.bb
@@ -0,0 +1,14 @@
+SUMMARY = "A library for property-based testing"
+HOMEPAGE = 
"https://github.com/HypothesisWorks/hypothesis/tree/master/hypothesis-python;
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4ee62c16ebd0f4f99d906f36b7de8c3c"
+
+PYPI_PACKAGE = "hypothesis"
+
+inherit pypi setuptools3
+
+SRC_URI[sha256sum] = 
"f8c281355aaba1da696e40f1488c2bb47c42660424f5750daea45a85e2d047b3"
+
+RDEPENDS_${PN} += "python3-core"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144859): 
https://lists.openembedded.org/g/openembedded-core/message/144859
Mute This Topic: https://lists.openembedded.org/mt/78394418/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 pseudo] Fix build with gcc 10

2020-11-20 Thread Richard Purdie
On Fri, 2020-11-20 at 17:38 +0100, Vincent Stehlé wrote:
> Add a missing typedef in front of the pseudo_access_t definition.
> Otherwise
> pseudo_access_t ends up being a global enum, defined each time
> pseudo_ipc.h
> is included.
> 
> This fixes the following link time error with gcc 10:
> 
>   multiple definition of `pseudo_access_t'
> 
> Signed-off-by: Vincent Stehlé 
> ---
>  pseudo_ipc.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pseudo_ipc.h b/pseudo_ipc.h
> index caeae5c..d945257 100644
> --- a/pseudo_ipc.h
> +++ b/pseudo_ipc.h
> @@ -29,7 +29,7 @@ typedef struct {
>   char path[];
>  } pseudo_msg_t;
>  
> -enum {
> +typedef enum {
>   PSA_EXEC = 1,
>   PSA_WRITE = (PSA_EXEC << 1),
>   PSA_READ = (PSA_WRITE << 1),

I think we already have this in the pseudo branch we use for OE?

http://git.yoctoproject.org/cgit.cgi/pseudo/commit/pseudo_ipc.h?h=oe-core=a44361b8d3fbf5fc40cd87b599caeb380454efbe

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144857): 
https://lists.openembedded.org/g/openembedded-core/message/144857
Mute This Topic: https://lists.openembedded.org/mt/78393178/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] valgrind: helgrind: Intercept libc functions

2020-11-20 Thread Stacy Gaikovaia

Alright - I'll submit a fix today.

Stacy

On 2020-11-20 11:32 a.m., Richard Purdie wrote:

[Please note this e-mail is from an EXTERNAL e-mail address]

On Thu, 2020-11-19 at 10:31 -0800, Stacy Gaikovaia wrote:

From: Stacy Gaikovaia 

PTH_FUNC definition needs to be modified in order to
intercept posix thread functions in both libc and libpthread.
In order to handle this in helgrind, weak alias the pthread functions
in glibc.
This also prevents any need for a special case for musl, where
these definitions aren't duplicated.

See https://bugs.kde.org/show_bug.cgi?id=428909 for additional
discussion.

Signed-off-by: Paul Floyd 
Signed-off-by: Stacy Gaikovaia 

Unfortunately this failed on musl:

https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/2731
https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/2728

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144856): 
https://lists.openembedded.org/g/openembedded-core/message/144856
Mute This Topic: https://lists.openembedded.org/mt/78371779/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: CVE-2020-27619 fix

2020-11-20 Thread Stacy Gaikovaia
From: Stacy Gaikovaia 

This patch fixes a critical CVE in Python 3.9.0. It can
be removed after an uprev to Python 3.9.1.

CVE: CVE-2020-27619

Upstream-Status: Backport

Signed-off-by: Stacy Gaikovaia 
---
 ...ger-call-eval-on-content-received-vi.patch | 77 +++
 meta/recipes-devtools/python/python3_3.9.0.bb |  1 +
 2 files changed, 78 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3/0001-bpo-41944-No-longer-call-eval-on-content-received-vi.patch

diff --git 
a/meta/recipes-devtools/python/python3/0001-bpo-41944-No-longer-call-eval-on-content-received-vi.patch
 
b/meta/recipes-devtools/python/python3/0001-bpo-41944-No-longer-call-eval-on-content-received-vi.patch
new file mode 100644
index 00..c51d0730a7
--- /dev/null
+++ 
b/meta/recipes-devtools/python/python3/0001-bpo-41944-No-longer-call-eval-on-content-received-vi.patch
@@ -0,0 +1,77 @@
+From e912e945f2960029d039d3390ea08835ad39374b Mon Sep 17 00:00:00 2001
+From: "Miss Skeleton (bot)" <31488909+miss-isling...@users.noreply.github.com>
+Date: Mon, 19 Oct 2020 21:46:10 -0700
+Subject: [PATCH] bpo-41944: No longer call eval() on content received via HTTP
+ in the CJK codec tests (GH-22566) (GH-22579)
+
+(cherry picked from commit 2ef5caa58febc8968e670e39e3d37cf8eef3cab8)
+
+Co-authored-by: Serhiy Storchaka 
+
+This patch fixes a critical CVE in Python 3.9.0. It can
+be removed after we purev to puthon 3.9.1.
+
+CVE: CVE-2020-27619
+
+Upstream-Status: Backport
+
+Signed-off-by: Stacy Gaikovaia 
+ 
+---
+ Lib/test/multibytecodec_support.py| 22 +++
+ .../2020-10-05-17-43-46.bpo-41944.rf1dYb.rst  |  1 +
+ 2 files changed, 9 insertions(+), 14 deletions(-)
+ create mode 100644 
Misc/NEWS.d/next/Tests/2020-10-05-17-43-46.bpo-41944.rf1dYb.rst
+
+diff --git a/Lib/test/multibytecodec_support.py 
b/Lib/test/multibytecodec_support.py
+index f9884c68eb..98feec2f60 100644
+--- a/Lib/test/multibytecodec_support.py
 b/Lib/test/multibytecodec_support.py
+@@ -300,29 +300,23 @@ class TestBase_Mapping(unittest.TestCase):
+ self._test_mapping_file_plain()
+ 
+ def _test_mapping_file_plain(self):
+-unichrs = lambda s: ''.join(map(chr, map(eval, s.split('+'
++def unichrs(s):
++return ''.join(chr(int(x, 16)) for x in s.split('+'))
++
+ urt_wa = {}
+ 
+ with self.open_mapping_file() as f:
+ for line in f:
+ if not line:
+ break
+-data = line.split('#')[0].strip().split()
++data = line.split('#')[0].split()
+ if len(data) != 2:
+ continue
+ 
+-csetval = eval(data[0])
+-if csetval <= 0x7F:
+-csetch = bytes([csetval & 0xff])
+-elif csetval >= 0x100:
+-csetch = bytes([(csetval >> 24), ((csetval >> 16) & 0xff),
+-((csetval >> 8) & 0xff), (csetval & 
0xff)])
+-elif csetval >= 0x1:
+-csetch = bytes([(csetval >> 16), ((csetval >> 8) & 0xff),
+-(csetval & 0xff)])
+-elif csetval >= 0x100:
+-csetch = bytes([(csetval >> 8), (csetval & 0xff)])
+-else:
++if data[0][:2] != '0x':
++self.fail(f"Invalid line: {line!r}")
++csetch = bytes.fromhex(data[0][2:])
++if len(csetch) == 1 and 0x80 <= csetch[0]:
+ continue
+ 
+ unich = unichrs(data[1])
+diff --git a/Misc/NEWS.d/next/Tests/2020-10-05-17-43-46.bpo-41944.rf1dYb.rst 
b/Misc/NEWS.d/next/Tests/2020-10-05-17-43-46.bpo-41944.rf1dYb.rst
+new file mode 100644
+index 00..4f9782f1c8
+--- /dev/null
 b/Misc/NEWS.d/next/Tests/2020-10-05-17-43-46.bpo-41944.rf1dYb.rst
+@@ -0,0 +1 @@
++Tests for CJK codecs no longer call ``eval()`` on content received via HTTP.
+-- 
+2.17.1
+
diff --git a/meta/recipes-devtools/python/python3_3.9.0.bb 
b/meta/recipes-devtools/python/python3_3.9.0.bb
index 8fe60ea016..c31e7c8607 100644
--- a/meta/recipes-devtools/python/python3_3.9.0.bb
+++ b/meta/recipes-devtools/python/python3_3.9.0.bb
@@ -29,6 +29,7 @@ SRC_URI = 
"http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \
file://0001-Makefile-do-not-compile-.pyc-in-parallel.patch \

file://0020-configure.ac-setup.py-do-not-add-a-curses-include-pa.patch \

file://0001-Lib-sysconfig.py-use-libdir-values-from-configuratio.patch \
+   
file://0001-bpo-41944-No-longer-call-eval-on-content-received-vi.patch \
"
 
 SRC_URI_append_class-native = " \
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144855): 
https://lists.openembedded.org/g/openembedded-core/message/144855
Mute This Topic: https://lists.openembedded.org/mt/78394201/21656
Group 

[OE-core] [PATCH pseudo] Fix build with gcc 10

2020-11-20 Thread Vincent Stehlé
Add a missing typedef in front of the pseudo_access_t definition. Otherwise
pseudo_access_t ends up being a global enum, defined each time pseudo_ipc.h
is included.

This fixes the following link time error with gcc 10:

  multiple definition of `pseudo_access_t'

Signed-off-by: Vincent Stehlé 
---
 pseudo_ipc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pseudo_ipc.h b/pseudo_ipc.h
index caeae5c..d945257 100644
--- a/pseudo_ipc.h
+++ b/pseudo_ipc.h
@@ -29,7 +29,7 @@ typedef struct {
char path[];
 } pseudo_msg_t;
 
-enum {
+typedef enum {
PSA_EXEC = 1,
PSA_WRITE = (PSA_EXEC << 1),
PSA_READ = (PSA_WRITE << 1),
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144854): 
https://lists.openembedded.org/g/openembedded-core/message/144854
Mute This Topic: https://lists.openembedded.org/mt/78393178/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 v2] go: Update to 1.15.5

2020-11-20 Thread Richard Purdie
On Fri, 2020-11-20 at 00:15 -0800, Khem Raj wrote:
> Define CXX_FOR_TARGET and CC_FOR_TARGET for target go
> since we are cross building it, it helps in defining the compiler
> for cgo on target
> 
> Disable CGO_LDFLAGS for go-runtime since it confuses the linker
> 
> Fixes
> > Building std for target, linux/arm.
> > go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1
> 
> Signed-off-by: Khem Raj 
> ---
> v2: Fix go-runtime build

Various failures in world builds:

musl x86:
https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/2728
musl x86-64:
https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/2731
no-x11:
https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2729

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144853): 
https://lists.openembedded.org/g/openembedded-core/message/144853
Mute This Topic: https://lists.openembedded.org/mt/78385121/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] valgrind: helgrind: Intercept libc functions

2020-11-20 Thread Richard Purdie
On Thu, 2020-11-19 at 10:31 -0800, Stacy Gaikovaia wrote:
> From: Stacy Gaikovaia 
> 
> PTH_FUNC definition needs to be modified in order to
> intercept posix thread functions in both libc and libpthread.
> In order to handle this in helgrind, weak alias the pthread functions
> in glibc.
> This also prevents any need for a special case for musl, where
> these definitions aren't duplicated.
> 
> See https://bugs.kde.org/show_bug.cgi?id=428909 for additional
> discussion.
> 
> Signed-off-by: Paul Floyd 
> Signed-off-by: Stacy Gaikovaia 

Unfortunately this failed on musl:

https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/2731
https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/2728

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144852): 
https://lists.openembedded.org/g/openembedded-core/message/144852
Mute This Topic: https://lists.openembedded.org/mt/78371779/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 4/4] python-numpy: Add ptest

2020-11-20 Thread Richard Purdie
On Tue, 2020-11-17 at 14:54 -0800, Khem Raj wrote:
> Since 1.15, numpy have replaced nose with pytest testing framework
> it additionally needs hypothesis and sortedcontainers modules
> 
> Signed-off-by: Khem Raj 
> ---
>  meta/recipes-devtools/python-numpy/files/run-ptest | 5 +
>  meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb | 7 +--
>  2 files changed, 10 insertions(+), 2 deletions(-)
>  create mode 100644 meta/recipes-devtools/python-numpy/files/run-ptest

This series isn't quite there as it needs python3-pytest and I think
its missing some BBCLASSEXTENDs too.

stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-hypothesis' (but 
virtual:nativesdk:/home/pokybuild/yocto-worker/a-full/build/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
 RDEPENDS on or otherwise requires it)
stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-pytest' (but 
virtual:nativesdk:/home/pokybuild/yocto-worker/a-full/build/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
 RDEPENDS on or otherwise requires it)
stdio: WARNING: Nothing RPROVIDES 'python3-pytest' (but 
/home/pokybuild/yocto-worker/a-full/build/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
 RDEPENDS on or otherwise requires it)
stdio: WARNING: Nothing RPROVIDES 'python3-numpy' (but 
/home/pokybuild/yocto-worker/a-full/build/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb
 RDEPENDS on or otherwise requires it)

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144851): 
https://lists.openembedded.org/g/openembedded-core/message/144851
Mute This Topic: https://lists.openembedded.org/mt/78328456/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 3/5] sqlite3: add CVE-2015-3717 to whitelist

2020-11-20 Thread Ross Burton
Yes, it is.

Ross

On Thu, 19 Nov 2020 at 15:04, Steve Sakoman  wrote:
>
> Is this also suitable for dunfell?
>
> Steve
>
> On Thu, Nov 19, 2020 at 12:38 AM Ross Burton  wrote:
> >
> > As per https://groups.google.com/g/sqlite-dev/c/U7OjAbZO6LA this issue
> > is believed to be either iOS specific, or fixed in 3.8.9.
> >
> > Signed-off-by: Ross Burton 
> > ---
> >  meta/recipes-support/sqlite/sqlite3_3.33.0.bb | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/meta/recipes-support/sqlite/sqlite3_3.33.0.bb 
> > b/meta/recipes-support/sqlite/sqlite3_3.33.0.bb
> > index 611a1bd923a..33f041a161d 100644
> > --- a/meta/recipes-support/sqlite/sqlite3_3.33.0.bb
> > +++ b/meta/recipes-support/sqlite/sqlite3_3.33.0.bb
> > @@ -8,3 +8,5 @@ SRC_URI[sha256sum] = 
> > "106a2c48c7f75a298a7557bcc0d5f4f454e5b43811cc738b7ca294d695
> >
> >  # -19242 is only an issue in specific development branch commits
> >  CVE_CHECK_WHITELIST += "CVE-2019-19242"
> > +# This is believed to be iOS specific 
> > (https://groups.google.com/g/sqlite-dev/c/U7OjAbZO6LA)
> > +CVE_CHECK_WHITELIST += "CVE-2015-3717"
> > --
> > 2.25.1
> >
> >
> > 
> >

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144850): 
https://lists.openembedded.org/g/openembedded-core/message/144850
Mute This Topic: https://lists.openembedded.org/mt/78361986/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 3/5] sqlite3: add CVE-2015-3717 to whitelist

2020-11-20 Thread Ross Burton
On Thu, 19 Nov 2020 at 16:41,  wrote:
> Or is the problem here that sqlite version 3.33 is not listed correctly on
> https://nvd.nist.gov/vuln/detail/CVE-2015-3717#match-3021743
> as I don't see this reported even for older 3.22 version in by yocto CVE 
> checker?

So there's a bug in the CPE parsing that I have a local patch for,
which meant this and 38 other issues were not reported.  I have
reported the findings in that thread to NVD to see if they want to add
a version to the CVE, but considering it's not actually known what the
issue is I suspect they might not want to add it.

In an ideal world Apple would verify that the issue is iOS/macOS
specific, but that's not likely to happen.

Ross

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144849): 
https://lists.openembedded.org/g/openembedded-core/message/144849
Mute This Topic: https://lists.openembedded.org/mt/78361986/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 2/5] python3: add CVE-2007-4559 to whitelist

2020-11-20 Thread Ross Burton
Yes.

Ross

On Thu, 19 Nov 2020 at 15:03, Steve Sakoman  wrote:
>
> Is this also suitable for dunfell?
>
> Steve
>
> On Thu, Nov 19, 2020 at 12:38 AM Ross Burton  wrote:
> >
> > This issue describes expected behaviour, do not use tarfile with
> > untrusted data.
> >
> > Signed-off-by: Ross Burton 
> > ---
> >  meta/recipes-devtools/python/python3_3.9.0.bb | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/meta/recipes-devtools/python/python3_3.9.0.bb 
> > b/meta/recipes-devtools/python/python3_3.9.0.bb
> > index 8fe60ea0160..86077bb1ca8 100644
> > --- a/meta/recipes-devtools/python/python3_3.9.0.bb
> > +++ b/meta/recipes-devtools/python/python3_3.9.0.bb
> > @@ -45,6 +45,8 @@ UPSTREAM_CHECK_URI = 
> > "https://www.python.org/downloads/source/;
> >
> >  CVE_PRODUCT = "python"
> >
> > +# Upstream consider this expected behaviour
> > +CVE_CHECK_WHITELIST += "CVE-2007-4559"
> >  # This is not exploitable when glibc has CVE-2016-10739 fixed.
> >  CVE_CHECK_WHITELIST += "CVE-2019-18348"
> >
> > --
> > 2.25.1
> >
> >
> > 
> >

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144848): 
https://lists.openembedded.org/g/openembedded-core/message/144848
Mute This Topic: https://lists.openembedded.org/mt/78361985/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] buildtools-tarball: add wic dependency into buildtools

2020-11-20 Thread Richard Purdie
On Thu, 2020-11-19 at 08:48 +0800, Changqing Li wrote:
> fix below error:
> wic ls ./core-image-minimal-intel-x86-64.wic
> 
> ERROR: Can't find executable parted
> 
> wic depend on some tools like parted/mtools/..., and we have those
> tools in native_sysroot. so above problem can be avoided by
> run command like wic ls imagename.wic --native-sysroot 
> 
> but this cannot cover condition that usr don't have build the
> image, the image just copy from somewhere.
> 
> Signed-off-by: Changqing Li 
> ---
>  meta/recipes-core/meta/buildtools-tarball.bb | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta/recipes-core/meta/buildtools-tarball.bb
> b/meta/recipes-core/meta/buildtools-tarball.bb
> index 560b8d67b9..7783fabbf2 100644
> --- a/meta/recipes-core/meta/buildtools-tarball.bb
> +++ b/meta/recipes-core/meta/buildtools-tarball.bb
> @@ -29,6 +29,9 @@ TOOLCHAIN_HOST_TASK ?= "\
>  nativesdk-rpcsvc-proto \
>  nativesdk-patch \
>  nativesdk-mtools \
> +nativesdk-parted \
> +nativesdk-dosfstools \
> +nativesdk-gptfdisk \
>  "

These sound more like something which would be in buildtools-extended-
tarball. Our rough metric for inclusion in this recipe is whether the
tools are needed by an OE build and these are not, they're only needed
for standalone wic usage. I'm therefore unsure whether we should be
adding them at all.

Any other opinions?

Cheers,
Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144847): 
https://lists.openembedded.org/g/openembedded-core/message/144847
Mute This Topic: https://lists.openembedded.org/mt/78355292/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] valgrind: helgrind: Intercept libc functions

2020-11-20 Thread Richard Purdie
On Thu, 2020-11-19 at 10:31 -0800, Stacy Gaikovaia wrote:
> From: Stacy Gaikovaia 
> 
> PTH_FUNC definition needs to be modified in order to
> intercept posix thread functions in both libc and libpthread.
> In order to handle this in helgrind, weak alias the pthread functions in 
> glibc.
> This also prevents any need for a special case for musl, where
> these definitions aren't duplicated.
> 
> See https://bugs.kde.org/show_bug.cgi?id=428909 for additional
> discussion.
> 
> Signed-off-by: Paul Floyd 
> Signed-off-by: Stacy Gaikovaia 
> ---
>  ...01-helgrind-Intercept-libc-functions.patch | 45 +++
>  .../valgrind/valgrind_3.16.1.bb   |  1 +
>  2 files changed, 46 insertions(+)
>  create mode 100644 
> meta/recipes-devtools/valgrind/valgrind/0001-helgrind-Intercept-libc-functions.patch
> 
> diff --git 
> a/meta/recipes-devtools/valgrind/valgrind/0001-helgrind-Intercept-libc-functions.patch
>  
> b/meta/recipes-devtools/valgrind/valgrind/0001-helgrind-Intercept-libc-functions.patch
> new file mode 100644
> index 00..b3ab329bd8
> --- /dev/null
> +++ 
> b/meta/recipes-devtools/valgrind/valgrind/0001-helgrind-Intercept-libc-functions.patch
> @@ -0,0 +1,45 @@
> +From d02cafce8dd29df0309935beefbfbca1d8e29862 Mon Sep 17 00:00:00 2001
> +From: Paul Floyd 
> +Date: Wed, 18 Nov 2020 12:49:20 -0400
> +Subject: [PATCH] helgrind: Intercept libc functions
> +
> +Signed-off-by: Paul Floyd 
> +
> +PTH_FUNC definition needs to be modified in order to
> +intercept posix threa functions in both libc and
> +libpthread. In order to handle this in helgrind, weak alias
> +the pthread functions in glibc.
> +
> +Signed-off-by: Stacy Gaikovaia 

The patch in OE needs an Upstream-Status which would be Submitted in
this case I guess. I've added as I queued the patch to save you
resubmitting, thanks for the fix.

Anuj: This should fix a ptest regression in gatesgarth that QA
highlighted at release.

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144846): 
https://lists.openembedded.org/g/openembedded-core/message/144846
Mute This Topic: https://lists.openembedded.org/mt/78371779/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] YPBZ 14125: busybox wget: where to add openssl-bin dependency?

2020-11-20 Thread Andre McCurdy
On Thu, Nov 19, 2020 at 11:11 PM Shachar Menashe  wrote:
>
> I agree that replacing busybox wget with another tool to handle HTTPS is a 
> cleaner solution, I am just a bit worried about backward compatibility...

Breaking backwards compatibility is not generally a big concern for OE
so long as any use cases within oe-core and its test suite are updated
and continue to work.

> If someone used Yocto and relied on HTTPS download functionality (and seeing 
> there are no other suitable tools such as curl that are already supplied with 
> Yocto) then we are breaking that use case

oe-core provides both curl and wget, so alternatives to Busybox wget
are certainly available.

> So the question is whether we break compatibility by removing 
> FEATURE_WGET_HTTPS, or retaining compatibility by including the openssl 
> binary (or doing nothing and retaining the security issue, which personally I 
> think is problematic)
>
> -Original Message-
> From: Andre McCurdy 
> Sent: Thursday, November 19, 2020 9:45 PM
> To: Shachar Menashe 
> Cc: Randy MacLeod ; st...@sakoman.com; Patches 
> and discussions about the oe-core layer 
> 
> Subject: Re: [OE-core] YPBZ 14125: busybox wget: where to add openssl-bin 
> dependency?
>
> [External email: Use caution with links and attachments]
>
> On Wed, Nov 18, 2020 at 10:46 PM Shachar Menashe  wrote:
> >
> > Hi Andre,
> > The way I see it - even if something is declared, it does not mean it
> > is reasonable or even expected I mean - do you earnestly believe that every 
> > Yocto user (or busybox wget user for that matter) read the help text 
> > associated with the config option that their tool is built with?
>
> No, but I expect them to notice the "TLS certificate validation not 
> implemented" warning which Busybox wget outputs.
>
> > From my perspective, they could not care less, they have the prebuilt 
> > binary and they just use it and expect it to work, they have no idea what 
> > config flags were used when building the tool...
> > In the year 2020 it is expected that tools that come pre-shipped with
> > your OS aren't exposed to naïve attacks such as SSL MitM, that can be
> > executed by automated tooling
>
> Trying to be secure by default is a good argument. The solution is probably 
> just to disable FEATURE_WGET_HTTPS though. Users who understand the 
> limitations can enable it manually. Users who want to validate certificates 
> should be guided towards using curl. Having Busybox wget call out to the 
> openssl command line tool is certainly a creative solution, but feels too 
> much like a hack to want to enable by default.
>
> > I think I can back this up with the fact that busybox maintainers
> > chose to integrate our patch that fixes the CVE, and not dismiss it
> >
> > Note that the GNU version of wget is not exposed to this attack, so
> > this furthers the confusion
> >
> > If there are severe technical issues with shipping the openssl
> > executable with Yocto, then we should definitely think about it, but I
> > think this endeavor is worthwhile
> >
> > -Original Message-
> > From: Andre McCurdy 
> > Sent: Thursday, November 19, 2020 3:45 AM
> > To: Randy MacLeod 
> > Cc: Shachar Menashe ; st...@sakoman.com; Patches and
> > discussions about the oe-core layer
> > 
> > Subject: Re: [OE-core] YPBZ 14125: busybox wget: where to add openssl-bin 
> > dependency?
> >
> > [External email: Use caution with links and attachments]
> >
> > On Wed, Nov 18, 2020 at 2:30 PM Randy MacLeod  
> > wrote:
> > >
> > > Hi Shachar,
> > >
> > > On 2020-11-18 1:49 p.m., Shachar Menashe wrote:
> > > > About the busybox patch, I realized that Dunfell doesn't come with
> > > > the "openssl" binary built-in (only the library) but this fix will
> > > > actually requires having the openssl binary (busybox invokes the
> > > > openssl binary directly) Do you think it's reasonable to add it?
> > > > The library is already getting built, so I don't think it's a huge
> > > > deal to add the binary as well
> > >
> > > Hopefully someone opinionated about busybox will make a suggestion
> > > on how to resolve this bug.
> >
> > The meaning of the busybox FEATURE_WGET_HTTPS configure option is made 
> > quite clear in the associated help message. Claiming it's a "severe CVE" is 
> > not correct - it's working as designed.
> >
> >   https://git.busybox.net/busybox/tree/networking/wget.c#n49
> >
> > The behaviour may not be suitable for everyone, but it's the default config 
> > we've used for a long time. Users who need a wget which checks certificates 
> > should think about installing the full featured version (or try curl if 
> > wget's GPLv3 license isn't acceptable).

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144845): 
https://lists.openembedded.org/g/openembedded-core/message/144845
Mute This Topic: https://lists.openembedded.org/mt/78352776/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: 

[OE-core] [PATCH v2] go: Update to 1.15.5

2020-11-20 Thread Khem Raj
Define CXX_FOR_TARGET and CC_FOR_TARGET for target go
since we are cross building it, it helps in defining the compiler
for cgo on target

Disable CGO_LDFLAGS for go-runtime since it confuses the linker

Fixes
| Building std for target, linux/arm.
| go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1

Signed-off-by: Khem Raj 
---
v2: Fix go-runtime build

 meta/recipes-devtools/go/go-1.15.inc  | 4 ++--
 ...{go-binary-native_1.15.3.bb => go-binary-native_1.15.5.bb} | 4 ++--
 meta/recipes-devtools/go/go-runtime.inc   | 1 -
 meta/recipes-devtools/go/go_1.15.bb   | 2 ++
 4 files changed, 6 insertions(+), 5 deletions(-)
 rename meta/recipes-devtools/go/{go-binary-native_1.15.3.bb => 
go-binary-native_1.15.5.bb} (83%)

diff --git a/meta/recipes-devtools/go/go-1.15.inc 
b/meta/recipes-devtools/go/go-1.15.inc
index a35921c1f8..31e68d14ee 100644
--- a/meta/recipes-devtools/go/go-1.15.inc
+++ b/meta/recipes-devtools/go/go-1.15.inc
@@ -1,7 +1,7 @@
 require go-common.inc
 
 GO_BASEVERSION = "1.15"
-PV = "1.15.3"
+PV = "1.15.5"
 FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/go-${GO_BASEVERSION}:"
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707"
@@ -16,4 +16,4 @@ SRC_URI += "\
 file://0007-cmd-go-make-GOROOT-precious-by-default.patch \
 file://0008-use-GOBUILDMODE-to-set-buildmode.patch \
 "
-SRC_URI[main.sha256sum] = 
"896a602570e54c8cdfc2c1348abd4ffd1016758d0bd086ccd9787dbfc9b64888"
+SRC_URI[main.sha256sum] = 
"c1076b90cf94b73ebed62a81d802cd84d43d02dea8c07abdc922c57a071c84f1"
diff --git a/meta/recipes-devtools/go/go-binary-native_1.15.3.bb 
b/meta/recipes-devtools/go/go-binary-native_1.15.5.bb
similarity index 83%
rename from meta/recipes-devtools/go/go-binary-native_1.15.3.bb
rename to meta/recipes-devtools/go/go-binary-native_1.15.5.bb
index aeab91a80f..1fb11b0435 100644
--- a/meta/recipes-devtools/go/go-binary-native_1.15.3.bb
+++ b/meta/recipes-devtools/go/go-binary-native_1.15.5.bb
@@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707"
 PROVIDES = "go-native"
 
 SRC_URI = 
"https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE};
-SRC_URI[go_linux_amd64.sha256sum] = 
"010a88df924a81ec21b293b5da8f9b11c176d27c0ee3962dc1738d2352d3c02d"
-SRC_URI[go_linux_arm64.sha256sum] = 
"b8b88a87ada918ef5189fa5938ef4c46a4f61952a34317612aaac705f4275f80"
+SRC_URI[go_linux_amd64.sha256sum] = 
"9a58494e8da722c3aef248c9227b0e9c528c7318309827780f16220998180a0d"
+SRC_URI[go_linux_arm64.sha256sum] = 
"a72a0b036beb4193a0214bca3fca4c5d68a38a4ccf098c909f7ce8bf08567c48"
 
 UPSTREAM_CHECK_URI = "https://golang.org/dl/;
 UPSTREAM_CHECK_REGEX = "go(?P\d+(\.\d+)+)\.linux"
diff --git a/meta/recipes-devtools/go/go-runtime.inc 
b/meta/recipes-devtools/go/go-runtime.inc
index 21179a83a0..37a8c95203 100644
--- a/meta/recipes-devtools/go/go-runtime.inc
+++ b/meta/recipes-devtools/go/go-runtime.inc
@@ -5,7 +5,6 @@ PROVIDES = "virtual/${TARGET_PREFIX}go-runtime"
 export CGO_CFLAGS = "${CFLAGS}"
 export CGO_CPPFLAGS = "${CPPFLAGS}"
 export CGO_CXXFLAGS = "${CXXFLAGS}"
-export CGO_LDFLAGS = "${LDFLAGS}"
 export GOCACHE = "${B}/.cache"
 
 GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}"
diff --git a/meta/recipes-devtools/go/go_1.15.bb 
b/meta/recipes-devtools/go/go_1.15.bb
index cc4c3fe45d..d4812c0f0a 100644
--- a/meta/recipes-devtools/go/go_1.15.bb
+++ b/meta/recipes-devtools/go/go_1.15.bb
@@ -6,6 +6,8 @@ inherit linuxloader
 export GOBUILDMODE=""
 export CGO_ENABLED_riscv64 = ""
 export GO_LDSO = "${@get_linuxloader(d)}"
+export CC_FOR_TARGET = "gcc"
+export CXX_FOR_TARGET = "g++"
 
 # mips/rv64 doesn't support -buildmode=pie, so skip the QA checking for 
mips/riscv and its
 # variants.
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144844): 
https://lists.openembedded.org/g/openembedded-core/message/144844
Mute This Topic: https://lists.openembedded.org/mt/78385121/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-