Patch review April 17th
cover Patch review April 17th
This technically sync's up to current master.
Please review and have feedback back by Monday.
The following changes since commit 94fe80ce8609d62e51cc190595a9f0c2a4a5a89e:
xterm: upgrade 366 -> 367 (2021-04-08 13:13:29 -0700)
are available in the Git repository at:
git://git.openembedded.org/meta-openembedded-contrib stable/hardknott-nut
http://cgit.openembedded.org/meta-openembedded-contrib/log/?h=stable/hardknott-nut
Andreas Müller (2):
catfish: add python3-dbus to RDEPENDS
fluidsynth: upgrade 2.1.7 -> 2.2.0
Hongxu Jia (1):
debootstrap: 1.0.67 -> 1.0.123
Kamil Dziezyk (1):
bats: upgrade 1.1.0 -> 1.3.0
Khem Raj (4):
tbb: Fix build with musl
core-image-minimal-xfce: Use graphical.target as default
vnstat: Disable install parallism to fix a potential install race
open-vm-tools: Fix build with gcc 11
Leon Anavi (23):
python3-ruamel-yaml: Upgrade 0.17.2 -> 0.17.4
python3-croniter: Upgrade 1.0.10 -> 1.0.11
python3-decorator: Upgrade 5.0.5 -> 5.0.6
python3-grpcio-tools: Upgrade 1.36.1 -> 1.37.0
python3-speedtest-cli: Upgrade 2.1.2 -> 2.1.3
python3-python-vlc: Upgrade 3.0.11115 -> 3.0.12117
python3-robotframework: Upgrade 4.0 -> 4.0.1
python3-grpcio: Upgrade 1.36.1 -> 1.37.0
python3-cerberus: Upgrade 1.3.2 -> 1.3.3
python3-humanize: Upgrade 3.3.0 -> 3.4.0
python3-monotonic: Upgrade 1.5 -> 1.6
python3-sqlalchemy: Upgrade 1.4.6 -> 1.4.7
python3-typed-ast: Upgrade 1.4.2 -> 1.4.3 python3-backports-functools-lru-cache: Upgrade 1.6.3 -> 1.6.4
python3-xmlschema: Upgrade 1.6.0 -> 1.6.1
python3-pyroute2: Upgrade 0.5.17 -> 0.5.18
python3-sympy: Upgrade 1.7.1 -> 1.8
python3-pandas: Upgrade 1.2.3 -> 1.2.4
python3-humanize: Upgrade 3.4.0 -> 3.4.1
python3-decorator: Upgrade 5.0.6 -> 5.0.7
python3-colorlog: Upgrade 4.8.0 -> 5.0.1 python3-google-api-python-client: Upgrade 2.1.0 -> 2.2.0
python3-croniter: Upgrade 1.0.11 -> 1.0.12
Martin Jansa (2):
opencv: fetch wechat_qrcode files used by dnn PACKAGECONFIG
opencv: link sfm module with Glog
Naveen Saini (2):
tbb: upgrade 2020.3 -> 2021.2.0
ocl-icd: upgrade 2.2.14 -> 2.3.0
Randy MacLeod (1):
open-vm-tools: upgrade 11.0.1 -> 11.2.5
Ross Burton (1):
fwts: upgrade to 21.03.00
Stefan Ghinea (1):
hostapd: fix CVE-2021-30004
Vinícius Ossanes Aquino (2):
modemmanager: upgrade 1.14.10 -> 1.16.2
libqmi: upgrade 1.26.6 -> 1.28.2
Yi Fan Yu (1):
redis: upgrade 6.0.9 -> 6.2.1
persianpros (5):
PEP8 double aggressive E701, E70 and E502 PEP8 double aggressive E20 and E211
PEP8 double aggressive E22, E224, E241, E242 and E27 PEP8 double aggressive E301 ~ E306
PEP8 double aggressive W291 ~ W293 and W391
wangmy (1):
uftrace: Fix error on aarch64 when binutils update to 2.35.1
zhengruoqin (3):
python3-absl: upgrade 0.10.0 -> 0.12.0
python3-astroid: upgrade 2.5.2 -> 2.5.3
python3-bitarray: upgrade 1.9.1 -> 1.9.2
contrib/oe-stylize.py | 121 ++-
.../fluidsynth/fluidsynth.inc | 4 +-
...te_float-Allow-zero-pointer-for-left.patch | 26 +-
...-Add-resolv_compat.h-for-musl-builds.patch | 72 ++
....-Remove-references-to-deprecated-G_.patch | 94 ---
...0001-pollGtk-Drop-volatile-qualifier.patch | 32 -
...latile-qualifier-exposed-incorrectly.patch | 29 +
...1-utilBacktrace-Ignore-Warray-bounds.patch | 33 -
.../0002-add-include-sys-sysmacros.h.patch | 30 -
...ux-Consider-64bit-time_t-possibility.patch | 42 +-
...-test-for-feature-instead-of-platfor.patch | 24 +-
.../0009-Rename-poll.h-to-vm_poll.h.patch | 726 ++----------------
...11-Use-uintmax_t-for-handling-rlim_t.patch | 25 +-
...ools_11.0.1.bb => open-vm-tools_11.2.5.bb} | 14 +-
.../recipes-support/vnstat/vnstat_2.6.bb | 2 +
.../oeqa/selftest/cases/meta_oe_sources.py | 1 +
.../hostapd/hostapd/CVE-2021-30004.patch | 123 +++
.../hostapd/hostapd_2.9.bb | 1 +
.../{libqmi_1.26.6.bb => libqmi_1.28.2.bb} | 2 +-
...ager_1.14.10.bb => modemmanager_1.16.2.bb} | 2 +-
.../{ocl-icd_git.bb => ocl-icd_2.3.0.bb} | 3 +-
...t-to-override-usr-sbin-and-usr-share.patch | 41 +
...upport-to-override-usr-bin-arch-test.patch | 47 ++
.../debootstrap/debootstrap/devices.tar.gz | Bin 767 -> 0 bytes
.../debootstrap/debootstrap_1.0.123.bb | 23 +
.../debootstrap/debootstrap_1.0.67.bb | 35 -
...error-on-aarch64-with-binutils2.35.1.patch | 27 +
.../recipes-devtools/uftrace/uftrace_0.9.4.bb | 1 +
...06-Define-correct-gregs-for-RISCV32.patch} | 26 +-
.../recipes-extended/redis/redis/ilp32.patch | 29 -
...ile-to-use-environment-build-setting.patch | 66 +-
.../redis/redis/oe-use-libc-malloc.patch | 12 +-
.../redis/{redis_6.0.9.bb => redis_6.2.1.bb} | 5 +-
.../opencv/0001-sfm-link-with-Glog_LIBS.patch | 44 ++
.../recipes-support/opencv/opencv_4.5.2.bb | 5 +
...akeLists.txt-exclude-riscv64-riscv32.patch | 42 +
...1-Disable-use-of-_tpause-instruction.patch | 34 +
...nfo-is-glibc-specific-API-mark-it-so.patch | 27 +-
.../GLIBC-PREREQ-is-not-defined-on-musl.patch | 22 +-
.../tbb/tbb/cross-compile.patch | 35 -
.../tbb/tbb/improve-reproducibility.patch | 30 -
meta-oe/recipes-support/tbb/tbb/tbb.pc | 11 -
.../tbb/{tbb_2020.3.bb => tbb_2021.2.0.bb} | 53 +-
.../bats/{bats_1.1.0.bb => bats_1.3.0.bb} | 10 +-
...d-correct-printf-qualifier-for-off_t.patch | 20 +-
....h-instead-of-deprecated-sys-poll.h.patch} | 12 +-
...ch => 0003-Remove-Werror-from-build.patch} | 18 +-
...__SWORD_TYPE-if-not-defined-by-libc.patch} | 12 +-
...ZE.patch => 0005-Undefine-PAGE_SIZE.patch} | 10 +-
...t-to-fix-pointer-to-int-cast-issues.patch} | 37 +-
.../{fwts_20.07.00.bb => fwts_21.03.00.bb} | 18 +-
...-absl_0.10.0.bb => python3-absl_0.12.0.bb} | 4 +-
...roid_2.5.2.bb => python3-astroid_2.5.3.bb} | 2 +-
...n3-backports-functools-lru-cache_1.6.4.bb} | 2 +-
...ray_1.9.1.bb => python3-bitarray_1.9.2.bb} | 2 +-
...rus_1.3.2.bb => python3-cerberus_1.3.3.bb} | 14 +-
...log_4.8.0.bb => python3-colorlog_5.0.1.bb} | 4 +-
...r_1.0.10.bb => python3-croniter_1.0.12.bb} | 2 +-
...or_5.0.5.bb => python3-decorator_5.0.7.bb} | 2 +-
...python3-google-api-python-client_2.2.0.bb} | 2 +-
...36.1.bb => python3-grpcio-tools_1.37.0.bb} | 2 +-
.../python/python3-grpcio/boring_ssl.patch | 50 +-
...cio_1.36.1.bb => python3-grpcio_1.37.0.bb} | 2 +-
...ize_3.3.0.bb => python3-humanize_3.4.1.bb} | 3 +-
...otonic_1.5.bb => python3-monotonic_1.6.bb} | 10 +-
...andas_1.2.3.bb => python3-pandas_1.2.4.bb} | 2 +-
...2_0.5.17.bb => python3-pyroute2_0.5.18.bb} | 2 +-
...115.bb => python3-python-vlc_3.0.12117.bb} | 3 +-
...4.0.bb => python3-robotframework_4.0.1.bb} | 2 +-
....17.2.bb => python3-ruamel-yaml_0.17.4.bb} | 2 +-
....1.2.bb => python3-speedtest-cli_2.1.3.bb} | 3 +-
...y_1.4.6.bb => python3-sqlalchemy_1.4.7.bb} | 2 +-
...n3-sympy_1.7.1.bb => python3-sympy_1.8.bb} | 4 +-
...st_1.4.2.bb => python3-typed-ast_1.4.3.bb} | 2 +-
...ma_1.6.0.bb => python3-xmlschema_1.6.1.bb} | 2 +-
.../recipes-apps/catfish/catfish_4.16.0.bb | 2 +-
.../images/core-image-minimal-xfce.bb | 2 +
77 files changed, 969 insertions(+), 1318 deletions(-)
create mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Add-resolv_compat.h-for-musl-builds.patch
delete mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-GitHub-Issue-367.-Remove-references-to-deprecated-G_.patch
delete mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-pollGtk-Drop-volatile-qualifier.patch
create mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-pollGtk-Fix-volatile-qualifier-exposed-incorrectly.patch
delete mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-utilBacktrace-Ignore-Warray-bounds.patch
delete mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch
rename meta-networking/recipes-support/open-vm-tools/{open-vm-tools_11.0.1.bb => open-vm-tools_11.2.5.bb} (91%)
create mode 100644 meta-oe/recipes-connectivity/hostapd/hostapd/CVE-2021-30004.patch
rename meta-oe/recipes-connectivity/libqmi/{libqmi_1.26.6.bb => libqmi_1.28.2.bb} (90%)
rename meta-oe/recipes-connectivity/modemmanager/{modemmanager_1.14.10.bb => modemmanager_1.16.2.bb} (95%)
rename meta-oe/recipes-core/opencl/{ocl-icd_git.bb => ocl-icd_2.3.0.bb} (84%)
create mode 100644 meta-oe/recipes-devtools/debootstrap/debootstrap/0001-support-to-override-usr-sbin-and-usr-share.patch
create mode 100644 meta-oe/recipes-devtools/debootstrap/debootstrap/0002-support-to-override-usr-bin-arch-test.patch
delete mode 100644 meta-oe/recipes-devtools/debootstrap/debootstrap/devices.tar.gz
create mode 100644 meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.123.bb
delete mode 100644 meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.67.bb
create mode 100644 meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-with-binutils2.35.1.patch
rename meta-oe/recipes-extended/redis/redis/{riscv32.patch => 0006-Define-correct-gregs-for-RISCV32.patch} (61%)
delete mode 100644 meta-oe/recipes-extended/redis/redis/ilp32.patch
rename meta-oe/recipes-extended/redis/{redis_6.0.9.bb => redis_6.2.1.bb} (93%)
create mode 100644 meta-oe/recipes-support/opencv/opencv/0001-sfm-link-with-Glog_LIBS.patch
create mode 100644 meta-oe/recipes-support/tbb/tbb/0001-CMakeLists.txt-exclude-riscv64-riscv32.patch
create mode 100644 meta-oe/recipes-support/tbb/tbb/0001-Disable-use-of-_tpause-instruction.patch
delete mode 100644 meta-oe/recipes-support/tbb/tbb/cross-compile.patch
delete mode 100644 meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch
delete mode 100644 meta-oe/recipes-support/tbb/tbb/tbb.pc
rename meta-oe/recipes-support/tbb/{tbb_2020.3.bb => tbb_2021.2.0.bb} (59%)
rename meta-oe/recipes-test/bats/{bats_1.1.0.bb => bats_1.3.0.bb} (75%)
rename meta-oe/recipes-test/fwts/fwts/{0001-Include-poll.h-instead-of-deprecated-sys-poll.h.patch => 0002-Include-poll.h-instead-of-deprecated-sys-poll.h.patch} (81%)
rename meta-oe/recipes-test/fwts/fwts/{0001-Remove-Werror-from-build.patch => 0003-Remove-Werror-from-build.patch} (74%)
rename meta-oe/recipes-test/fwts/fwts/{0002-Define-__SWORD_TYPE-if-not-defined-by-libc.patch => 0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch} (79%)
rename meta-oe/recipes-test/fwts/fwts/{0003-Undefine-PAGE_SIZE.patch => 0005-Undefine-PAGE_SIZE.patch} (83%)
rename meta-oe/recipes-test/fwts/fwts/{0003-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch => 0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch} (64%)
rename meta-oe/recipes-test/fwts/{fwts_20.07.00.bb => fwts_21.03.00.bb} (65%)
rename meta-python/recipes-devtools/python/{python3-absl_0.10.0.bb => python3-absl_0.12.0.bb} (67%)
rename meta-python/recipes-devtools/python/{python3-astroid_2.5.2.bb => python3-astroid_2.5.3.bb} (89%)
rename meta-python/recipes-devtools/python/{python3-backports-functools-lru-cache_1.6.3.bb => python3-backports-functools-lru-cache_1.6.4.bb} (88%)
rename meta-python/recipes-devtools/python/{python3-bitarray_1.9.1.bb => python3-bitarray_1.9.2.bb} (77%)
rename meta-python/recipes-devtools/python/{python3-cerberus_1.3.2.bb => python3-cerberus_1.3.3.bb} (66%)
rename meta-python/recipes-devtools/python/{python3-colorlog_4.8.0.bb => python3-colorlog_5.0.1.bb} (54%)
rename meta-python/recipes-devtools/python/{python3-croniter_1.0.10.bb => python3-croniter_1.0.12.bb} (78%)
rename meta-python/recipes-devtools/python/{python3-decorator_5.0.5.bb => python3-decorator_5.0.7.bb} (86%)
rename meta-python/recipes-devtools/python/{python3-google-api-python-client_2.1.0.bb => python3-google-api-python-client_2.2.0.bb} (78%)
rename meta-python/recipes-devtools/python/{python3-grpcio-tools_1.36.1.bb => python3-grpcio-tools_1.37.0.bb} (85%)
rename meta-python/recipes-devtools/python/{python3-grpcio_1.36.1.bb => python3-grpcio_1.37.0.bb} (94%)
rename meta-python/recipes-devtools/python/{python3-humanize_3.3.0.bb => python3-humanize_3.4.1.bb} (75%)
rename meta-python/recipes-devtools/python/{python3-monotonic_1.5.bb => python3-monotonic_1.6.bb} (63%)
rename meta-python/recipes-devtools/python/{python3-pandas_1.2.3.bb => python3-pandas_1.2.4.bb} (88%)
rename meta-python/recipes-devtools/python/{python3-pyroute2_0.5.17.bb => python3-pyroute2_0.5.18.bb} (90%)
rename meta-python/recipes-devtools/python/{python3-python-vlc_3.0.11115.bb => python3-python-vlc_3.0.12117.bb} (65%)
rename meta-python/recipes-devtools/python/{python3-robotframework_4.0.bb => python3-robotframework_4.0.1.bb} (91%)
rename meta-python/recipes-devtools/python/{python3-ruamel-yaml_0.17.2.bb => python3-ruamel-yaml_0.17.4.bb} (83%)
rename meta-python/recipes-devtools/python/{python3-speedtest-cli_2.1.2.bb => python3-speedtest-cli_2.1.3.bb} (67%)
rename meta-python/recipes-devtools/python/{python3-sqlalchemy_1.4.6.bb => python3-sqlalchemy_1.4.7.bb} (85%)
rename meta-python/recipes-devtools/python/{python3-sympy_1.7.1.bb => python3-sympy_1.8.bb} (68%)
rename meta-python/recipes-devtools/python/{python3-typed-ast_1.4.2.bb => python3-typed-ast_1.4.3.bb} (78%)
rename meta-python/recipes-devtools/python/{python3-xmlschema_1.6.0.bb => python3-xmlschema_1.6.1.bb} (83%)Signature · 1 line
2.17.1
PATCH 1/50 tbb: upgrade 2020.3 -> 2021.2.0
From: Naveen Saini <[email protected]>
Switched to cmake build tool.
Rebased some patches due to directory re-structuring. Dropped patches, which are not required anymore.
---
...akeLists.txt-exclude-riscv64-riscv32.patch | 42 +++++++++++++++++++
...1-Disable-use-of-_tpause-instruction.patch | 34 +++++++++++++++
...nfo-is-glibc-specific-API-mark-it-so.patch | 27 ++++++------
.../GLIBC-PREREQ-is-not-defined-on-musl.patch | 22 ++++++----
.../tbb/tbb/cross-compile.patch | 35 ----------------
.../tbb/tbb/improve-reproducibility.patch | 30 -------------
meta-oe/recipes-support/tbb/tbb/tbb.pc | 11 -----
.../tbb/{tbb_2020.3.bb => tbb_2021.2.0.bb} | 37 ++++++----------
8 files changed, 116 insertions(+), 122 deletions(-)
create mode 100644 meta-oe/recipes-support/tbb/tbb/0001-CMakeLists.txt-exclude-riscv64-riscv32.patch
create mode 100644 meta-oe/recipes-support/tbb/tbb/0001-Disable-use-of-_tpause-instruction.patch
delete mode 100644 meta-oe/recipes-support/tbb/tbb/cross-compile.patch
delete mode 100644 meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch
delete mode 100644 meta-oe/recipes-support/tbb/tbb/tbb.pc
rename meta-oe/recipes-support/tbb/{tbb_2020.3.bb => tbb_2021.2.0.bb} (59%)meta-oe/recipes-support/tbb/tbb/0001-CMakeLists.txt-exclude-riscv64-riscv32.patch new file +42 -0
@@ -0,0 +1,42 @@ +From cb9e9b5b1ad05dd9de07a65ee7147cdb3433746a Mon Sep 17 00:00:00 2001 +From: Naveen Saini <[email protected]> +Date: Fri, 9 Apr 2021 15:41:35 +0800 +Subject: [PATCH] CMakeLists.txt: exclude riscv64 & riscv32 + +Upstream-Status: Pending + +Signed-off-by: Naveen Saini <[email protected]> +--- + src/tbb/CMakeLists.txt | 2 +- + src/tbbmalloc/CMakeLists.txt | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/tbb/CMakeLists.txt b/src/tbb/CMakeLists.txt +index a6edb6ad..4f261813 100644 +--- a/src/tbb/CMakeLists.txt ++++ b/src/tbb/CMakeLists.txt +@@ -55,7 +55,7 @@ target_compile_definitions(tbb + PRIVATE + __TBB_BUILD) + +-if (NOT ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(armv7-a|aarch64|mips|arm64)" OR ++if (NOT ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(armv7-a|aarch64|mips|arm64|riscv64|riscv32)" OR + "${CMAKE_OSX_ARCHITECTURES}" MATCHES "arm64" OR + WINDOWS_STORE OR + TBB_WINDOWS_DRIVER)) +diff --git a/src/tbbmalloc/CMakeLists.txt b/src/tbbmalloc/CMakeLists.txt +index de7ca7ea..31e854fe 100644 +--- a/src/tbbmalloc/CMakeLists.txt ++++ b/src/tbbmalloc/CMakeLists.txt +@@ -28,7 +28,7 @@ target_compile_definitions(tbbmalloc + PRIVATE + __TBBMALLOC_BUILD) + +-if (NOT ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(armv7-a|aarch64|mips|arm64)" OR ++if (NOT ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(armv7-a|aarch64|mips|arm64|riscv64|riscv32)" OR + "${CMAKE_OSX_ARCHITECTURES}" MATCHES "arm64" OR + WINDOWS_STORE OR + TBB_WINDOWS_DRIVER)) +-- +2.17.1 +
meta-oe/recipes-support/tbb/tbb/0001-Disable-use-of-_tpause-instruction.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 26bc87fdad9f29c00a5e37d6d9aed7f6dc7ff416 Mon Sep 17 00:00:00 2001 +From: Anuj Mittal <[email protected]> +Date: Mon, 12 Apr 2021 14:15:53 +0800 +Subject: [PATCH] Disable use of _tpause instruction + +It is assuming right now that WAITPKG instructions are available when using +gcc 11 or clang 12. It's possible that we are building for a +CPU where it's not available - in this case anything older than Alder Lake. + +Disable for now until the detection isn't fixed upstream. + +Upstream-Status: Inappropriate + +Signed-off-by: Anuj Mittal <[email protected]> +--- + src/tbb/scheduler_common.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/tbb/scheduler_common.h b/src/tbb/scheduler_common.h +index ee13dbf9..49052001 100644 +--- a/src/tbb/scheduler_common.h ++++ b/src/tbb/scheduler_common.h +@@ -219,7 +219,7 @@ inline void prolonged_pause_impl() { + #endif + + inline void prolonged_pause() { +-#if __TBB_WAITPKG_INTRINSICS_PRESENT && (_WIN32 || _WIN64 || __linux__) && (__TBB_x86_32 || __TBB_x86_64) ++#if 0 + if (governor::wait_package_enabled()) { + std::uint64_t time_stamp = machine_time_stamp(); + // _tpause function directs the processor to enter an implementation-dependent optimized state +-- +2.29.0 +
meta-oe/recipes-support/tbb/tbb/0001-mallinfo-is-glibc-specific-API-mark-it-so.patch +14 -13
@@ -1,22 +1,23 @@ -From 6b2b136caa68912d77ffe26143cd3da768b9ef80 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sat, 3 Jun 2017 08:39:37 -0700 +From 52c1586bff0ecb418ac21d6678f8963d70959f04 Mon Sep 17 00:00:00 2001 +From: Naveen Saini <[email protected]> +Date: Wed, 7 Apr 2021 11:14:13 +0800 Subject: [PATCH] mallinfo() is glibc specific API mark it so Helps compiling with musl -Signed-off-by: Khem Raj <[email protected]> ---- Upstream-Status: Pending - src/tbbmalloc/proxy.cpp | 2 ++ +Signed-off-by: Khem Raj <[email protected]> +Signed-off-by: Naveen Saini <[email protected]> +--- + src/tbbmalloc_proxy/proxy.cpp | 2 ++ 1 file changed, 2 insertions(+) -diff --git a/src/tbbmalloc/proxy.cpp b/src/tbbmalloc/proxy.cpp -index 5ef279d..06c4872 100644 ---- a/src/tbbmalloc/proxy.cpp -+++ b/src/tbbmalloc/proxy.cpp -@@ -185,6 +185,7 @@ int mallopt(int /*param*/, int /*value*/) __THROW +diff --git a/src/tbbmalloc_proxy/proxy.cpp b/src/tbbmalloc_proxy/proxy.cpp +index f9942bf1..fe0dad89 100644 +--- a/src/tbbmalloc_proxy/proxy.cpp ++++ b/src/tbbmalloc_proxy/proxy.cpp +@@ -253,6 +253,7 @@ int mallopt(int /*param*/, int /*value*/) __THROW return 1; }
@@ -24,7 +25,7 @@ index 5ef279d..06c4872 100644 struct mallinfo mallinfo() __THROW { struct mallinfo m; -@@ -192,6 +193,7 @@ struct mallinfo mallinfo() __THROW +@@ -260,6 +261,7 @@ struct mallinfo mallinfo() __THROW return m; }
@@ -33,5 +34,5 @@ index 5ef279d..06c4872 100644 #if __ANDROID__ // Android doesn't have malloc_usable_size, provide it to be compatible -- -2.13.0 +2.17.1
meta-oe/recipes-support/tbb/tbb/GLIBC-PREREQ-is-not-defined-on-musl.patch +13 -9
@@ -1,7 +1,7 @@ -From 27956d4c5fb615098231cebfb8eef11057639d3c Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine <[email protected]> -Date: Sun, 8 Dec 2019 18:14:38 +0100 -Subject: [PATCH] src/tbbmalloc/proxy.cpp: __GLIBC_PREREQ is not defined on +From 5cac8b5fffa4ebf5f0090456c9e0cbf43827242a Mon Sep 17 00:00:00 2001 +From: Naveen Saini <[email protected]> +Date: Wed, 7 Apr 2021 11:32:52 +0800 +Subject: [PATCH] src/tbbmalloc/proxy.cpp: __GLIBC_PREREQ is not defined on musl Do not call __GLIBC_PREREQ if it is not defined otherwise build will
@@ -12,14 +12,15 @@ Signed-off-by: Fabrice Fontaine <[email protected]> Upstream-Status: Submitted [https://github.com/oneapi-src/oneTBB/pull/203] Signed-off-by: Anuj Mittal <[email protected]> +Signed-off-by: Naveen Saini <[email protected]> --- - src/tbbmalloc/proxy.cpp | 6 ++++-- + src/tbbmalloc_proxy/proxy.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -diff --git a/src/tbbmalloc/proxy.cpp b/src/tbbmalloc/proxy.cpp -index d96ae7a0..709ae839 100644 ---- a/src/tbbmalloc/proxy.cpp -+++ b/src/tbbmalloc/proxy.cpp +diff --git a/src/tbbmalloc_proxy/proxy.cpp b/src/tbbmalloc_proxy/proxy.cpp +index fe0dad89..93e68049 100644 +--- a/src/tbbmalloc_proxy/proxy.cpp ++++ b/src/tbbmalloc_proxy/proxy.cpp @@ -24,7 +24,8 @@ // of aligned_alloc as required by new C++ standard, this makes it hard to // redefine aligned_alloc here. However, running on systems with new libc
@@ -40,3 +41,6 @@ index d96ae7a0..709ae839 100644 #endif // __linux__ && !__ANDROID__ #include "proxy.h" +-- +2.17.1 +
meta-oe/recipes-support/tbb/tbb/cross-compile.patch deleted +0 -35
@@ -1,35 +0,0 @@ -Author: Marcin Juszkiewicz <[email protected]> - -Upstream-Status: unsuitable ---- - -diff --git a/build/linux.clang.inc b/build/linux.clang.inc -index fe9b5c98..b0dcd68b 100644 ---- a/build/linux.clang.inc -+++ b/build/linux.clang.inc -@@ -12,8 +12,8 @@ - # See the License for the specific language governing permissions and - # limitations under the License. - --CPLUS ?= clang++ --CONLY ?= clang -+CPLUS ?= $(CXX) -+CONLY ?= $(CC) - COMPILE_ONLY = -c -MMD - PREPROC_ONLY = -E -x c++ - INCLUDE_KEY = -I -diff --git a/build/linux.gcc.inc b/build/linux.gcc.inc -index d820c15d..62c76afd 100644 ---- a/build/linux.gcc.inc -+++ b/build/linux.gcc.inc -@@ -12,8 +12,8 @@ - # See the License for the specific language governing permissions and - # limitations under the License. - --CPLUS ?= g++ --CONLY ?= gcc -+CPLUS ?= $(CXX) -+CONLY ?= $(CC) - COMPILE_ONLY = -c -MMD - PREPROC_ONLY = -E -x c++ - INCLUDE_KEY = -I
meta-oe/recipes-support/tbb/tbb/improve-reproducibility.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From f56eeb18a07df139864a99e1967d450cc5c8c0bb Mon Sep 17 00:00:00 2001 -From: Lee Chee Yang <[email protected]> -Date: Wed, 30 Sep 2020 16:18:35 +0800 -Subject: [PATCH] improve reproducibility - -remove the WORKDIR info from BUILD_COMMAND to improve reproducibility. -also use SOURCE_DATE_EPOCH as DATETIME wherever possible. - -Upstream-Status: Inappropriate [sed WORKDIR does not applies to upstream] -Signed-off-by: Lee Chee Yang <[email protected]> ---- - build/version_info_linux.sh | 4 +- - 1 file changed, 2 insertion(+), 2 deletion(-) - -diff --git a/build/version_info_linux.sh b/build/version_info_linux.sh -index 793cad11..ed6f4b2a 100644 ---- a/build/version_info_linux.sh -+++ b/build/version_info_linux.sh -@@ -25,6 +25,6 @@ echo '#N": BUILD_GCC'"\t\t"`g++ --version </dev/null 2>&1 | grep 'g++'`'" ENDL \ - echo '#N": BUILD_LIBC'"\t"`getconf GNU_LIBC_VERSION | grep glibc | sed -e 's/^glibc //'`'" ENDL \' - echo '#N": BUILD_LD'"\t\t"`ld -v 2>&1 | grep 'version'`'" ENDL \' - echo '#N": BUILD_TARGET'"\t$arch on $runtime"'" ENDL \' --echo '#N": BUILD_COMMAND'"\t"$*'" ENDL \' -+echo '#N": BUILD_COMMAND'"\t"$(echo $* | sed 's#'$WORKDIR'#/workdir#g')'" ENDL \' - echo "" --echo "#define __TBB_DATETIME \""`date -u`"\"" -+echo "#define __TBB_DATETIME \""`$(date -u -d "@$SOURCE_DATE_EPOCH" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" 2>/dev/null || date -u )`"\"" --- -2.25.1 -
meta-oe/recipes-support/tbb/tbb/tbb.pc deleted +0 -11
@@ -1,11 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: Threading Building Blocks -Description: Intel's parallelism library for C++ -URL: https://software.intel.com/en-us/tbb -Version: 2020.2 -Libs: -L${libdir} -ltbb -Cflags: -I${includedir}
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb renamed from meta-oe/recipes-support/tbb/tbb_2020.3.bb +13 -24
@@ -5,37 +5,26 @@ DESCRIPTION = "Parallelism library for C++ - runtime files \ and threading mechanism for performance and scalability." HOMEPAGE = "https://software.intel.com/en-us/tbb" LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" -BRANCH = "tbb_2020" -SRCREV = "eca91f16d7490a8abfdee652dadf457ec820cc37" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=86d3f3a95c324c9479bd8986968f4327" +BRANCH = "onetbb_2021" +SRCREV = "2dba2072869a189b9fdab3ffa431d3ea49059a19" SRC_URI = "git://github.com/oneapi-src/oneTBB.git;protocol=https;branch=${BRANCH} \ - file://cross-compile.patch \ - file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \ - file://GLIBC-PREREQ-is-not-defined-on-musl.patch \ - file://tbb.pc \ - file://improve-reproducibility.patch \ + file://0001-mallinfo-is-glibc-specific-API-mark-it-so.patch \ + file://GLIBC-PREREQ-is-not-defined-on-musl.patch \ + file://0001-CMakeLists.txt-exclude-riscv64-riscv32.patch \ + file://0001-Disable-use-of-_tpause-instruction.patch \ " S = "${WORKDIR}/git" -PE = "1" -COMPILER ?= "gcc" -COMPILER_toolchain-clang = "clang" +inherit cmake -do_compile() { - oe_runmake compiler=${COMPILER} arch=${HOST_ARCH} -} +# test build fails, error: 'mallinfo mallinfo()' is deprecated +EXTRA_OECMAKE += " \ + -DTBB_TEST=OFF \ + -DCMAKE_BUILD_TYPE=Release \ + " -do_install() { - install -d ${D}${includedir} ${D}${libdir} - rm ${S}/include/tbb/index.html -f - cp -R --no-dereference --preserve=mode,links -v ${S}/include/tbb ${D}${includedir} - for f in ${B}/build/linux_*_release/lib*.so* - do - install -Dm 0755 $f ${D}${libdir}/ - done - install -Dm 0644 ${WORKDIR}/tbb.pc ${D}${libdir}/pkgconfig/tbb.pc -} # fails with thumb enabled: # | arm-oe-linux-gnueabi-g++ -march=armv7-a -mthumb -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 -mcpu=cortex-a9 -D__ARM__ -D__LINUX_ARM_ARCH__=7 -funwind-tables -mvectorize-with-neon-quad -rdynamic --sysroot=/OE/sysroots/m14tv -c -MMD -DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD -fPIC -D__TBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp
Signature · 1 line
2.17.1
PATCH 2/50 tbb: Fix build with musl
In reply to Armin KusterFrom: Khem Raj <[email protected]>
Need to link libucontext on musl Additionally, mips also needs libatomic
--- meta-oe/recipes-support/tbb/tbb_2021.2.0.bb | 10 ++++++++++ 1 file changed, 10 insertions(+)
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb +10 -0
@@ -6,6 +6,9 @@ DESCRIPTION = "Parallelism library for C++ - runtime files \ HOMEPAGE = "https://software.intel.com/en-us/tbb" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=86d3f3a95c324c9479bd8986968f4327" + +DEPENDS_append_libc-musl = " libucontext" + BRANCH = "onetbb_2021" SRCREV = "2dba2072869a189b9fdab3ffa431d3ea49059a19" SRC_URI = "git://github.com/oneapi-src/oneTBB.git;protocol=https;branch=${BRANCH} \
@@ -33,3 +36,10 @@ EXTRA_OECMAKE += " \ # ... # | make[1]: *** [concurrent_queue.o] Error 1 ARM_INSTRUCTION_SET = "arm" + +ASNEEDED = "" + +LDFLAGS_append_mips = " -latomic" +LDFLAGS_append_mipsel = " -latomic" + +LDFLAGS_append_libc-musl = " -lucontext"
Signature · 1 line
2.17.1
PATCH 3/50 ocl-icd: upgrade 2.2.14 -> 2.3.0
In reply to Armin KusterFrom: Naveen Saini <[email protected]>
Release tag:
https://github.com/OCL-dev/ocl-icd/releases/tag/v2.3.0
---
.../recipes-core/opencl/{ocl-icd_git.bb => ocl-icd_2.3.0.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-oe/recipes-core/opencl/{ocl-icd_git.bb => ocl-icd_2.3.0.bb} (84%)meta-oe/recipes-core/opencl/ocl-icd_2.3.0.bb renamed from meta-oe/recipes-core/opencl/ocl-icd_git.bb +1 -2
@@ -7,8 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1238d5bccbb6bda30654e48dcc0a554b" SRC_URI = "git://github.com/OCL-dev/ocl-icd.git;protocol=https" -PV = "2.2.14+git${SRCPV}" -SRCREV = "109694ef2686fe25538c05f3c856912f8ef571a9" +SRCREV = "59c098b6b1f97a339e3e5308499aee6538ecea40" S = "${WORKDIR}/git"
Signature · 1 line
2.17.1
PATCH 4/50 python3-ruamel-yaml: Upgrade 0.17.2 -> 0.17.4
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 0.17.4:
- prevent (empty) comments from throwing assertion error
- fix for issue 382 caused by an error in a format string
- allow expansion of aliases by setting ``yaml.composer.return_alias = lambda s: copy.deepcopy(s)``
---
...hon3-ruamel-yaml_0.17.2.bb => python3-ruamel-yaml_0.17.4.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-ruamel-yaml_0.17.2.bb => python3-ruamel-yaml_0.17.4.bb} (83%)meta-python/recipes-devtools/python/python3-ruamel-yaml_0.17.4.bb renamed from meta-python/recipes-devtools/python/python3-ruamel-yaml_0.17.2.bb +1 -1
@@ -10,7 +10,7 @@ inherit pypi setuptools3 BBCLASSEXTEND = "native nativesdk" -SRC_URI[sha256sum] = "8f1e15421668b9edf30ed02899f5f81aff9808a4271935776f61a99a569a13da" +SRC_URI[sha256sum] = "44bc6b54fddd45e4bc0619059196679f9e8b79c027f4131bb072e6a22f4d5e28" do_install_prepend() { export RUAMEL_NO_PIP_INSTALL_CHECK=1
Signature · 1 line
2.17.1
PATCH 5/50 python3-croniter: Upgrade 1.0.10 -> 1.0.11
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 1.0.11:
- fix bug: bad case:0 6 30 3 *
- Add support for L in the day_of_week component. This enable expressions like * * * * L4, which means last Thursday of the month.
- Create CroniterUnsupportedSyntaxError exception for situations where CRON syntax may be valid but some combinations of features is not supported. Currently, this is used when the day_of_week component has a combination of literal values and nth/last syntax at the same time.
For example, 0 0 * * 1,L6 or 0 0 * * 15,sat#1 will both raise this exception because of mixing literal days of the week with nth-weekday or last-weekday syntax. This may impact existing cron expressions in prior releases, because 0 0 * * 15,sat#1 was previously allowed but incorrectly handled.
- Update croniter_range() to allow an alternate croniter class to be used. Helpful when using a custom class derived from croniter.
---
.../{python3-croniter_1.0.10.bb => python3-croniter_1.0.11.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-croniter_1.0.10.bb => python3-croniter_1.0.11.bb} (78%)meta-python/recipes-devtools/python/python3-croniter_1.0.11.bb renamed from meta-python/recipes-devtools/python/python3-croniter_1.0.10.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=b8ee59850b882cbf623188489ea748e2" PYPI_PACKAGE = "croniter" -SRC_URI[sha256sum] = "364c48e393060295c3161588a6556d5c890b5c34299973c393adbe4488ca1ecb" +SRC_URI[sha256sum] = "cd89bcbed4d79f56bbf2c9415c2bbbfd09fadc8a59dbae3898fbca5bab34103d" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 6/50 python3-decorator: Upgrade 5.0.5 -> 5.0.6
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 5.0.6:
- The decorator module was not copying the module attribute anymore
---
.../{python3-decorator_5.0.5.bb => python3-decorator_5.0.6.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-decorator_5.0.5.bb => python3-decorator_5.0.6.bb} (86%)meta-python/recipes-devtools/python/python3-decorator_5.0.6.bb renamed from meta-python/recipes-devtools/python/python3-decorator_5.0.5.bb +1 -1
@@ -9,7 +9,7 @@ decorator, just because you can." LICENSE = "BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=be2fd2007972bf96c08af3293d728b22" -SRC_URI[sha256sum] = "acda948ffcfe4bd0c4a57834b74ad968b91925b8201b740ca9d46fb8c5c618ce" +SRC_URI[sha256sum] = "f2e71efb39412bfd23d878e896a51b07744f2e2250b2e87d158e76828c5ae202" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 7/50 python3-grpcio-tools: Upgrade 1.36.1 -> 1.37.0
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 1.37.0:
- use boringssl asm optimizations in aarch64 wheel source build.
- Clarify Guarantees about grpc.Future Interface.
- Use crosscompilation to build python armv7 wheels.
- [Aio] Add time_remaining method to ServicerContext.
- Standardize all environment variable boolean configuration in python's setup.py.
- Crosscompile python aarch64 wheels with dockcross.
- Fix Signal Safety Issue.
---
...n3-grpcio-tools_1.36.1.bb => python3-grpcio-tools_1.37.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-grpcio-tools_1.36.1.bb => python3-grpcio-tools_1.37.0.bb} (85%)meta-python/recipes-devtools/python/python3-grpcio-tools_1.37.0.bb renamed from meta-python/recipes-devtools/python/python3-grpcio-tools_1.36.1.bb +1 -1
@@ -11,7 +11,7 @@ DEPENDS += "${PYTHON_PN}-grpcio" SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch" -SRC_URI[sha256sum] = "80ef584f7b917f575e4b8f2ec59cd4a4d98c2046e801a735f3136b05742a36a6" +SRC_URI[sha256sum] = "3ec510c1b6bfc32effc639acf9a055e72dab7a7b6757bf72f2132790d6a7cf1c" RDEPENDS_${PN} = "${PYTHON_PN}-grpcio"
Signature · 1 line
2.17.1
PATCH 8/50 python3-speedtest-cli: Upgrade 2.1.2 -> 2.1.3
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 2.1.3:
- Address issue where a test server may return an HTTP error during upload or download
- Address issue where ignore_ids may be empty or have empty values
---
...3-speedtest-cli_2.1.2.bb => python3-speedtest-cli_2.1.3.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-speedtest-cli_2.1.2.bb => python3-speedtest-cli_2.1.3.bb} (67%)meta-python/recipes-devtools/python/python3-speedtest-cli_2.1.3.bb renamed from meta-python/recipes-devtools/python/python3-speedtest-cli_2.1.2.bb +1 -2
@@ -3,8 +3,7 @@ HOMEPAGE = "https://github.com/sivel/speedtest-cli" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" -SRC_URI[md5sum] = "543d38f8939e1716641cc7c00169ca03" -SRC_URI[sha256sum] = "cf1d386222f94c324e3125ba9a0d187e46d4a13dca08c023bdb9a23096be2e54" +SRC_URI[sha256sum] = "5e2773233cedb5fa3d8120eb7f97bcc4974b5221b254d33ff16e2f1d413d90f0" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 9/50 python3-python-vlc: Upgrade 3.0.11115 -> 3.0.12117
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 3.0.12117:
- adapt to new libvlc_media_list_new API
- re-introduce MediaThumbnailRequest definition
- implement generation for struct wrapping
---
...python-vlc_3.0.11115.bb => python3-python-vlc_3.0.12117.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-python-vlc_3.0.11115.bb => python3-python-vlc_3.0.12117.bb} (65%)meta-python/recipes-devtools/python/python3-python-vlc_3.0.12117.bb renamed from meta-python/recipes-devtools/python/python3-python-vlc_3.0.11115.bb +1 -2
@@ -3,7 +3,6 @@ HOMEPAGE = "wiki.videolan.org/PythonBinding" LICENSE = "LGPL-2.0" LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" -SRC_URI[md5sum] = "422fd025294af2e55dfdcf9bc7d7dbac" -SRC_URI[sha256sum] = "a4d3bdddfce84a8fb1b2d5447193a0239c55c16ca246e5194d48efd59c4e236b" +SRC_URI[sha256sum] = "dd512f8438c1bba032fe9d22a7f8f98423a537992141ce2d1b28e29aff30381d" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 10/50 python3-robotframework: Upgrade 4.0 -> 4.0.1
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 4.0.1. It is the first bug fix release in the Robot Framework 4.0.x series. It fixes several severe and not so severe issues reported since Robot Framework 4.0 was released.
---
...n3-robotframework_4.0.bb => python3-robotframework_4.0.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-robotframework_4.0.bb => python3-robotframework_4.0.1.bb} (91%)meta-python/recipes-devtools/python/python3-robotframework_4.0.1.bb renamed from meta-python/recipes-devtools/python/python3-robotframework_4.0.bb +1 -1
@@ -13,7 +13,7 @@ inherit pypi setuptools3 PYPI_PACKAGE_EXT = "zip" -SRC_URI[sha256sum] = "a02a6f4af3b0830e4396058694c333cb63eb47f50acf6723be34f0f7a4d73ad7" +SRC_URI[sha256sum] = "9fa609ceb78f67b1476edce8a7011b16bf3ab41c0fb8c211de6c99955eaf9fde" RDEPENDS_${PN} += " \ ${PYTHON_PN}-shell \
Signature · 1 line
2.17.1
PATCH 11/50 python3-grpcio: Upgrade 1.36.1 -> 1.37.0
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 1.37.0:
- Use boringssl asm optimizations in aarch64 wheel source build.
- Clarify Guarantees about grpc.Future Interface.
- Use crosscompilation to build python armv7 wheels.
- [Aio] Add time_remaining method to ServicerContext.
- Standardize all environment variable boolean configuration in python's setup.py.
- Crosscompile python aarch64 wheels with dockcross.
- Fix Signal Safety Issue.
---
.../python/python3-grpcio/boring_ssl.patch | 50 ++++++++++++-------
...cio_1.36.1.bb => python3-grpcio_1.37.0.bb} | 2 +-
2 files changed, 33 insertions(+), 19 deletions(-)
rename meta-python/recipes-devtools/python/{python3-grpcio_1.36.1.bb => python3-grpcio_1.37.0.bb} (94%)meta-python/recipes-devtools/python/python3-grpcio/boring_ssl.patch +32 -18
@@ -1,36 +1,50 @@ +From f71b32eb8a5c173fc5733847437b9485d75bb2e5 Mon Sep 17 00:00:00 2001 +From: Leon Anavi <[email protected]> +Date: Fri, 9 Apr 2021 14:06:36 +0300 +Subject: [PATCH] setup.py: Fix determining target platform + Do not poke at the build machine to determine target platform or architecture pass it from environment instead for cross compiling to work Upstream-Status: Inappropriate [OE-Specific] Signed-off-by: Khem Raj <[email protected]> +Signed-off-by: Leon Anavi <[email protected]> +--- + setup.py | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +diff --git a/setup.py b/setup.py +index c93d419f32..71a944a9d0 100644 --- a/setup.py +++ b/setup.py -@@ -109,6 +109,8 @@ CLASSIFIERS = [ - BUILD_WITH_BORING_SSL_ASM = os.environ.get('GRPC_BUILD_WITH_BORING_SSL_ASM', - True) +@@ -116,6 +116,9 @@ def _env_bool_value(env_name, default): + BUILD_WITH_BORING_SSL_ASM = _env_bool_value('GRPC_BUILD_WITH_BORING_SSL_ASM', + 'True') +BORING_SSL_PLATFORM = os.environ.get('GRPC_BORING_SSL_PLATFORM', -+ True) - # Environment variable to determine whether or not the Cython extension should - # *use* Cython or use the generated C files. Note that this requires the C files - # to have been generated by building first *with* Cython support. Even if this -@@ -306,15 +308,15 @@ asm_key = '' - if BUILD_WITH_BORING_SSL_ASM and not BUILD_WITH_SYSTEM_OPENSSL: ++ 'True') ++ + # Export this environment variable to override the platform variant that will + # be chosen for boringssl assembly optimizations. This option is useful when + # crosscompiling and the host platform as obtained by distutils.utils.get_platform() +@@ -336,13 +339,13 @@ if BUILD_WITH_BORING_SSL_ASM and not BUILD_WITH_SYSTEM_OPENSSL: LINUX_X86_64 = 'linux-x86_64' LINUX_ARM = 'linux-arm' -- if LINUX_X86_64 == util.get_platform(): + LINUX_AARCH64 = 'linux-aarch64' +- if LINUX_X86_64 == boringssl_asm_platform: + if LINUX_X86_64 == BORING_SSL_PLATFORM: asm_key = 'crypto_linux_x86_64' -- elif LINUX_ARM == util.get_platform(): +- elif LINUX_ARM == boringssl_asm_platform: + elif LINUX_ARM == BORING_SSL_PLATFORM: asm_key = 'crypto_linux_arm' -- elif "mac" in util.get_platform() and "x86_64" in util.get_platform(): -+ elif "mac" in BORING_SSL_PLATFORM and "x86_64" in BORING_SSL_PLATFORM: +- elif LINUX_AARCH64 == boringssl_asm_platform: ++ elif LINUX_AARCH64 == BORING_SSL_PLATFORM: + asm_key = 'crypto_linux_aarch64' +- elif "mac" in boringssl_asm_platform and "x86_64" in boringssl_asm_platform: ++ elif "mac" in boringssl_asm_platform and "x86_64" in BORING_SSL_PLATFORM: asm_key = 'crypto_mac_x86_64' else: print("ASM Builds for BoringSSL currently not supported on:", -- util.get_platform()) -+ BORING_SSL_PLATFORM) - if asm_key: - asm_files = grpc_core_dependencies.ASM_SOURCE_FILES[asm_key] - else: +-- +2.17.1 +
meta-python/recipes-devtools/python/python3-grpcio_1.37.0.bb renamed from meta-python/recipes-devtools/python/python3-grpcio_1.36.1.bb +1 -1
@@ -13,7 +13,7 @@ SRC_URI_append_class-target = " file://ppc-boringssl-support.patch \ file://mips_bigendian.patch \ file://0001-absl-always-use-asm-sgidefs.h.patch \ " -SRC_URI[sha256sum] = "a66ea59b20f3669df0f0c6a3bd57b985e5b2d1dcf3e4c29819bb8dc232d0fd38" +SRC_URI[sha256sum] = "b3ce16aa91569760fdabd77ca901b2288152eb16941d28edd9a3a75a0c4a8a85" RDEPENDS_${PN} = "${PYTHON_PN}-protobuf \ ${PYTHON_PN}-setuptools \
Signature · 1 line
2.17.1
PATCH 12/50 python3-absl: upgrade 0.10.0 -> 0.12.0
In reply to Armin KusterFrom: zhengruoqin <[email protected]>
---
.../python/{python3-absl_0.10.0.bb => python3-absl_0.12.0.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-absl_0.10.0.bb => python3-absl_0.12.0.bb} (67%)meta-python/recipes-devtools/python/python3-absl_0.12.0.bb renamed from meta-python/recipes-devtools/python/python3-absl_0.10.0.bb +2 -2
@@ -4,8 +4,8 @@ SECTION = "devel/python" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" -SRC_URI[md5sum] = "9cb38ddf7a2f000e2c92e5d9dfa36ffa" -SRC_URI[sha256sum] = "b20f504a7871a580be5268a18fbad48af4203df5d33dbc9272426cb806245a45" +SRC_URI[md5sum] = "cfc383e2c647698666a7c5d8ef83a675" +SRC_URI[sha256sum] = "b44f68984a5ceb2607d135a615999b93924c771238a63920d17d3387b0d229d5" PYPI_PACKAGE = "absl-py"
Signature · 1 line
2.17.1
PATCH 13/50 python3-astroid: upgrade 2.5.2 -> 2.5.3
In reply to Armin KusterFrom: zhengruoqin <[email protected]>
What's New in astroid 2.5.3?
============================
Release Date: 2021-04-10
* Takes into account the fact that subscript inferring for a ClassDef may involve __class_getitem__ method
* Reworks the collections and typing brain so that pylints acceptance tests are fine.
Closes PyCQA/pylint#4206
* Use ``inference_tip`` for ``typing.TypedDict`` brain.
* Fix mro for classes that inherit from typing.Generic
* Add inference tip for typing.Generic and typing.Annotated with ``__class_getitem__``
Closes PyCQA/pylint#2822
---
.../{python3-astroid_2.5.2.bb => python3-astroid_2.5.3.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-astroid_2.5.2.bb => python3-astroid_2.5.3.bb} (89%)meta-python/recipes-devtools/python/python3-astroid_2.5.3.bb renamed from meta-python/recipes-devtools/python/python3-astroid_2.5.2.bb +1 -1
@@ -4,7 +4,7 @@ SECTION = "devel/python" LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" -SRC_URI[sha256sum] = "6b0ed1af831570e500e2437625979eaa3b36011f66ddfc4ce930128610258ca9" +SRC_URI[sha256sum] = "ad63b8552c70939568966811a088ef0bc880f99a24a00834abd0e3681b514f91" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 14/50 python3-bitarray: upgrade 1.9.1 -> 1.9.2
In reply to Armin KusterFrom: zhengruoqin <[email protected]>
---
.../{python3-bitarray_1.9.1.bb => python3-bitarray_1.9.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-bitarray_1.9.1.bb => python3-bitarray_1.9.2.bb} (77%)meta-python/recipes-devtools/python/python3-bitarray_1.9.2.bb renamed from meta-python/recipes-devtools/python/python3-bitarray_1.9.1.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/ilanschnell/bitarray" LICENSE = "PSF" LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=2ad702cdcd49e8d2ac01d7e7d0810d2d" -SRC_URI[sha256sum] = "ec99acc1b18f99b7e9d0b77766b99f80b3c42d4e83306334deef9745b41a2079" +SRC_URI[sha256sum] = "d7a49d21ae04c5af195023b140800186ebf208e3a4fc5b21a1389531cb7a7170" inherit setuptools3 pypi
Signature · 1 line
2.17.1
PATCH 15/50 python3-cerberus: Upgrade 1.3.2 -> 1.3.3
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Minor code refactoring of the recipe and upgrade to release 1.3.3:
- Classes can be used as constraint for the type rule
- The abstract base classes of the standard library's collections.abc module are available as named types for the type rule
- Generic type aliases from the :mod:typing module can be used as constraints for the type rule, including parametrized ones a.k.a. compound types
- Support for Python 3.5 is removed.
---
...cerberus_1.3.2.bb => python3-cerberus_1.3.3.bb} | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
rename meta-python/recipes-devtools/python/{python3-cerberus_1.3.2.bb => python3-cerberus_1.3.3.bb} (66%)meta-python/recipes-devtools/python/python3-cerberus_1.3.3.bb renamed from meta-python/recipes-devtools/python/python3-cerberus_1.3.2.bb +7 -7
@@ -1,11 +1,11 @@ -# The PyPI package uses a capital letter so we have to specify this explicitly -PYPI_PACKAGE = "Cerberus" - -inherit pypi setuptools3 - SUMMARY = "Lightweight, extensible schema and data validation tool for Python dictionaries." +HOMEPAGE = "http://docs.python-cerberus.org/" +SECTION = "devel/python" LICENSE = "ISC" LIC_FILES_CHKSUM = "file://LICENSE;md5=48f8e9432d0dac5e0e7a18211a0bacdb" -SRC_URI[md5sum] = "6e648b38b468617a06745d1e8a96c848" -SRC_URI[sha256sum] = "302e6694f206dd85cb63f13fd5025b31ab6d38c99c50c6d769f8fa0b0f299589" +# The PyPI package uses a capital letter so we have to specify this explicitly +PYPI_PACKAGE = "Cerberus" +inherit pypi setuptools3 + +SRC_URI[sha256sum] = "eec10585c33044fb7c69650bc5b68018dac0443753337e2b07684ee0f3c83329"
Signature · 1 line
2.17.1
PATCH 16/50 python3-humanize: Upgrade 3.3.0 -> 3.4.0
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 3.4.0:
- Add Catalan translation
- Add documentation and release notes to project_urls
- Fix tests for Python 3.10
---
.../{python3-humanize_3.3.0.bb => python3-humanize_3.4.0.bb} | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-humanize_3.3.0.bb => python3-humanize_3.4.0.bb} (75%)meta-python/recipes-devtools/python/python3-humanize_3.4.0.bb renamed from meta-python/recipes-devtools/python/python3-humanize_3.3.0.bb +2 -1
@@ -1,10 +1,11 @@ SUMMARY = "Python humanize utilities" HOMEPAGE = "http://github.com/jmoiron/humanize" +SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENCE;md5=4ecc42519e84f6f3e23529464df7bd1d" -SRC_URI[sha256sum] = "8bf7abd672b867f38b8b04593829b85b9b6199a61ef6586bf3629cc06458ff35" +SRC_URI[sha256sum] = "096b9ae6d1d56321d3d81f17117c2068179d7b4f7f73ba4baf302726923b48ec" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 17/50 python3-monotonic: Upgrade 1.5 -> 1.6
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 1.6:
- Fix order for converting mach absolute time
Get the source code from the git repository because an archive is not available in PyPI for this release.
---
...thon3-monotonic_1.5.bb => python3-monotonic_1.6.bb} | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
rename meta-python/recipes-devtools/python/{python3-monotonic_1.5.bb => python3-monotonic_1.6.bb} (63%)meta-python/recipes-devtools/python/python3-monotonic_1.6.bb renamed from meta-python/recipes-devtools/python/python3-monotonic_1.5.bb +7 -3
@@ -1,9 +1,13 @@ SUMMARY = "This module provides a monotonic() function which returns the value (in fractional seconds) of a clock which never goes backwards." HOMEPAGE = "https://github.com/atdt/monotonic" +SECTION = "devel/python" + LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314" -SRC_URI[md5sum] = "9f81cb0e5966479754453dea2b6822f4" -SRC_URI[sha256sum] = "23953d55076df038541e648a53676fb24980f7a1be290cdda21300b3bc21dfb0" +SRCREV = "80681f6604e136e513550342f977edb98f5fc5ad" +SRC_URI = "git://github.com/atdt/monotonic.git" + +S = "${WORKDIR}/git" -inherit pypi setuptools3 +inherit setuptools3
Signature · 1 line
2.17.1
PATCH 18/50 python3-sqlalchemy: Upgrade 1.4.6 -> 1.4.7
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 1.4.7:
orm:
- Fixed regression where the subqueryload() loader strategy would fail to correctly accommodate sub-options, such as a defer() option on a column, if the “path” of the subqueryload were more than one level deep.
- Fixed regression where the merge_frozen_result() function relied upon by the dogpile.caching example was not included in tests and began failing due to incorrect internal arguments.
- Fixed critical regression where the Session could fail to "autobegin" a new transaction when a flush occurred without an existing transaction in place, implicitly placing the Session into legacy autocommit mode which commit the transaction. The Session now has a check that will prevent this condition from occurring, in addition to repairing the flush issue.
- Fixed regression where the ORM compilation scheme would assume the function name of a hybrid property would be the same as the attribute name in such a way that an AttributeError would be raised, when it would attempt to determine the correct name for each element in a result tuple.
- Fixed critical regression caused by the new feature added as part of #1763, eager loaders are invoked on unexpire operations. The new feature makes use of the "immediateload" eager loader strategy as a substitute for a collection loading strategy, which unlike the other “post-load” strategies was not accommodating for recursive invocations between mutually-dependent relationships, leading to recursion overflow errors.
engine:
- Fixed up the behavior of the Row object when dictionary access is used upon it, meaning converting to a dict via dict(row) or accessing members using strings or other objects i.e. row["some_key"] works as it would with a dictionary, rather than raising TypeError as would be the case with a tuple, whether or not the C extensions are in place
sql:
- Enhanced the "expanding" feature used for ColumnOperators.in_() operations to infer the type of expression from the right hand list of elements, if the left hand side does not have any explicit type set up. This allows the expression to support stringification among other things. In 1.3, "expanding" was not automatically used for ColumnOperators.in_() expressions, so in that sense this change fixes a behavioral regression.
- Fixed the "stringify" compiler to support a basic stringification of a "multirow" INSERT statement, i.e. one with multiple tuples following the VALUES keyword.
schema:
- Fixed regression where usage of a token in the Connection.execution_options.schema_translate_map dictionary which contained special characters such as braces would fail to be substituted properly. Use of square bracket characters [] is now explicitly disallowed as these are used as a delimiter character in the current implementation.
mypy:
- Fixed issue in Mypy plugin where the plugin wasn't inferring the correct type for columns of subclasses that don’t directly descend from TypeEngine, in particular that of TypeDecorator and UserDefinedType.
misc:
- Added a new flag to DefaultDialect called supports_schema; third party dialects may set this flag to True to enable SQLAlchemy's schema-level tests when running the test suite for a third party dialect.
---
...{python3-sqlalchemy_1.4.6.bb => python3-sqlalchemy_1.4.7.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-sqlalchemy_1.4.6.bb => python3-sqlalchemy_1.4.7.bb} (85%)meta-python/recipes-devtools/python/python3-sqlalchemy_1.4.7.bb renamed from meta-python/recipes-devtools/python/python3-sqlalchemy_1.4.6.bb +1 -1
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.sqlalchemy.org/" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=3359ed561ac16aaa25b6c6eff84df595" -SRC_URI[sha256sum] = "193c3ca465fbc68de071995a461ab535466f041089d372ee6a6f0aae7b9307e6" +SRC_URI[sha256sum] = "84115f97d88c8ccf26db81b7997c5f5de9ae360e0785ef859d0987794495f0a9" PYPI_PACKAGE = "SQLAlchemy" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 19/50 python3-typed-ast: Upgrade 1.4.2 -> 1.4.3
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 1.4.3:
- Fix compilation on python 3.10
- Add Python 3.10 classifier
---
.../{python3-typed-ast_1.4.2.bb => python3-typed-ast_1.4.3.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-typed-ast_1.4.2.bb => python3-typed-ast_1.4.3.bb} (78%)meta-python/recipes-devtools/python/python3-typed-ast_1.4.3.bb renamed from meta-python/recipes-devtools/python/python3-typed-ast_1.4.2.bb +1 -1
@@ -7,6 +7,6 @@ PYPI_PACKAGE = "typed_ast" inherit pypi setuptools3 -SRC_URI[sha256sum] = "9fc0b3cb5d1720e7141d103cf4819aea239f7d136acf9ee4a69b047b7986175a" +SRC_URI[sha256sum] = "fb1bbeac803adea29cedd70781399c99138358c26d05fcbd23c13016b7f5ec65" BBCLASSEXTEND = "native"
Signature · 1 line
2.17.1
PATCH 20/50 python3-backports-functools-lru-cache: Upgrade 1.6.3 -> 1.6.4
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 1.6.4:
- For test dependencies, when indicating Python 3, use >=3 instead of >3
---
..._1.6.3.bb => python3-backports-functools-lru-cache_1.6.4.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-backports-functools-lru-cache_1.6.3.bb => python3-backports-functools-lru-cache_1.6.4.bb} (88%)meta-python/recipes-devtools/python/python3-backports-functools-lru-cache_1.6.4.bb renamed from meta-python/recipes-devtools/python/python3-backports-functools-lru-cache_1.6.3.bb +1 -1
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6" PYPI_PACKAGE = "backports.functools_lru_cache" -SRC_URI[sha256sum] = "d84e126e2a29e4fde8931ff8131240bbf30a0e7dbcc3897a8dbd8ea5ac11419c" +SRC_URI[sha256sum] = "d5ed2169378b67d3c545e5600d363a923b09c456dab1593914935a68ad478271" DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
Signature · 1 line
2.17.1
PATCH 21/50 python3-xmlschema: Upgrade 1.6.0 -> 1.6.1
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 1.6.1:
- Add multi-source initialization and add_schema() to schema class
- Add bytes strings to accepted XML sources
---
.../{python3-xmlschema_1.6.0.bb => python3-xmlschema_1.6.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-xmlschema_1.6.0.bb => python3-xmlschema_1.6.1.bb} (83%)meta-python/recipes-devtools/python/python3-xmlschema_1.6.1.bb renamed from meta-python/recipes-devtools/python/python3-xmlschema_1.6.0.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/sissaschool/xmlschema" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=47489cb18c469474afeb259ed1d4832f" -SRC_URI[sha256sum] = "e951efc5ab3f251973f92cba7a7026adb32a4cd844d3425133d23eb269de4f8f" +SRC_URI[sha256sum] = "d02b82bb4fce3af09495b85e6ada5ce0cfdaa865b09b28ecc0f5ab81fad7e328" PYPI_PACKAGE = "xmlschema" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 22/50 modemmanager: upgrade 1.14.10 -> 1.16.2
In reply to Armin KusterFrom: Vinícius Ossanes Aquino <[email protected]>
---
.../{modemmanager_1.14.10.bb => modemmanager_1.16.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-connectivity/modemmanager/{modemmanager_1.14.10.bb => modemmanager_1.16.2.bb} (95%)meta-oe/recipes-connectivity/modemmanager/modemmanager_1.16.2.bb renamed from meta-oe/recipes-connectivity/modemmanager/modemmanager_1.14.10.bb +1 -1
@@ -12,7 +12,7 @@ inherit gnomebase gettext systemd vala gobject-introspection bash-completion DEPENDS = "glib-2.0 libgudev intltool-native libxslt-native" SRC_URI = "http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz" -SRC_URI[sha256sum] = "4ea60b375a761e17e7bb095bca894579ed0e8e33b273dc698b5cbe03947f357f" +SRC_URI[sha256sum] = "efa9a963499e0885f3f163096d433334143c4937545134ecd682e0157fa591e3" S = "${WORKDIR}/ModemManager-${PV}" PACKAGECONFIG ??= "mbim qmi \
Signature · 1 line
2.17.1
PATCH 23/50 libqmi: upgrade 1.26.6 -> 1.28.2
In reply to Armin KusterFrom: Vinícius Ossanes Aquino <[email protected]>
---
.../libqmi/{libqmi_1.26.6.bb => libqmi_1.28.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-connectivity/libqmi/{libqmi_1.26.6.bb => libqmi_1.28.2.bb} (90%)meta-oe/recipes-connectivity/libqmi/libqmi_1.28.2.bb renamed from meta-oe/recipes-connectivity/libqmi/libqmi_1.26.6.bb +1 -1
@@ -14,7 +14,7 @@ inherit autotools pkgconfig bash-completion gobject-introspection SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BPN}-${PV}.tar.xz" -SRC_URI[sha256sum] = "a71963bb1097a42665287e40a9a36f95b8f9d6d6a4b7a5de22d660328af97cb9" +SRC_URI[sha256sum] = "8c8c3ee719874d2529bce9b35b028fe435b36f003979a360d3ad0938449db783" PACKAGECONFIG ??= "udev mbim" PACKAGECONFIG[udev] = ",--without-udev,libgudev"
Signature · 1 line
2.17.1
PATCH 24/50 hostapd: fix CVE-2021-30004
In reply to Armin KusterFrom: Stefan Ghinea <[email protected]>
In wpa_supplicant and hostapd 2.9, forging attacks may occur because AlgorithmIdentifier parameters are mishandled in tls/pkcs1.c and tls/x509v3.c.
References:
https://nvd.nist.gov/vuln/detail/CVE-2021-30004
Upstream patches:
https://w1.fi/cgit/hostap/commit/?id=a0541334a6394f8237a4393b7372693cd7e96f15
--- .../hostapd/hostapd/CVE-2021-30004.patch | 123 ++++++++++++++++++ .../hostapd/hostapd_2.9.bb | 1 + 2 files changed, 124 insertions(+) create mode 100644 meta-oe/recipes-connectivity/hostapd/hostapd/CVE-2021-30004.patch
meta-oe/recipes-connectivity/hostapd/hostapd/CVE-2021-30004.patch new file +123 -0
@@ -0,0 +1,123 @@ +From a0541334a6394f8237a4393b7372693cd7e96f15 Mon Sep 17 00:00:00 2001 +From: Jouni Malinen <[email protected]> +Date: Sat, 13 Mar 2021 18:19:31 +0200 +Subject: [PATCH] ASN.1: Validate DigestAlgorithmIdentifier parameters + +The supported hash algorithms do not use AlgorithmIdentifier parameters. +However, there are implementations that include NULL parameters in +addition to ones that omit the parameters. Previous implementation did +not check the parameters value at all which supported both these cases, +but did not reject any other unexpected information. + +Use strict validation of digest algorithm parameters and reject any +unexpected value when validating a signature. This is needed to prevent +potential forging attacks. + +Signed-off-by: Jouni Malinen <[email protected]> + +Upstream-Status: Backport +CVE: CVE-2021-30004 + +Reference to upstream patch: +[https://w1.fi/cgit/hostap/commit/?id=a0541334a6394f8237a4393b7372693cd7e96f15] + +Signed-off-by: Stefan Ghinea <[email protected]> +--- + src/tls/pkcs1.c | 21 +++++++++++++++++++++ + src/tls/x509v3.c | 20 ++++++++++++++++++++ + 2 files changed, 41 insertions(+) + +diff --git a/src/tls/pkcs1.c b/src/tls/pkcs1.c +index 141ac50..e09db07 100644 +--- a/src/tls/pkcs1.c ++++ b/src/tls/pkcs1.c +@@ -240,6 +240,8 @@ int pkcs1_v15_sig_ver(struct crypto_public_key *pk, + os_free(decrypted); + return -1; + } ++ wpa_hexdump(MSG_MSGDUMP, "PKCS #1: DigestInfo", ++ hdr.payload, hdr.length); + + pos = hdr.payload; + end = pos + hdr.length; +@@ -261,6 +263,8 @@ int pkcs1_v15_sig_ver(struct crypto_public_key *pk, + os_free(decrypted); + return -1; + } ++ wpa_hexdump(MSG_MSGDUMP, "PKCS #1: DigestAlgorithmIdentifier", ++ hdr.payload, hdr.length); + da_end = hdr.payload + hdr.length; + + if (asn1_get_oid(hdr.payload, hdr.length, &oid, &next)) { +@@ -269,6 +273,23 @@ int pkcs1_v15_sig_ver(struct crypto_public_key *pk, + os_free(decrypted); + return -1; + } ++ wpa_hexdump(MSG_MSGDUMP, "PKCS #1: Digest algorithm parameters", ++ next, da_end - next); ++ ++ /* ++ * RFC 5754: The correct encoding for the SHA2 algorithms would be to ++ * omit the parameters, but there are implementation that encode these ++ * as a NULL element. Allow these two cases and reject anything else. ++ */ ++ if (da_end > next && ++ (asn1_get_next(next, da_end - next, &hdr) < 0 || ++ !asn1_is_null(&hdr) || ++ hdr.payload + hdr.length != da_end)) { ++ wpa_printf(MSG_DEBUG, ++ "PKCS #1: Unexpected digest algorithm parameters"); ++ os_free(decrypted); ++ return -1; ++ } + + if (!asn1_oid_equal(&oid, hash_alg)) { + char txt[100], txt2[100]; +diff --git a/src/tls/x509v3.c b/src/tls/x509v3.c +index 1bd5aa0..bf2289f 100644 +--- a/src/tls/x509v3.c ++++ b/src/tls/x509v3.c +@@ -1834,6 +1834,7 @@ int x509_check_signature(struct x509_certificate *issuer, + os_free(data); + return -1; + } ++ wpa_hexdump(MSG_MSGDUMP, "X509: DigestInfo", hdr.payload, hdr.length); + + pos = hdr.payload; + end = pos + hdr.length; +@@ -1855,6 +1856,8 @@ int x509_check_signature(struct x509_certificate *issuer, + os_free(data); + return -1; + } ++ wpa_hexdump(MSG_MSGDUMP, "X509: DigestAlgorithmIdentifier", ++ hdr.payload, hdr.length); + da_end = hdr.payload + hdr.length; + + if (asn1_get_oid(hdr.payload, hdr.length, &oid, &next)) { +@@ -1862,6 +1865,23 @@ int x509_check_signature(struct x509_certificate *issuer, + os_free(data); + return -1; + } ++ wpa_hexdump(MSG_MSGDUMP, "X509: Digest algorithm parameters", ++ next, da_end - next); ++ ++ /* ++ * RFC 5754: The correct encoding for the SHA2 algorithms would be to ++ * omit the parameters, but there are implementation that encode these ++ * as a NULL element. Allow these two cases and reject anything else. ++ */ ++ if (da_end > next && ++ (asn1_get_next(next, da_end - next, &hdr) < 0 || ++ !asn1_is_null(&hdr) || ++ hdr.payload + hdr.length != da_end)) { ++ wpa_printf(MSG_DEBUG, ++ "X509: Unexpected digest algorithm parameters"); ++ os_free(data); ++ return -1; ++ } + + if (x509_sha1_oid(&oid)) { + if (signature->oid.oid[6] != 5 /* sha-1WithRSAEncryption */) { +-- +2.17.1 +
meta-oe/recipes-connectivity/hostapd/hostapd_2.9.bb +1 -0
@@ -15,6 +15,7 @@ SRC_URI = " \ file://CVE-2019-5061.patch \ file://CVE-2021-0326.patch \ file://CVE-2021-27803.patch \ + file://CVE-2021-30004.patch \ " SRC_URI[md5sum] = "f188fc53a495fe7af3b6d77d3c31dee8"
Signature · 1 line
2.17.1
PATCH 25/50 catfish: add python3-dbus to RDEPENDS
In reply to Armin KusterFrom: Andreas Müller <[email protected]>
Otherwise it complains for missing import and won't start
--- meta-xfce/recipes-apps/catfish/catfish_4.16.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-xfce/recipes-apps/catfish/catfish_4.16.0.bb +1 -1
@@ -11,4 +11,4 @@ SRC_URI[sha256sum] = "1f6facee57a659af560f06024ca6f98aa4d638bf57a8bcfb613b4dc70f FILES_${PN} += "${datadir}/metainfo" -RDEPENDS_${PN} += "python3-pygobject" +RDEPENDS_${PN} += "python3-pygobject python3-dbus"
Signature · 1 line
2.17.1
PATCH 26/50 fluidsynth: upgrade 2.1.7 -> 2.2.0
In reply to Armin KusterFrom: Andreas Müller <[email protected]>
The only fallout by API/ABI changes in my world build was meta-games/scummvm. Fix was sent [1]
fluidsynth 2.2.0
This release breaks ABI compatibility! Refer to the API docs for details. A C++98 compliant compiler is now required to build fluidsynth (mailing list thread)
New features
Support loading SoundFonts >2GiB on Windows (#629)
Major overhaul of the sequencer and its event queue (#604)
Overlapping notes can be handled (#637)
Performance improvement, since the event queue no longer blocks the rendering thread
Time scale is not limited to 1000 anymore and can therefore be used for tempo changes
The following audio drivers have gained multi-channel support
DSound (#667, thanks to @jjceresa)
WaveOut (#667, thanks to @jjceresa)
The WinMIDI driver supports multiple devices (#677, thanks to @jjceresa)
Handle GS DT1 SysEx messages for setting whether a channel is used for rhythm part (#708, thanks to @chirs241097) Support use of UTF-8 filenames under Windows (#718, thanks to @getraid-gg)
Improved support for overriding tempo of the MIDI player (#711, #713, thanks to @jjceresa) Handle settings-related commands in user command file before initializing other objects (#739) SoundFont loading has been parallelized (#746, #812, requires openMP)
The Oboe driver has gained a lower latency and other updates (#740, #741, #747)
WASAPI driver has been added (#754, thanks to @chirs241097)
General
Fix race condition in fluid_player_callback (#783, thanks to @arcln) Improvements to LADSPA subsystem (#795, thanks to @mawe42)
[1] https://github.com/cazfi/meta-games/pull/58
--- .../fluidsynth/fluidsynth.inc | 4 +-- ...te_float-Allow-zero-pointer-for-left.patch | 26 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-)
meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth.inc +2 -2
@@ -5,8 +5,8 @@ LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://LICENSE;md5=fc178bcd425090939a8b634d1d6a9594" SRC_URI = "git://github.com/FluidSynth/fluidsynth.git" -SRCREV = "e2d67ea77237046b703d537aec90620c22f7f629" +SRCREV = "8413c35aca641567baf13e9b16e9839019ebf99d" S = "${WORKDIR}/git" -PV = "2.1.7" +PV = "2.2.0" inherit cmake pkgconfig lib_package
meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth/0002-fluid_synth_nwrite_float-Allow-zero-pointer-for-left.patch +13 -13
@@ -17,15 +17,15 @@ Upstream-Status: Submitted [1] Signed-off-by: Andreas Müller <[email protected]> --- - src/synth/fluid_synth.c | 69 ++++++++++++++++++++++++++++++++++--------------- + src/synth/fluid_synth.c | 69 ++++++++++++++++++++++++++++------------- 1 file changed, 48 insertions(+), 21 deletions(-) diff --git a/src/synth/fluid_synth.c b/src/synth/fluid_synth.c -index 0df620d3..379f8216 100644 +index 1eb5d737..6c876efa 100644 --- a/src/synth/fluid_synth.c +++ b/src/synth/fluid_synth.c -@@ -3306,10 +3306,10 @@ fluid_synth_program_reset(fluid_synth_t *synth) - * Synthesize a block of floating point audio to separate audio buffers (multichannel rendering). First effect channel used by reverb, second for chorus. +@@ -3628,10 +3628,10 @@ fluid_synth_program_reset(fluid_synth_t *synth) + * * @param synth FluidSynth instance * @param len Count of audio frames to synthesize - * @param left Array of float buffers to store left channel of planar audio (as many as \c synth.audio-channels buffers, each of \c len in size)
@@ -38,8 +38,8 @@ index 0df620d3..379f8216 100644 + * @param fx_right Since 1.1.7: If not \c NULL, array of float buffers to store right effect channels (size: dito). Since 2.0.3: NULL allowed for array entry * @return #FLUID_OK on success, #FLUID_FAILED otherwise * - * @note Should only be called from synthesis thread. -@@ -3386,15 +3386,27 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, + * First effect channel used by reverb, second for chorus. +@@ -3719,15 +3719,27 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, for(i = 0; i < synth->audio_channels; i++) { #ifdef WITH_FLOAT
@@ -71,7 +71,7 @@ index 0df620d3..379f8216 100644 } #endif //WITH_FLOAT -@@ -3404,12 +3416,12 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, +@@ -3737,12 +3749,12 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, { #ifdef WITH_FLOAT
@@ -86,7 +86,7 @@ index 0df620d3..379f8216 100644 { FLUID_MEMCPY(fx_right[i], &fx_right_in[i * FLUID_BUFSIZE * FLUID_MIXER_MAX_BUFFERS_DEFAULT + synth->cur], bytes); } -@@ -3417,7 +3429,7 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, +@@ -3750,7 +3762,7 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, #else //WITH_FLOAT int j;
@@ -95,7 +95,7 @@ index 0df620d3..379f8216 100644 { for(j = 0; j < num; j++) { -@@ -3425,7 +3437,7 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, +@@ -3758,7 +3770,7 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, } }
@@ -104,7 +104,7 @@ index 0df620d3..379f8216 100644 { for(j = 0; j < num; j++) { -@@ -3456,15 +3468,30 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, +@@ -3789,15 +3801,30 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, for(i = 0; i < synth->audio_channels; i++) { #ifdef WITH_FLOAT
@@ -140,7 +140,7 @@ index 0df620d3..379f8216 100644 } #endif //WITH_FLOAT -@@ -3474,12 +3501,12 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, +@@ -3807,12 +3834,12 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, { #ifdef WITH_FLOAT
@@ -155,7 +155,7 @@ index 0df620d3..379f8216 100644 { FLUID_MEMCPY(fx_right[i] + count, &fx_right_in[i * FLUID_BUFSIZE * FLUID_MIXER_MAX_BUFFERS_DEFAULT], bytes); } -@@ -3487,7 +3514,7 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, +@@ -3820,7 +3847,7 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, #else //WITH_FLOAT int j;
@@ -164,7 +164,7 @@ index 0df620d3..379f8216 100644 { for(j = 0; j < num; j++) { -@@ -3495,7 +3522,7 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, +@@ -3828,7 +3855,7 @@ fluid_synth_nwrite_float(fluid_synth_t *synth, int len, } }
Signature · 1 line
2.17.1
PATCH 27/50 redis: upgrade 6.0.9 -> 6.2.1
In reply to Armin KusterFrom: Yi Fan Yu <[email protected]>
Refresh 3 patches.
Removed Patch:
ilp32.patch fixed by upstream 0719388cfb1a79160204314beb1de1f9c29a3684
---
...06-Define-correct-gregs-for-RISCV32.patch} | 26 ++++++--
.../recipes-extended/redis/redis/ilp32.patch | 29 --------
...ile-to-use-environment-build-setting.patch | 66 ++++++++++---------
.../redis/redis/oe-use-libc-malloc.patch | 12 ++--
.../redis/{redis_6.0.9.bb => redis_6.2.1.bb} | 5 +-
5 files changed, 62 insertions(+), 76 deletions(-)
rename meta-oe/recipes-extended/redis/redis/{riscv32.patch => 0006-Define-correct-gregs-for-RISCV32.patch} (61%)
delete mode 100644 meta-oe/recipes-extended/redis/redis/ilp32.patch
rename meta-oe/recipes-extended/redis/{redis_6.0.9.bb => redis_6.2.1.bb} (93%)meta-oe/recipes-extended/redis/redis/0006-Define-correct-gregs-for-RISCV32.patch renamed from meta-oe/recipes-extended/redis/redis/riscv32.patch +19 -7
@@ -1,21 +1,33 @@ -Define correct gregs for RISCV32 +From 6134b471c35df826ccb41aab9a47e5c89e15a0c4 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 26 Oct 2020 21:32:22 -0700 +Subject: [PATCH] Define correct gregs for RISCV32 Upstream-Status: Pending Signed-off-by: Khem Raj <[email protected]> + +Updated patch for 6.2.1 +Signed-off-by: Yi Fan Yu <[email protected]> +--- + src/debug.c | 26 ++++++++++++++++++++++++-- + 1 file changed, 24 insertions(+), 2 deletions(-) + +diff --git a/src/debug.c b/src/debug.c +index e7fec29..5abb404 100644 --- a/src/debug.c +++ b/src/debug.c -@@ -942,7 +942,9 @@ static void *getMcontextEip(ucontext_t * +@@ -1039,7 +1039,9 @@ static void *getMcontextEip(ucontext_t *uc) { #endif #elif defined(__linux__) /* Linux */ -- #if defined(__i386__) || defined(__ILP32__) +- #if defined(__i386__) || ((defined(__X86_64__) || defined(__x86_64__)) && defined(__ILP32__)) + #if defined(__riscv) && __riscv_xlen == 32 + return (void*) uc->uc_mcontext.__gregs[REG_PC]; -+ #elif defined(__i386__) || defined(__ILP32__) ++ #elif defined(__i386__) || ((defined(__X86_64__) || defined(__x86_64__)) && defined(__ILP32__)) return (void*) uc->uc_mcontext.gregs[14]; /* Linux 32 */ #elif defined(__X86_64__) || defined(__x86_64__) return (void*) uc->uc_mcontext.gregs[16]; /* Linux 64 */ -@@ -1102,8 +1104,28 @@ void logRegisters(ucontext_t *uc) { +@@ -1206,8 +1208,28 @@ void logRegisters(ucontext_t *uc) { #endif /* Linux */ #elif defined(__linux__)
@@ -40,8 +52,8 @@ Signed-off-by: Khem Raj <[email protected]> + ); + logStackContent((void**)uc->uc_mcontext.__gregs[REG_SP]); /* Linux x86 */ -- #if defined(__i386__) || defined(__ILP32__) -+ #elif defined(__i386__) || defined(__ILP32__) +- #if defined(__i386__) || ((defined(__X86_64__) || defined(__x86_64__)) && defined(__ILP32__)) ++ #elif defined(__i386__) || ((defined(__X86_64__) || defined(__x86_64__)) && defined(__ILP32__)) serverLog(LL_WARNING, "\n" "EAX:%08lx EBX:%08lx ECX:%08lx EDX:%08lx\n"
meta-oe/recipes-extended/redis/redis/ilp32.patch deleted +0 -29
@@ -1,29 +0,0 @@ -__ILP32__ is defined for all 32bit architectures with clang e.g. -which is right but it is causing issues on non-x86 architectures -where this condition becomes true and wrongly starts using this -code, this issue is hidden with gcc becuase gcc does not define -__ILP32__ for all 32bit architectures but for selected 64bit arches -who choose to use 32bit ABI e.g. x32 - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- a/src/debug.c -+++ b/src/debug.c -@@ -944,7 +944,7 @@ static void *getMcontextEip(ucontext_t * - /* Linux */ - #if defined(__riscv) && __riscv_xlen == 32 - return (void*) uc->uc_mcontext.__gregs[REG_PC]; -- #elif defined(__i386__) || defined(__ILP32__) -+ #elif defined(__i386__) || (defined(__X86_64__) && defined(__ILP32__)) - return (void*) uc->uc_mcontext.gregs[14]; /* Linux 32 */ - #elif defined(__X86_64__) || defined(__x86_64__) - return (void*) uc->uc_mcontext.gregs[16]; /* Linux 64 */ -@@ -1125,7 +1125,7 @@ void logRegisters(ucontext_t *uc) { - ); - logStackContent((void**)uc->uc_mcontext.__gregs[REG_SP]); - /* Linux x86 */ -- #elif defined(__i386__) || defined(__ILP32__) -+ #elif defined(__i386__) || ( defined(__X86_64__) && defined(__ILP32__)) - serverLog(LL_WARNING, - "\n" - "EAX:%08lx EBX:%08lx ECX:%08lx EDX:%08lx\n"
meta-oe/recipes-extended/redis/redis/lua-update-Makefile-to-use-environment-build-setting.patch +35 -31
80 lines not on this page · raw message
meta-oe/recipes-extended/redis/redis/oe-use-libc-malloc.patch +6 -6
@@ -1,4 +1,4 @@ -From f8861d2129b9e18bba137705bfa38c6bd9be1790 Mon Sep 17 00:00:00 2001 +From 1fa047162983d4a7e0576f0837a73a6027a783bd Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Wed, 6 Feb 2013 20:51:02 -0600 Subject: [PATCH] hack to force use of libc malloc
@@ -6,7 +6,7 @@ Subject: [PATCH] hack to force use of libc malloc Hack to force libc usage as it seems the option to pass it in has been removed in favor of magic. -Note that this of course doesn't allow tcmalloc and jemalloc, however +Note that this of course doesn't allow tcmalloc and jemalloc, however jemalloc wasn't building correctly. Signed-off-by: Venture Research <[email protected]>
@@ -15,11 +15,11 @@ Update to work with 4.0.8 Signed-off-by: Alistair Francis <[email protected]> --- - src/Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + src/Makefile | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 86e0b3fe..a810180b 100644 +index ecd6929..c7f43c5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,7 +13,8 @@
@@ -31,4 +31,4 @@ index 86e0b3fe..a810180b 100644 +uname_S := "USE_LIBC_MALLOC" uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') OPTIMIZATION?=-O2 - DEPENDENCY_TARGETS=hiredis linenoise lua + DEPENDENCY_TARGETS=hiredis linenoise lua hdr_histogram
meta-oe/recipes-extended/redis/redis_6.2.1.bb renamed from meta-oe/recipes-extended/redis/redis_6.0.9.bb +2 -3
@@ -15,10 +15,9 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ file://oe-use-libc-malloc.patch \ file://0001-src-Do-not-reset-FINAL_LIBS.patch \ file://GNU_SOURCE.patch \ - file://riscv32.patch \ - file://ilp32.patch \ + file://0006-Define-correct-gregs-for-RISCV32.patch \ " -SRC_URI[sha256sum] = "dc2bdcf81c620e9f09cfd12e85d3bc631c897b2db7a55218fd8a65eaa37f86dd" +SRC_URI[sha256sum] = "cd222505012cce20b25682fca931ec93bd21ae92cb4abfe742cf7b76aa907520" inherit autotools-brokensep update-rc.d systemd useradd
Signature · 1 line
2.17.1
PATCH 28/50 python3-pyroute2: Upgrade 0.5.17 -> 0.5.18
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 0.5.18:
- netlink: support zero length lladdr
---
.../{python3-pyroute2_0.5.17.bb => python3-pyroute2_0.5.18.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pyroute2_0.5.17.bb => python3-pyroute2_0.5.18.bb} (90%)meta-python/recipes-devtools/python/python3-pyroute2_0.5.18.bb renamed from meta-python/recipes-devtools/python/python3-pyroute2_0.5.17.bb +1 -1
@@ -3,7 +3,7 @@ LICENSE = "GPLv2 & Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ file://LICENSE.Apache.v2;md5=34281e312165f843a2b7d1f114fe65ce" -SRC_URI[sha256sum] = "12d51066ea5628a6fa76fc244f301a8eea5d25d71a9d664016976edfa3889733" +SRC_URI[sha256sum] = "08ac40cad52c0bb2e0f20087520599aa91fcce0b221dd26e9042330428810bc5" inherit setuptools3 pypi ptest
Signature · 1 line
2.17.1
PATCH 29/50 python3-sympy: Upgrade 1.7.1 -> 1.8
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 1.8:
assumptions:
- Q.infinite now correctly evaluates to True for oo, -oo, and zoo
- Assumption predicates now correctly evaluates to None for S.NaN
- Relational objects do not need to be wrapped by Q.is_true to be asked or refined anymore
- Q.is_true wrapping over AppliedPredicate now just return the argument
- refine arg(x) when x is real and nonzero
- assumptions/relation module is introduced. This module implements binary relation as predicate
- AskHandler(), register_handler() and remove_handler() are deprecated. Handler now must be multipledispatch instance
- Predicate now uses a single handler which is multipledispatch instance
- Predicate can now take multiple arguments
- Predicate("...") now returns UndefinedPredicate instance. To define a predicate, you must make a subclass of Predicate
calculus:
- Using maximum with a piecewise expression over a domain no longer fails due to a bug fix in Piecewise.as_expr_set_pairs
codegen:
- allowing for multi-dimensional arrays as arguments/locals in c code generation
- create_expand_pow_optimization is now customizable with respect to requirement on base
- Support flattening of elementwise additions of array expressions
- Fixes to array-expressions in order to properly work with ZeroArray and ZeroMatrix
- Fixing matrix expression recognition from array-expressions
- Minor fixes to the way the AST of array expressions is built
- Add normalization of CodegenArrayDiagonal when it's nested with CodegenArrayPermuteDims and CodegenArrayContraction
- Increased support for the normalization of array expressions and permutations of indices
- parse_matrix_expression( ) is now able to parse traces of matrices
combinatorics:
- Added a section to the permutation docs about containment in permutation groups
geometry:
- Fix AssertError for vertical tangent
- Geometric entities with symbolic coordinates will not be printed in SVG
simplify:
- Fix simplify calls sympify without rational parameter
- TRmorrie now takes powers of cos terms into account
tensor:
- Introduced objects ArraySymbol and ArrayElement for array expressions equivalent to MatrixSymbol and MatrixElement in the matrix expression module
- Add class ZeroArray for array expressions of zero-valued elements
- Make Array differentiation(derive_by_array) work with non sympy expressions
- Added tensordiagonal( ) function to perform diagonalization of array expressions
- Adding an array with any other type now consistently gives NotImplemented
utilities:
- Added official support for using CuPy to GPU accelerate lambdify functions
- Added Replacer class to simplify the creation of replacement expressions with MatchPy
- Added tests for optional parameter in MatchPy patterns
- Added string printers for MatchPy-compatible wildcards in sympy.utilities.matchpy_connector
- minlex no longer accepts is_set or small arguments
- minlex and least_rotation now accept key= arguments similar to sorted
vector:
- Fixed a bug with integral over ImplicitRegion objects
other:
- Expanding documentation to include all class members with docstrings
License-Update: Update year
---
.../python/{python3-sympy_1.7.1.bb => python3-sympy_1.8.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-sympy_1.7.1.bb => python3-sympy_1.8.bb} (68%)meta-python/recipes-devtools/python/python3-sympy_1.8.bb renamed from meta-python/recipes-devtools/python/python3-sympy_1.7.1.bb +2 -2
@@ -4,9 +4,9 @@ SUMMARY = "Computer algebra system (CAS) in Python" HOMEPAGE = "https://pypi.org/project/sympy/" LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://LICENSE;md5=ebb06e9df8f57522b72d0edb0fcf83d4" +LIC_FILES_CHKSUM = "file://LICENSE;md5=2245824980a408ef1749391dfba32b3b" -SRC_URI[sha256sum] = "a3de9261e97535b83bb8607b0da2c7d03126650fafea2b2789657b229c246b2e" +SRC_URI[sha256sum] = "1ca588a9f6ce6a323c5592f9635159c2093572826668a1022c75c75bdf0297cb" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 30/50 python3-pandas: Upgrade 1.2.3 -> 1.2.4
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 1.2.4:
- Fixed regression in DataFrame.sum() when min_count greater than the DataFrame shape was passed resulted in a ValueError
- Fixed regression in DataFrame.to_json() raising AttributeError when run on PyPy
- Fixed regression in (in)equality comparison of pd.NaT with a non-datetimelike numpy array returning a scalar instead of an array
- Fixed regression in DataFrame.where() not returning a copy in the case of an all True condition
- Fixed regression in DataFrame.replace() raising IndexError when regex was a multi-key dictionary
- Fixed regression in repr of floats in an object column not respecting float_format when printed in the console or outputted through DataFrame.to_string(), DataFrame.to_html(), and DataFrame.to_latex()
- Fixed regression in NumPy ufuncs such as np.add not passing through all arguments for DataFrame
---
.../python/{python3-pandas_1.2.3.bb => python3-pandas_1.2.4.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pandas_1.2.3.bb => python3-pandas_1.2.4.bb} (88%)meta-python/recipes-devtools/python/python3-pandas_1.2.4.bb renamed from meta-python/recipes-devtools/python/python3-pandas_1.2.3.bb +1 -1
@@ -6,7 +6,7 @@ HOMEPAGE = "http://pandas.pydata.org/" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=c2a8f987b2ce77c368c6b3e1b5b10774" -SRC_URI[sha256sum] = "df6f10b85aef7a5bb25259ad651ad1cc1d6bb09000595cab47e718cbac250b1d" +SRC_URI[sha256sum] = "649ecab692fade3cbfcf967ff936496b0cfba0af00a55dfaacd82bdda5cb2279" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 31/50 python3-humanize: Upgrade 3.4.0 -> 3.4.1
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 3.4.1:
- Add Catalan binary translation
---
.../{python3-humanize_3.4.0.bb => python3-humanize_3.4.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-humanize_3.4.0.bb => python3-humanize_3.4.1.bb} (80%)meta-python/recipes-devtools/python/python3-humanize_3.4.1.bb renamed from meta-python/recipes-devtools/python/python3-humanize_3.4.0.bb +1 -1
@@ -5,7 +5,7 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENCE;md5=4ecc42519e84f6f3e23529464df7bd1d" -SRC_URI[sha256sum] = "096b9ae6d1d56321d3d81f17117c2068179d7b4f7f73ba4baf302726923b48ec" +SRC_URI[sha256sum] = "6e04cdd75d66074c34ff93c30a2ad6d19d91202a65c1bd400b2edeedae399bda" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 32/50 python3-decorator: Upgrade 5.0.6 -> 5.0.7
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 5.0.7:
- The decorator module was not passing correctly the defaults inside the *args tuple
- Fixed some mispellings in the documentation
- Integrated codespell in the CI
---
.../{python3-decorator_5.0.6.bb => python3-decorator_5.0.7.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-decorator_5.0.6.bb => python3-decorator_5.0.7.bb} (86%)meta-python/recipes-devtools/python/python3-decorator_5.0.7.bb renamed from meta-python/recipes-devtools/python/python3-decorator_5.0.6.bb +1 -1
@@ -9,7 +9,7 @@ decorator, just because you can." LICENSE = "BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=be2fd2007972bf96c08af3293d728b22" -SRC_URI[sha256sum] = "f2e71efb39412bfd23d878e896a51b07744f2e2250b2e87d158e76828c5ae202" +SRC_URI[sha256sum] = "6f201a6c4dac3d187352661f508b9364ec8091217442c9478f1f83c003a0f060" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 33/50 python3-colorlog: Upgrade 4.8.0 -> 5.0.1
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 5.0.1:
- Fix colorlog.basicConfig does not accept '{' style
- Fix linter errors
License-Update: Update year
---
.../{python3-colorlog_4.8.0.bb => python3-colorlog_5.0.1.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-colorlog_4.8.0.bb => python3-colorlog_5.0.1.bb} (54%)meta-python/recipes-devtools/python/python3-colorlog_5.0.1.bb renamed from meta-python/recipes-devtools/python/python3-colorlog_4.8.0.bb +2 -2
@@ -1,10 +1,10 @@ DESCRIPTION = "A colored formatter for the python logging module" HOMEPAGE = "https://github.com/borntyping/python-colorlog" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=85a1d478cd35d62763a1419e948bdde4" +LIC_FILES_CHKSUM = "file://LICENSE;md5=5c3c6ebdec7792ae12df8d1c0a46b26a" inherit pypi setuptools3 PYPI_PACKAGE = "colorlog" -SRC_URI[sha256sum] = "59b53160c60902c405cdec28d38356e09d40686659048893e026ecbd589516b1" +SRC_URI[sha256sum] = "f17c013a06962b02f4449ee07cfdbe6b287df29efc2c9a1515b4a376f4e588ea"
Signature · 1 line
2.17.1
PATCH 34/50 python3-google-api-python-client: Upgrade 2.1.0 -> 2.2.0
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 2.2.0:
- Adds support for errors.py to also use 'errors' for error_details
---
...lient_2.1.0.bb => python3-google-api-python-client_2.2.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-google-api-python-client_2.1.0.bb => python3-google-api-python-client_2.2.0.bb} (78%)meta-python/recipes-devtools/python/python3-google-api-python-client_2.2.0.bb renamed from meta-python/recipes-devtools/python/python3-google-api-python-client_2.1.0.bb +1 -1
@@ -4,6 +4,6 @@ HOMEPAGE = "https://github.com/googleapis/google-api-python-client" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=94023d14f6b58272fd885e4e3f2f08b3" -SRC_URI[sha256sum] = "f9ac377efe69571aea1acc9e15760d4204aca23c4464eb63f963ae4defc95d97" +SRC_URI[sha256sum] = "29447c8e95c23ae76fcf9817432f5ed015495513abeac564905640a0ef7d1898" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 35/50 python3-croniter: Upgrade 1.0.11 -> 1.0.12
In reply to Armin KusterFrom: Leon Anavi <[email protected]>
Upgrade to release 1.0.12:
- Add support for hashed/random/keyword expressions
- Review support support for hashed/random/keyword expression and add expanders reactor
---
.../{python3-croniter_1.0.11.bb => python3-croniter_1.0.12.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-croniter_1.0.11.bb => python3-croniter_1.0.12.bb} (78%)meta-python/recipes-devtools/python/python3-croniter_1.0.12.bb renamed from meta-python/recipes-devtools/python/python3-croniter_1.0.11.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=b8ee59850b882cbf623188489ea748e2" PYPI_PACKAGE = "croniter" -SRC_URI[sha256sum] = "cd89bcbed4d79f56bbf2c9415c2bbbfd09fadc8a59dbae3898fbca5bab34103d" +SRC_URI[sha256sum] = "3603ef0d60fc6df98ce356c01529de90b06a002379b9f5e9eae981fb9c1fd936" inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 36/50 core-image-minimal-xfce: Use graphical.target as default
In reply to Armin KusterFrom: Khem Raj <[email protected]>
This ensures that nodm unit is started during boot with systemd images
--- meta-xfce/recipes-core/images/core-image-minimal-xfce.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-xfce/recipes-core/images/core-image-minimal-xfce.bb +2 -0
@@ -16,3 +16,5 @@ LICENSE = "MIT" export IMAGE_BASENAME = "core-image-minimal-xfce" inherit core-image + +SYSTEMD_DEFAULT_TARGET = "graphical.target"
Signature · 1 line
2.17.1
PATCH 37/50 opencv: fetch wechat_qrcode files used by dnn PACKAGECONFIG
In reply to Armin KusterFrom: Martin Jansa <[email protected]>
* otherwise build fails when dnn is enabled:
| -- wechat_qrcode: Download: detect.caffemodel | CMake Error at /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/opencv/4.5.2-r0/git/cmake/OpenCVDownload.cmake:161 (message): | Not going to download detect.caffemodel | Call Stack (most recent call first): | /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/opencv/4.5.2-r0/contrib/modules/wechat_qrcode/CMakeLists.txt:16 (ocv_download)
--- meta-oe/recipes-support/opencv/opencv_4.5.2.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-oe/recipes-support/opencv/opencv_4.5.2.bb +4 -0
@@ -16,6 +16,7 @@ SRCREV_ipp = "a56b6ac6f030c312b2dce17430eef13aed9af274" SRCREV_boostdesc = "34e4206aef44d50e6bbcd0ab06354b52e7466d26" SRCREV_vgg = "fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d" SRCREV_face = "8afa57abc8229d611c4937165d20e2a2d9fc5a12" +SRCREV_wechat-qrcode = "a8b69ccc738421293254aec5ddb38bd523503252" def ipp_filename(d): import re
@@ -43,6 +44,7 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv \ git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_boostdesc_20161012;destsuffix=boostdesc;name=boostdesc \ git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_vgg_20160317;destsuffix=vgg;name=vgg \ git://github.com/opencv/opencv_3rdparty.git;branch=contrib_face_alignment_20170818;destsuffix=face;name=face \ + git://github.com/WeChatCV/opencv_3rdparty.git;branch=wechat_qrcode;destsuffix=wechat_qrcode;name=wechat-qrcode \ file://0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch \ file://0003-To-fix-errors-as-following.patch \ file://0001-Temporarliy-work-around-deprecated-ffmpeg-RAW-functi.patch \
@@ -77,6 +79,8 @@ do_unpack_extra() { cache xfeatures2d/boostdesc ${WORKDIR}/boostdesc/*.i cache xfeatures2d/vgg ${WORKDIR}/vgg/*.i cache data ${WORKDIR}/face/*.dat + cache wechat_qrcode ${WORKDIR}/wechat_qrcode/*.caffemodel + cache wechat_qrcode ${WORKDIR}/wechat_qrcode/*.prototxt } addtask unpack_extra after do_unpack before do_patch
Signature · 1 line
2.17.1
PATCH 38/50 opencv: link sfm module with Glog
In reply to Armin KusterFrom: Martin Jansa <[email protected]>
* fixes build issue when dnn PACKAGECONFIG is enabled and ld-is-gold in DISTRO_FEATURES
--- .../opencv/0001-sfm-link-with-Glog_LIBS.patch | 44 +++++++++++++++++++ .../recipes-support/opencv/opencv_4.5.2.bb | 1 + 2 files changed, 45 insertions(+) create mode 100644 meta-oe/recipes-support/opencv/opencv/0001-sfm-link-with-Glog_LIBS.patch
meta-oe/recipes-support/opencv/opencv/0001-sfm-link-with-Glog_LIBS.patch new file +41 -0
@@ -0,0 +1,44 @@ +From ffe20fc4ec46c6b491eff29a38f90686d4d035f6 Mon Sep 17 00:00:00 2001 +From: Martin Jansa <[email protected]> +Date: Mon, 12 Apr 2021 20:37:40 +0000 +Subject: [PATCH] sfm: link with Glog_LIBS + +* in 4.5.0 there was explicit linkage with GLOG_LIBRARY, but since 4.5.1 with: + https://github.com/opencv/opencv_contrib/commit/23ee62a19b7a3e50d6dbf295359d8b1aff2e03fd + + it's gone, probably because Glog_FOUND is already set from Ceres, + but then GLOG_LIBRARIES is empty in LIBMV_LIGHT_LIBS and build with gold fails: + +lib/libopencv_sfm.so.4.5.2: error: undefined reference to 'google::LogMessage::stream()' +lib/libopencv_sfm.so.4.5.2: error: undefined reference to 'google::LogMessage::~LogMessage()' +lib/libopencv_sfm.so.4.5.2: error: undefined reference to 'google::kLogSiteUninitialized' +lib/libopencv_sfm.so.4.5.2: error: undefined reference to 'fLI::FLAGS_v' +lib/libopencv_sfm.so.4.5.2: error: undefined reference to 'google::InitVLOG3__(int**, int*, char const*, int)' +lib/libopencv_sfm.so.4.5.2: error: undefined reference to 'google::LogMessageFatal::LogMessageFatal(char const*, int)' +lib/libopencv_sfm.so.4.5.2: error: undefined reference to 'google::LogMessageFatal::~LogMessageFatal()' +collect2: error: ld returned 1 exit status + + Add Glog_LIBS which is set to the same value as GLOG_LIBRARIES used to be. + +Upstream-Status: Submitted [https://github.com/opencv/opencv_contrib/pull/2923] + +Signed-off-by: Martin Jansa <[email protected]> +--- + modules/sfm/CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/modules/sfm/CMakeLists.txt b/modules/sfm/CMakeLists.txt +index 045a1fe6e..ee7cecdac 100644 +--- a/modules/sfm/CMakeLists.txt ++++ b/modules/sfm/CMakeLists.txt +@@ -84,6 +84,7 @@ set(LIBMV_LIGHT_LIBS + multiview + numeric + ${GLOG_LIBRARIES} ++ ${Glog_LIBS} + ${GFLAGS_LIBRARIES} + ) +
meta-oe/recipes-support/opencv/opencv_4.5.2.bb +1 -0
@@ -51,6 +51,7 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv \ file://0001-Dont-use-isystem.patch \ file://download.patch \ file://0001-Make-ts-module-external.patch \ + file://0001-sfm-link-with-Glog_LIBS.patch;patchdir=../contrib \ " SRC_URI_append_riscv64 = " file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=../contrib"
Signature · 1 line
2.17.1
PATCH 39/50 debootstrap: 1.0.67 -> 1.0.123
In reply to Armin KusterFrom: Hongxu Jia <[email protected]>
- Excise all devices.tar.gz code
- Use yocto vars to override hardcoded dir to support native and nativesdk
--- ...t-to-override-usr-sbin-and-usr-share.patch | 41 +++++++++++++++ ...upport-to-override-usr-bin-arch-test.patch | 47 ++++++++++++++++++ .../debootstrap/debootstrap/devices.tar.gz | Bin 767 -> 0 bytes .../debootstrap/debootstrap_1.0.123.bb | 23 +++++++++ .../debootstrap/debootstrap_1.0.67.bb | 35 ------------- 5 files changed, 111 insertions(+), 35 deletions(-) create mode 100644 meta-oe/recipes-devtools/debootstrap/debootstrap/0001-support-to-override-usr-sbin-and-usr-share.patch create mode 100644 meta-oe/recipes-devtools/debootstrap/debootstrap/0002-support-to-override-usr-bin-arch-test.patch delete mode 100644 meta-oe/recipes-devtools/debootstrap/debootstrap/devices.tar.gz create mode 100644 meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.123.bb delete mode 100644 meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.67.bb
meta-oe/recipes-devtools/debootstrap/debootstrap/0001-support-to-override-usr-sbin-and-usr-share.patch new file +41 -0
@@ -0,0 +1,41 @@ +From 87d0174e8d56e7458dc94f05f82ab7a67a5cf7d0 Mon Sep 17 00:00:00 2001 +From: Hongxu Jia <[email protected]> +Date: Thu, 8 Apr 2021 14:06:05 +0800 +Subject: [PATCH 1/2] support to override /usr/sbin and /usr/share + +Upstream-Status: Submitted [https://salsa.debian.org/installer-team/debootstrap/-/merge_requests/55] + +Signed-off-by: Hongxu Jia <[email protected]> +--- + Makefile | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +diff --git a/Makefile b/Makefile +index 8516803..a2d8c00 100644 +--- a/Makefile ++++ b/Makefile +@@ -5,14 +5,16 @@ all: + + clean: + +-DSDIR=$(DESTDIR)/usr/share/debootstrap ++datadir ?= "/usr/share" ++sbindir ?= "/usr/sbin" ++DSDIR=$(DESTDIR)${datadir}/debootstrap + install: + mkdir -p $(DSDIR)/scripts +- mkdir -p $(DESTDIR)/usr/sbin ++ mkdir -p $(DESTDIR)$(sbindir) + + cp -a scripts/* $(DSDIR)/scripts/ + install -o root -g root -m 0644 functions $(DSDIR)/ + +- sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)/usr/sbin/debootstrap +- chown root:root $(DESTDIR)/usr/sbin/debootstrap +- chmod 0755 $(DESTDIR)/usr/sbin/debootstrap ++ sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)$(sbindir)/debootstrap ++ chown root:root $(DESTDIR)$(sbindir)/debootstrap ++ chmod 0755 $(DESTDIR)$(sbindir)/debootstrap +-- +2.17.1 +
meta-oe/recipes-devtools/debootstrap/debootstrap/0002-support-to-override-usr-bin-arch-test.patch new file +47 -0
47 lines not on this page · raw message
meta-oe/recipes-devtools/debootstrap/debootstrap/devices.tar.gz deleted binary +0 -0
meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.123.bb new file +23 -0
@@ -0,0 +1,23 @@ +SUMMARY = "Install a Debian system into a subdirectory" +HOMEPAGE = "https://wiki.debian.org/Debootstrap" +SECTION = "devel" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://debian/copyright;md5=1e68ced6e1689d4cd9dac75ff5225608" + +SRC_URI = "\ + http://http.debian.net/debian/pool/main/d/debootstrap/debootstrap_${PV}.tar.gz \ + file://0001-support-to-override-usr-sbin-and-usr-share.patch \ + file://0002-support-to-override-usr-bin-arch-test.patch \ +" + +SRC_URI[md5sum] = "b959c7ac01839e9b96a733d27b19e59e" +SRC_URI[sha256sum] = "5e5a8147ecdd6be0eea5ac4d6ed8192cc653e93f744dd3306c9b1cc51d6ca328" + +S = "${WORKDIR}/debootstrap" + +fakeroot do_install() { + oe_runmake 'DESTDIR=${D}' install + chown -R root:root ${D}${datadir}/debootstrap +} + +BBCLASSEXTEND = "native nativesdk"
meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.67.bb deleted +0 -35
@@ -1,35 +0,0 @@ -SUMMARY = "Install a Debian system into a subdirectory" -HOMEPAGE = "https://wiki.debian.org/Debootstrap" -SECTION = "devel" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://debian/copyright;md5=1e68ced6e1689d4cd9dac75ff5225608" - -inherit pkgconfig - -SRC_URI = "\ - http://http.debian.net/debian/pool/main/d/debootstrap/debootstrap_1.0.67.tar.gz \ - file://devices.tar.gz;unpack=0 \ -" - -SRC_URI[md5sum] = "eacabfe2e45415af60b1d74c3a23418a" -SRC_URI[sha256sum] = "0a12e0a2bbff185d47711a716b1f2734856100e8784361203e834fed0cffa51b" - -S = "${WORKDIR}/${BP}" - -# All Makefile does is creation of devices.tar.gz, which fails in OE build, we use -# static devices.tar.gz as work around -# | NOTE: make -j 8 -e MAKEFLAGS= -# | rm -rf dev -# | mkdir -p dev -# | chown 0:0 dev -# | chown: changing ownership of `dev': Operation not permitted -# | make: *** [devices.tar.gz] Error 1 -# | WARNING: exit code 1 from a shell command. -do_compile_prepend() { - cp ${WORKDIR}/devices.tar.gz ${B} -} - -do_install() { - oe_runmake 'DESTDIR=${D}' install - chown -R root:root ${D}${datadir}/debootstrap -}
Signature · 1 line
2.17.1
PATCH 40/50 bats: upgrade 1.1.0 -> 1.3.0
In reply to Armin KusterFrom: Kamil Dziezyk <[email protected]>
Add 'pretty' PACKAGECONFIG option with ncurses runtime dependency. This option allows to display test results with '--formatter pretty|-p' bats command line option.
---
.../recipes-test/bats/{bats_1.1.0.bb => bats_1.3.0.bb} | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
rename meta-oe/recipes-test/bats/{bats_1.1.0.bb => bats_1.3.0.bb} (75%)meta-oe/recipes-test/bats/bats_1.3.0.bb renamed from meta-oe/recipes-test/bats/bats_1.1.0.bb +7 -3
@@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=2970203aedf9e829edb96a137a4fe81b" SRC_URI = "git://github.com/bats-core/bats-core.git \ " -# v1.1.0 -SRCREV = "c706d1470dd1376687776bbe985ac22d09780327" +# v1.3.0 +SRCREV = "9086c47854652f2731861b40385689c85f12103f" S = "${WORKDIR}/git"
@@ -18,4 +18,8 @@ do_install() { ${S}/install.sh ${D}${prefix} } -RDEPENDS_bats = "bash" +RDEPENDS_${PN} = "bash" +FILES_${PN} += "${libdir}/bats-core/*" + +PACKAGECONFIG ??= "pretty" +PACKAGECONFIG[pretty] = ",,,ncurses"
Signature · 1 line
2.17.1
PATCH 41/50 fwts: upgrade to 21.03.00
In reply to Armin KusterFrom: Ross Burton <[email protected]>
Rebase the musl patches.
Drop json-c dependency as this is no longer used.
Drop FILES_${PN}-dbg packaging as this happens magically now.
Drop -Wno-error CFLAGS as we patch out -Werror entirely.
Add dtc RDEPENDS as this is needed at runtime.
---
...d-correct-printf-qualifier-for-off_t.patch | 20 ++++++----
....h-instead-of-deprecated-sys-poll.h.patch} | 12 +++---
...ch => 0003-Remove-Werror-from-build.patch} | 18 ++++++---
...__SWORD_TYPE-if-not-defined-by-libc.patch} | 12 +++---
...ZE.patch => 0005-Undefine-PAGE_SIZE.patch} | 10 +++--
...t-to-fix-pointer-to-int-cast-issues.patch} | 37 ++++++++-----------
.../{fwts_20.07.00.bb => fwts_21.03.00.bb} | 18 ++++-----
7 files changed, 69 insertions(+), 58 deletions(-)
rename meta-oe/recipes-test/fwts/fwts/{0001-Include-poll.h-instead-of-deprecated-sys-poll.h.patch => 0002-Include-poll.h-instead-of-deprecated-sys-poll.h.patch} (81%)
rename meta-oe/recipes-test/fwts/fwts/{0001-Remove-Werror-from-build.patch => 0003-Remove-Werror-from-build.patch} (74%)
rename meta-oe/recipes-test/fwts/fwts/{0002-Define-__SWORD_TYPE-if-not-defined-by-libc.patch => 0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch} (79%)
rename meta-oe/recipes-test/fwts/fwts/{0003-Undefine-PAGE_SIZE.patch => 0005-Undefine-PAGE_SIZE.patch} (83%)
rename meta-oe/recipes-test/fwts/fwts/{0003-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch => 0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch} (64%)
rename meta-oe/recipes-test/fwts/{fwts_20.07.00.bb => fwts_21.03.00.bb} (65%)meta-oe/recipes-test/fwts/fwts/0001-Add-correct-printf-qualifier-for-off_t.patch +12 -8
@@ -1,16 +1,15 @@ -From 613e5cfe7751068062cc92f83870e436669fc0a8 Mon Sep 17 00:00:00 2001 +From ee787b53d734cd952c170c9303d213d3dd18a86f Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 8 Jun 2017 16:49:50 -0700 -Subject: [PATCH] Add correct printf qualifier for off_t +Subject: [PATCH 1/6] Add correct printf qualifier for off_t Signed-off-by: Khem Raj <[email protected]> - --- - src/bios/ebda_region/ebda_region.c | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) + src/bios/ebda_region/ebda_region.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bios/ebda_region/ebda_region.c b/src/bios/ebda_region/ebda_region.c -index 16c39357..ad6d635c 100644 +index b70ced10..947a24bd 100644 --- a/src/bios/ebda_region/ebda_region.c +++ b/src/bios/ebda_region/ebda_region.c @@ -83,9 +83,9 @@ static int ebda_test1(fwts_framework *fw)
@@ -25,14 +24,19 @@ index 16c39357..ad6d635c 100644 (entry->end_address - entry->start_address) / 1024, memory_map_name, entry->start_address, -@@ -93,8 +93,8 @@ static int ebda_test1(fwts_framework *fw) +@@ -93,9 +93,9 @@ static int ebda_test1(fwts_framework *fw) } else fwts_failed(fw, LOG_LEVEL_MEDIUM, "EBDAMappedNotReserved", - "EBDA region mapped at 0x%lx but not reserved in the %s table.", - ebda_addr, memory_map_name); +- + "EBDA region mapped at 0x%jdx but not reserved in the %s table.", + (intmax_t)ebda_addr, memory_map_name); - ++ return FWTS_OK; } + +-- +2.25.1 +
meta-oe/recipes-test/fwts/fwts/0002-Include-poll.h-instead-of-deprecated-sys-poll.h.patch renamed from meta-oe/recipes-test/fwts/fwts/0001-Include-poll.h-instead-of-deprecated-sys-poll.h.patch +7 -5
@@ -1,19 +1,18 @@ -From ed988c27efde5355c3ba9d0de8a14a4a40f798cc Mon Sep 17 00:00:00 2001 +From 1575b5ce3ecb8709806908061f689315553b40c7 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 6 Jun 2017 07:25:09 -0700 -Subject: [PATCH] Include poll.h instead of deprecated sys/poll.h +Subject: [PATCH 2/6] Include poll.h instead of deprecated sys/poll.h Upstream-Status: Pending Signed-off-by: Khem Raj <[email protected]> - --- src/lib/src/fwts_ipmi.c | 3 ++- src/lib/src/fwts_pipeio.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/src/fwts_ipmi.c b/src/lib/src/fwts_ipmi.c -index a4c8a511..e298969e 100644 +index ca7c55bb..0b16bec3 100644 --- a/src/lib/src/fwts_ipmi.c +++ b/src/lib/src/fwts_ipmi.c @@ -18,10 +18,11 @@
@@ -30,7 +29,7 @@ index a4c8a511..e298969e 100644 #include <linux/ipmi.h> diff --git a/src/lib/src/fwts_pipeio.c b/src/lib/src/fwts_pipeio.c -index 3b3cfaff..289564d1 100644 +index 716297c4..37752297 100644 --- a/src/lib/src/fwts_pipeio.c +++ b/src/lib/src/fwts_pipeio.c @@ -30,9 +30,9 @@
@@ -44,3 +43,6 @@ index 3b3cfaff..289564d1 100644 #include <sys/types.h> #include <sys/wait.h> #include <errno.h> +-- +2.25.1 +
meta-oe/recipes-test/fwts/fwts/0003-Remove-Werror-from-build.patch renamed from meta-oe/recipes-test/fwts/fwts/0001-Remove-Werror-from-build.patch +13 -5
@@ -1,16 +1,17 @@ -From 475979cf5c1af978f4e8409666365ec75b3320ea Mon Sep 17 00:00:00 2001 +From 7317aba872f2bcf052a7db9fa3c7a7ce3c55dc6b Mon Sep 17 00:00:00 2001 From: Benjamin Berg <[email protected]> Date: Mon, 21 Aug 2017 10:34:40 +0200 -Subject: [PATCH] Remove -Werror from build +Subject: [PATCH 3/6] Remove -Werror from build Upstream-Status: Pending - --- src/Makefile.am | 2 +- src/lib/src/Makefile.am | 2 +- src/utilities/Makefile.am | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) +diff --git a/src/Makefile.am b/src/Makefile.am +index a26a197b..70a28174 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -14,7 +14,7 @@ AM_CPPFLAGS = \
@@ -22,6 +23,8 @@ Upstream-Status: Pending -Wno-address-of-packed-member \ -Wfloat-equal -Wmissing-declarations \ -Wno-long-long -Wredundant-decls -Wshadow \ +diff --git a/src/lib/src/Makefile.am b/src/lib/src/Makefile.am +index 55c52b41..b85d0101 100644 --- a/src/lib/src/Makefile.am +++ b/src/lib/src/Makefile.am @@ -25,7 +25,7 @@ AM_CPPFLAGS = \
@@ -33,6 +36,8 @@ Upstream-Status: Pending -Wno-address-of-packed-member pkglib_LTLIBRARIES = libfwts.la +diff --git a/src/utilities/Makefile.am b/src/utilities/Makefile.am +index ecc25f0a..129c1036 100644 --- a/src/utilities/Makefile.am +++ b/src/utilities/Makefile.am @@ -16,7 +16,7 @@
@@ -42,5 +47,8 @@ Upstream-Status: Pending -AM_CPPFLAGS = -Wall -Werror -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \ +AM_CPPFLAGS = -Wall -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \ `pkg-config --silence-errors --cflags json` \ - `pkg-config --silence-errors --cflags json-c` - + `pkg-config --silence-errors --cflags json-c` \ + -I../lib/include +-- +2.25.1 +
meta-oe/recipes-test/fwts/fwts/0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch renamed from meta-oe/recipes-test/fwts/fwts/0002-Define-__SWORD_TYPE-if-not-defined-by-libc.patch +7 -5
@@ -1,7 +1,7 @@ -From 1112e51d240a206bdcf253878ef1f4963b92da8a Mon Sep 17 00:00:00 2001 +From 9456f2f779d3ed4a134d55571d8bec78ad3b28c1 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 6 Jun 2017 07:37:20 -0700 -Subject: [PATCH] Define __SWORD_TYPE if not defined by libc +Subject: [PATCH 4/6] Define __SWORD_TYPE if not defined by libc __SWORD_TYPE is internal to glibc, therefore check and define it if needed e.g. on musl
@@ -9,16 +9,15 @@ check and define it if needed e.g. on musl Upstream-Status: Pending Signed-off-by: Khem Raj <[email protected]> - --- src/lib/src/fwts_uefi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/src/fwts_uefi.c b/src/lib/src/fwts_uefi.c -index 544145fa..460b0b77 100644 +index 138f1164..13d9e36c 100644 --- a/src/lib/src/fwts_uefi.c +++ b/src/lib/src/fwts_uefi.c -@@ -59,6 +59,10 @@ typedef struct { +@@ -63,6 +63,10 @@ typedef struct { #define UEFI_IFACE_SYSFS (2) /* sysfs */ #define UEFI_IFACE_EFIVARS (3) /* efivar fs */
@@ -29,3 +28,6 @@ index 544145fa..460b0b77 100644 /* File system magic numbers */ #define PSTOREFS_MAGIC ((__SWORD_TYPE)0x6165676C) #define EFIVARFS_MAGIC ((__SWORD_TYPE)0xde5e81e4) +-- +2.25.1 +
meta-oe/recipes-test/fwts/fwts/0005-Undefine-PAGE_SIZE.patch renamed from meta-oe/recipes-test/fwts/fwts/0003-Undefine-PAGE_SIZE.patch +6 -4
@@ -1,7 +1,7 @@ -From 244e9551ab9bbc1dfa91d19cd472ef254a94ae41 Mon Sep 17 00:00:00 2001 +From 53b9f97fb7faed043134f2ab738347b20379d32f Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 6 Jun 2017 07:39:28 -0700 -Subject: [PATCH] Undefine PAGE_SIZE +Subject: [PATCH 5/6] Undefine PAGE_SIZE musl defines PAGE_SIZE and build complains of multiple definitions
@@ -9,13 +9,12 @@ of multiple definitions Upstream-Status: Pending Signed-off-by: Khem Raj <[email protected]> - --- src/lib/src/fwts_acpi_tables.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c -index bdd224aa..58e982a6 100644 +index dc42a8bd..4fa1246a 100644 --- a/src/lib/src/fwts_acpi_tables.c +++ b/src/lib/src/fwts_acpi_tables.c @@ -42,6 +42,7 @@
@@ -26,3 +25,6 @@ index bdd224aa..58e982a6 100644 #define PAGE_SIZE (4096) static fwts_acpi_table_info tables[ACPI_MAX_TABLES]; +-- +2.25.1 +
meta-oe/recipes-test/fwts/fwts/0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch renamed from meta-oe/recipes-test/fwts/fwts/0003-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch +15 -22
@@ -1,25 +1,24 @@ -From 1848b8f8b9be500046ca5d632789a068d6151815 Mon Sep 17 00:00:00 2001 +From f723458eb649a9ad1d5d0e3dd6e801b284680fa7 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 8 Jun 2017 16:50:59 -0700 -Subject: [PATCH] use intptr_t to fix pointer-to-int-cast issues +Subject: [PATCH 6/6] use intptr_t to fix pointer-to-int-cast issues uintptr_t is guaranteed to be wide enough that converting a void* to uintptr_t and back again will yield the original pointer value Signed-off-by: Khem Raj <[email protected]> - --- src/lib/src/fwts_acpi_tables.c | 4 ++-- src/lib/src/fwts_mmap.c | 2 +- - src/lib/src/fwts_smbios.c | 4 ++-- - 3 files changed, 5 insertions(+), 5 deletions(-) + src/lib/src/fwts_smbios.c | 2 +- + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c -index 58e982a6..6522032f 100644 +index 4fa1246a..7ef197cd 100644 --- a/src/lib/src/fwts_acpi_tables.c +++ b/src/lib/src/fwts_acpi_tables.c -@@ -156,7 +156,7 @@ static fwts_acpi_table_rsdp *fwts_acpi_get_rsdp(fwts_framework *fw, void *addr, +@@ -173,7 +173,7 @@ static fwts_acpi_table_rsdp *fwts_acpi_get_rsdp(fwts_framework *fw, void *addr, return NULL; }
@@ -28,7 +27,7 @@ index 58e982a6..6522032f 100644 return NULL; if (fwts_safe_memcpy(rsdp, mem, sizeof(fwts_acpi_table_rsdp)) != FWTS_OK) { -@@ -455,7 +455,7 @@ static int fwts_acpi_load_tables_from_firmware(fwts_framework *fw) +@@ -486,7 +486,7 @@ static int fwts_acpi_load_tables_from_firmware(fwts_framework *fw) if ((rsdp = fwts_acpi_get_rsdp(fw, rsdp_addr, &rsdp_len)) == NULL) return FWTS_ERROR;
@@ -38,10 +37,10 @@ index 58e982a6..6522032f 100644 /* Load any tables from XSDT if it's valid */ if (rsdp->xsdt_address) { diff --git a/src/lib/src/fwts_mmap.c b/src/lib/src/fwts_mmap.c -index e28abf87..2180b2cc 100644 +index 2f2514f1..fbd946f4 100644 --- a/src/lib/src/fwts_mmap.c +++ b/src/lib/src/fwts_mmap.c -@@ -81,7 +81,7 @@ int fwts_munmap(void *mem, const size_t size) +@@ -82,7 +82,7 @@ int fwts_munmap(void *mem, const size_t size) off_t offset; page_size = fwts_page_size();
@@ -51,24 +50,18 @@ index e28abf87..2180b2cc 100644 if (munmap((void *)((uint8_t *)mem - offset), size + offset) < 0) return FWTS_ERROR; diff --git a/src/lib/src/fwts_smbios.c b/src/lib/src/fwts_smbios.c -index e5b3c774..c8134926 100644 +index 8da572e9..04315bd3 100644 --- a/src/lib/src/fwts_smbios.c +++ b/src/lib/src/fwts_smbios.c -@@ -55,7 +55,7 @@ static void *fwts_smbios_find_entry_uefi(fwts_framework *fw, fwts_smbios_entry * +@@ -78,7 +78,7 @@ static void *fwts_smbios_find_entry_uefi( + if ((addr = fwts_scan_efi_systab(smbios)) != NULL) { fwts_smbios_entry *mapped_entry; - const size_t size = sizeof(fwts_smbios_entry); - if ((mapped_entry = fwts_mmap((off_t)addr, size)) != FWTS_MAP_FAILED) { + if ((mapped_entry = fwts_mmap((uintptr_t)addr, size)) != FWTS_MAP_FAILED) { if (fwts_safe_memcpy(entry, mapped_entry, size) == FWTS_OK) { (void)fwts_munmap(mapped_entry, size); *type = FWTS_SMBIOS; -@@ -91,7 +91,7 @@ static void *fwts_smbios30_find_entry_uefi(fwts_framework *fw, fwts_smbios30_ent - fwts_smbios30_entry *mapped_entry; - const size_t size = sizeof(fwts_smbios30_entry); - -- if ((mapped_entry = fwts_mmap((off_t)addr, size)) != FWTS_MAP_FAILED) { -+ if ((mapped_entry = fwts_mmap((uintptr_t)addr, size)) != FWTS_MAP_FAILED) { - if (fwts_safe_memread(mapped_entry, size) == FWTS_OK) { - *entry = *mapped_entry; - (void)fwts_munmap(mapped_entry, size); +-- +2.25.1 +
meta-oe/recipes-test/fwts/fwts_21.03.00.bb renamed from meta-oe/recipes-test/fwts/fwts_20.07.00.bb +9 -9
@@ -6,27 +6,27 @@ LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://src/main.c;beginline=1;endline=16;md5=31da590f3e9f3bd34dcdb9e4db568519" SRC_URI = "http://fwts.ubuntu.com/release/fwts-V${PV}.tar.gz;subdir=${BP} \ - file://0001-Include-poll.h-instead-of-deprecated-sys-poll.h.patch \ - file://0002-Define-__SWORD_TYPE-if-not-defined-by-libc.patch \ - file://0003-Undefine-PAGE_SIZE.patch \ file://0001-Add-correct-printf-qualifier-for-off_t.patch \ - file://0003-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch \ - file://0001-Remove-Werror-from-build.patch \ + file://0002-Include-poll.h-instead-of-deprecated-sys-poll.h.patch \ + file://0003-Remove-Werror-from-build.patch \ + file://0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch \ + file://0005-Undefine-PAGE_SIZE.patch \ + file://0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch \ " -SRC_URI[sha256sum] = "4a8e0211b388efbcfcb6530297e9a924d0afa2d6db58e9db2f031129eda6d66f" +SRC_URI[sha256sum] = "c22dcba2572e4237bf2fe9ab579e195cf051d3a99b2c07ab58f757cae02d24fb" COMPATIBLE_HOST = "(i.86|x86_64|aarch64|powerpc64).*-linux" -DEPENDS = "libpcre json-c glib-2.0 dtc bison-native libbsd" +DEPENDS = "libpcre glib-2.0 dtc bison-native libbsd" DEPENDS_append_libc-musl = " libexecinfo" +# Use brokensep for now (https://github.com/ColinIanKing/fwts/issues/2) inherit autotools-brokensep bash-completion pkgconfig -CFLAGS += "-I${STAGING_INCDIR}/json-c -Wno-error=unknown-pragmas" LDFLAGS_append_libc-musl = " -lexecinfo" FILES_${PN} += "${libdir}/fwts/lib*${SOLIBS}" FILES_${PN}-dev += "${libdir}/fwts/lib*${SOLIBSDEV} ${libdir}/fwts/lib*.la" FILES_${PN}-staticdev += "${libdir}/fwts/lib*a" -FILES_${PN}-dbg += "${libdir}/fwts/.debug" +RDEPENDS_${PN} += "dtc"
Signature · 1 line
2.17.1
PATCH 42/50 PEP8 double aggressive E701, E70 and E502
In reply to Armin KusterFrom: persianpros <[email protected]>
--- contrib/oe-stylize.py | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-)
contrib/oe-stylize.py +14 -7
@@ -353,7 +353,8 @@ if __name__ == "__main__": # ignore empty lines if line.isspace() or line is '': # flush comments into the olines - for c in commentBloc: olines.append(c) + for c in commentBloc: + olines.append(c) commentBloc = [] continue
@@ -370,7 +371,8 @@ if __name__ == "__main__": continue if var in seen_vars: - for c in commentBloc: seen_vars[var].append(c) + for c in commentBloc: + seen_vars[var].append(c) commentBloc = [] seen_vars[var].append(line) else:
@@ -389,24 +391,29 @@ if __name__ == "__main__": if not in_routine: print ("## Warning: unknown variable/routine \"%s\"" % originalLine.rstrip('\n')) var = 'others' - for c in commentBloc: seen_vars[var].append(c) + for c in commentBloc: + seen_vars[var].append(c) commentBloc = [] seen_vars[var].append(line) - if not keep and not in_routine: var = "" + if not keep and not in_routine: + var = "" # -- dump the sanitized .bb file -- addEmptyLine = False # write comments that are not related to variables nor routines - for l in commentBloc: olines.append(l) + for l in commentBloc: + olines.append(l) # write variables and routines previourVarPrefix = "unknown" for k in OE_vars: - if k=='SRC_URI': addEmptyLine = True + if k=='SRC_URI': + addEmptyLine = True if seen_vars[k] != []: if addEmptyLine and not k.startswith(previourVarPrefix): olines.append("") for l in seen_vars[k]: olines.append(l) previourVarPrefix = k.split('_')[0]=='' and "unknown" or k.split('_')[0] - for line in olines: print(line) + for line in olines: + print(line)
Signature · 1 line
2.17.1
PATCH 43/50 PEP8 double aggressive E20 and E211
In reply to Armin KusterFrom: persianpros <[email protected]>
--- contrib/oe-stylize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
contrib/oe-stylize.py +3 -3
@@ -312,10 +312,10 @@ def follow_rule(i, line): # if the line still does not respect the rule if not rules[i][0](line): # this is a rule disgression - print ("## Disgression: ", rules[i][2], " in: '", oldline, "'") + print("## Disgression: ", rules[i][2], " in: '", oldline, "'") else: # just remind user about his/her errors - print ("## Reminder: ", rules[i][2], " in : '", oldline, "'") + print("## Reminder: ", rules[i][2], " in : '", oldline, "'") return line
@@ -389,7 +389,7 @@ if __name__ == "__main__": line = follow_rule(5, line) if var == "": if not in_routine: - print ("## Warning: unknown variable/routine \"%s\"" % originalLine.rstrip('\n')) + print("## Warning: unknown variable/routine \"%s\"" % originalLine.rstrip('\n')) var = 'others' for c in commentBloc: seen_vars[var].append(c)
Signature · 1 line
2.17.1
PATCH 44/50 PEP8 double aggressive E22, E224, E241, E242 and E27
In reply to Armin KusterFrom: persianpros <[email protected]>
--- contrib/oe-stylize.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
contrib/oe-stylize.py +9 -9
@@ -222,7 +222,7 @@ for v in OE_vars: # No spaces are allowed at the beginning of lines that define a variable or # a do_ routine def respect_rule0(line): - return line.lstrip()==line + return line.lstrip() == line def conformTo_rule0(line): return line.lstrip()
@@ -239,7 +239,7 @@ def conformTo_rule1(line): # _Format guideline #2_: # Tabs should not be used (use spaces instead). def respect_rule2(line): - return line.count('\t')==0 + return line.count('\t') == 0 def conformTo_rule2(line): return line.expandtabs()
@@ -261,7 +261,7 @@ def respect_rule4(line): if r is not None: r2 = re.search(r'("?)([^"\\]*)(["\\]?)', r.group(5)) # do not test for None it because always match - return r2.group(1)=='"' and r2.group(3)!='' + return r2.group(1) == '"' and r2.group(3) != '' return False def conformTo_rule4(line): r = re.search(varRegexp, line)
@@ -271,7 +271,7 @@ def conformTo_rule4(line): # The correct spacing for a variable is FOO = "BAR". def respect_rule5(line): r = re.search(varRegexp, line) - return r is not None and r.group(2)==" " and r.group(4)==" " + return r is not None and r.group(2) == " " and r.group(4) == " " def conformTo_rule5(line): r = re.search(varRegexp, line) return ''.join([r.group(1), ' ', r.group(3), ' ', r.group(5)])
@@ -279,7 +279,7 @@ def conformTo_rule5(line): # _Format guideline #6_: # Don't use spaces or tabs on empty lines def respect_rule6(line): - return not line.isspace() or line=="\n" + return not line.isspace() or line == "\n" def conformTo_rule6(line): return ""
@@ -359,7 +359,7 @@ if __name__ == "__main__": continue if line.startswith('}'): - in_routine=False + in_routine = False keep = line.endswith('\\') or in_routine # handles commented lines
@@ -381,7 +381,7 @@ if __name__ == "__main__": var = k break if re.match(routineRegexp, line) is not None: - in_routine=True + in_routine = True line = follow_rule(0, line) elif re.match(varRegexp, line) is not None: line = follow_rule(0, line)
@@ -406,14 +406,14 @@ if __name__ == "__main__": # write variables and routines previourVarPrefix = "unknown" for k in OE_vars: - if k=='SRC_URI': + if k == 'SRC_URI': addEmptyLine = True if seen_vars[k] != []: if addEmptyLine and not k.startswith(previourVarPrefix): olines.append("") for l in seen_vars[k]: olines.append(l) - previourVarPrefix = k.split('_')[0]=='' and "unknown" or k.split('_')[0] + previourVarPrefix = k.split('_')[0] == '' and "unknown" or k.split('_')[0] for line in olines: print(line)
Signature · 1 line
2.17.1
PATCH 45/50 PEP8 double aggressive E301 ~ E306
In reply to Armin KusterFrom: persianpros <[email protected]>
--- contrib/oe-stylize.py | 35 +++++++++++++++++++ .../oeqa/selftest/cases/meta_oe_sources.py | 1 + 2 files changed, 36 insertions(+)
contrib/oe-stylize.py +35 -0
@@ -221,41 +221,59 @@ for v in OE_vars: # _Format guideline #0_: # No spaces are allowed at the beginning of lines that define a variable or # a do_ routine + + def respect_rule0(line): return line.lstrip() == line + + def conformTo_rule0(line): return line.lstrip() # _Format guideline #1_: # No spaces are allowed behind the line continuation symbol '\' + + def respect_rule1(line): if line.rstrip().endswith('\\'): return line.endswith('\\') else: return True + + def conformTo_rule1(line): return line.rstrip() # _Format guideline #2_: # Tabs should not be used (use spaces instead). + + def respect_rule2(line): return line.count('\t') == 0 + + def conformTo_rule2(line): return line.expandtabs() # _Format guideline #3_: # Comments inside bb files are allowed using the '#' character at the # beginning of a line. + + def respect_rule3(line): if line.lstrip().startswith('#'): return line.startswith('#') else: return True + + def conformTo_rule3(line): return line.lstrip() # _Format guideline #4_: # Use quotes on the right hand side of assignments FOO = "BAR" + + def respect_rule4(line): r = re.search(varRegexp, line) if r is not None:
@@ -263,33 +281,48 @@ def respect_rule4(line): # do not test for None it because always match return r2.group(1) == '"' and r2.group(3) != '' return False + + def conformTo_rule4(line): r = re.search(varRegexp, line) return ''.join([r.group(1), ' ', r.group(3), ' "', r.group(5), r.group(5).endswith('"') and '' or '"']) # _Format guideline #5_: # The correct spacing for a variable is FOO = "BAR". + + def respect_rule5(line): r = re.search(varRegexp, line) return r is not None and r.group(2) == " " and r.group(4) == " " + + def conformTo_rule5(line): r = re.search(varRegexp, line) return ''.join([r.group(1), ' ', r.group(3), ' ', r.group(5)]) # _Format guideline #6_: # Don't use spaces or tabs on empty lines + + def respect_rule6(line): return not line.isspace() or line == "\n" + + def conformTo_rule6(line): return "" # _Format guideline #7_: # Indentation of multiline variables such as SRC_URI is desireable. + + def respect_rule7(line): return True + + def conformTo_rule7(line): return line + rules = ( (respect_rule0, conformTo_rule0, "No spaces are allowed at the beginning of lines that define a variable or a do_ routine"), (respect_rule1, conformTo_rule1, "No spaces are allowed behind the line continuation symbol '\\'"),
@@ -303,6 +336,8 @@ rules = ( # Function to check that a line respects a rule. If not, it tries to conform # the line to the rule. Reminder or Disgression message are dump accordingly. + + def follow_rule(i, line): oldline = line # if the line does not respect the rule
meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py +1 -0
@@ -6,6 +6,7 @@ import tempfile from oeqa.selftest.case import OESelftestTestCase from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars + class MetaOESourceMirroring(OESelftestTestCase): # Can we download everything from the OpenEmbedded Sources Mirror over http only def test_oe_source_mirror(self):
Signature · 1 line
2.17.1
PATCH 46/50 PEP8 double aggressive W291 ~ W293 and W391
In reply to Armin KusterFrom: persianpros <[email protected]>
--- contrib/oe-stylize.py | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-)
contrib/oe-stylize.py +21 -22
@@ -2,12 +2,12 @@ """\ Sanitize a bitbake file following the OpenEmbedded style guidelines, -see http://openembedded.org/wiki/StyleGuide +see http://openembedded.org/wiki/StyleGuide (C) 2006 Cyril Romain <[email protected]> MIT license -TODO: +TODO: - add the others OpenEmbedded variables commonly used: - parse command arguments and print usage on misuse . prevent giving more than one .bb file in arguments
@@ -19,7 +19,7 @@ TODO: - count rule breaks and displays them in the order frequence """ -from __future__ import print_function +from __future__ import print_function import fileinput import string import re
@@ -65,7 +65,7 @@ OE_vars = [ 'RSUGGESTS', 'RPROVIDES', 'RCONFLICTS', - 'FILES', + 'FILES', 'do_package', 'do_stage', 'addhandler',
@@ -215,36 +215,36 @@ routineRegexp = r'^([a-zA-Z0-9_ ${}-]+?)\(' # Variables seen in the processed .bb seen_vars = {} -for v in OE_vars: +for v in OE_vars: seen_vars[v] = [] -# _Format guideline #0_: -# No spaces are allowed at the beginning of lines that define a variable or +# _Format guideline #0_: +# No spaces are allowed at the beginning of lines that define a variable or # a do_ routine -def respect_rule0(line): +def respect_rule0(line): return line.lstrip() == line -def conformTo_rule0(line): +def conformTo_rule0(line): return line.lstrip() -# _Format guideline #1_: +# _Format guideline #1_: # No spaces are allowed behind the line continuation symbol '\' def respect_rule1(line): if line.rstrip().endswith('\\'): return line.endswith('\\') - else: + else: return True def conformTo_rule1(line): return line.rstrip() -# _Format guideline #2_: +# _Format guideline #2_: # Tabs should not be used (use spaces instead).
@@ -256,14 +256,14 @@ def conformTo_rule2(line): return line.expandtabs() # _Format guideline #3_: -# Comments inside bb files are allowed using the '#' character at the +# Comments inside bb files are allowed using the '#' character at the # beginning of a line. def respect_rule3(line): if line.lstrip().startswith('#'): return line.startswith('#') - else: + else: return True
@@ -364,8 +364,8 @@ if __name__ == "__main__": if True: lines.append(line) else: - # expandtabs on each line so that rule2 is always respected - # rstrip each line so that rule1 is always respected + # expandtabs on each line so that rule2 is always respected + # rstrip each line so that rule1 is always respected line = line.expandtabs().rstrip() # ignore empty lines (or line filled with spaces or tabs only) # so that rule6 is always respected
@@ -377,7 +377,7 @@ if __name__ == "__main__": in_routine = False commentBloc = [] olines = [] - for line in lines: + for line in lines: originalLine = line # rstrip line to remove line breaks characters line = line.rstrip()
@@ -393,7 +393,7 @@ if __name__ == "__main__": commentBloc = [] continue - if line.startswith('}'): + if line.startswith('}'): in_routine = False keep = line.endswith('\\') or in_routine
@@ -415,7 +415,7 @@ if __name__ == "__main__": if line.startswith(k): var = k break - if re.match(routineRegexp, line) is not None: + if re.match(routineRegexp, line) is not None: in_routine = True line = follow_rule(0, line) elif re.match(varRegexp, line) is not None:
@@ -443,12 +443,11 @@ if __name__ == "__main__": for k in OE_vars: if k == 'SRC_URI': addEmptyLine = True - if seen_vars[k] != []: + if seen_vars[k] != []: if addEmptyLine and not k.startswith(previourVarPrefix): olines.append("") - for l in seen_vars[k]: + for l in seen_vars[k]: olines.append(l) previourVarPrefix = k.split('_')[0] == '' and "unknown" or k.split('_')[0] for line in olines: print(line) -
Signature · 1 line
2.17.1
PATCH 47/50 vnstat: Disable install parallism to fix a potential install race
In reply to Armin KusterFrom: Khem Raj <[email protected]>
It seems in some cases installing vnstati program races and is tried twice, and second operation fails since it ensues somewhere between the file being created by first operation and file actually being created
/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/hosttools/install -c vnstat vnstati '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/vnstat/2.6-r0/image/usr/bin'
| /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/hosttools/install -c -m 644 ../vnstat-2.6/man/vnstatd.8 '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/vnstat/2.6-r0/image/usr/share/man/man8' | /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/hosttools/install -c -m 644 ../vnstat-2.6/man/vnstat.conf.5 '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/vnstat/2.6-r0/image/usr/share/man/man5' | /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/hosttools/install -c -m 644 ../vnstat-2.6/man/vnstat.1 ../vnstat-2.6/man/vnstati.1 '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/vnstat/2.6-r0/image/usr/share/man/man1' | make install-data-hook | make[3]: Entering directory '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/vnstat/2.6-r0/build' | Making install-exec in . | make[4]: Entering directory '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/vnstat/2.6-r0/build' | /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/hosttools/mkdir -p '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/vnstat/2.6-r0/image/usr/bin' | /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/hosttools/mkdir -p '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/vnstat/2.6-r0/image/usr/sbin' | /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/hosttools/install -c vnstat vnstati '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/vnstat/2.6-r0/image/usr/bin' | /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/hosttools/install -c vnstatd '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/vnstat/2.6-r0/image/usr/sbin' | /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/hosttools/install: cannot create regular file '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/vnstat/2.6-r0/image/usr/bin/vnstati': File exists | make[4]: *** [Makefile:822: install-binPROGRAMS] Error 1
--- meta-networking/recipes-support/vnstat/vnstat_2.6.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-support/vnstat/vnstat_2.6.bb +2 -0
@@ -17,4 +17,6 @@ do_install_append() { install -Dm644 ${S}/examples/systemd/vnstat.service "${D}${systemd_system_unitdir}/vnstat.service" } +PARALLEL_MAKEINST = "" + SYSTEMD_SERVICE_${PN} = "vnstat.service"
Signature · 1 line
2.17.1
PATCH 48/50 uftrace: Fix error on aarch64 when binutils update to 2.35.1
In reply to Armin KusterFrom: wangmy <[email protected]>
--- ...error-on-aarch64-with-binutils2.35.1.patch | 27 +++++++++++++++++++ .../recipes-devtools/uftrace/uftrace_0.9.4.bb | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-with-binutils2.35.1.patch
meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-with-binutils2.35.1.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 0bc502989822506af308a559ac1cd52af82cac03 Mon Sep 17 00:00:00 2001 +From: Lei Maohui <[email protected]> +Date: Wed, 14 Apr 2021 09:35:35 +0900 +Subject: [PATCH] Fix error on aarch64 with binutils2.35.1. + +WARN: child terminated by signal: 11: Segmentation fault + +Upstream-status: Pending + +Signed-off-by: Lei Maohui <[email protected]> +--- + arch/aarch64/mcount-arch.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/aarch64/mcount-arch.h b/arch/aarch64/mcount-arch.h +index 69efe521..60c2c1ba 100644 +--- a/arch/aarch64/mcount-arch.h ++++ b/arch/aarch64/mcount-arch.h +@@ -31,7 +31,7 @@ struct mcount_arch_context { + double d[ARCH_MAX_FLOAT_REGS]; + }; + +-#define ARCH_PLT0_SIZE 32 ++#define ARCH_PLT0_SIZE 16 + #define ARCH_PLTHOOK_ADDR_OFFSET 0 + + struct mcount_disasm_engine;
meta-oe/recipes-devtools/uftrace/uftrace_0.9.4.bb +1 -0
@@ -13,6 +13,7 @@ inherit autotools PV .= "+git${SRCPV}" SRCREV = "d648bbffedef529220896283fb59e35531c13804" SRC_URI = "git://github.com/namhyung/${BPN} \ + file://0001-Fix-error-on-aarch64-with-binutils2.35.1.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
2.17.1
PATCH 49/50 open-vm-tools: upgrade 11.0.1 -> 11.2.5
In reply to Armin KusterFrom: Randy MacLeod <[email protected]>
Drop 0001-GitHub-Issue-367.-Remove-references-to-deprecated-G_.patch since it was a backport.
Drop 0001-pollGtk-Drop-volatile-qualifier.patch
since it's covered by:
f48efc8e Make pollGtk resetable.
Drop 0001-utilBacktrace-Ignore-Warray-bounds.patch since it's covered by:
0cfda58a Make peeking back into the stack work for back traces
Drop 0002-add-include-sys-sysmacros.h.patch
since it's covered by:
69b7e1f9 Include sysmacros.h directly as mandated by glibc-2.25.
Refit:
0005-Use-configure-to-test-for-feature-instead-of-platfor.patch 0009-Rename-poll.h-to-vm_poll.h.patch 0002-hgfsServerLinux-Consider-64bit-time_t-possibility.patch 0011-Use-uintmax_t-for-handling-rlim_t.patch
Add:
0001-Add-resolv_compat.h-for-musl-builds.patch
---
...-Add-resolv_compat.h-for-musl-builds.patch | 72 ++
....-Remove-references-to-deprecated-G_.patch | 94 ---
...0001-pollGtk-Drop-volatile-qualifier.patch | 32 -
...1-utilBacktrace-Ignore-Warray-bounds.patch | 33 -
.../0002-add-include-sys-sysmacros.h.patch | 30 -
...ux-Consider-64bit-time_t-possibility.patch | 42 +-
...-test-for-feature-instead-of-platfor.patch | 24 +-
.../0009-Rename-poll.h-to-vm_poll.h.patch | 726 ++----------------
...11-Use-uintmax_t-for-handling-rlim_t.patch | 25 +-
...ools_11.0.1.bb => open-vm-tools_11.2.5.bb} | 13 +-
10 files changed, 184 insertions(+), 907 deletions(-)
create mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Add-resolv_compat.h-for-musl-builds.patch
delete mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-GitHub-Issue-367.-Remove-references-to-deprecated-G_.patch
delete mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-pollGtk-Drop-volatile-qualifier.patch
delete mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-utilBacktrace-Ignore-Warray-bounds.patch
delete mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch
rename meta-networking/recipes-support/open-vm-tools/{open-vm-tools_11.0.1.bb => open-vm-tools_11.2.5.bb} (93%)meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Add-resolv_compat.h-for-musl-builds.patch new file +72 -0
@@ -0,0 +1,72 @@ +From c0c36ba5dd7047710e4c3135f147ce4119021200 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin <[email protected]> +Date: Wed, 14 Apr 2021 10:24:52 -0400 +Subject: [PATCH] Add resolv_compat.h for musl builds + +musl doesn't implement res_ninit, so it needs to be defined +independently for musl builds. This patch is based on the one at +https://gitweb.gentoo.org/proj/musl.git/tree/dev-qt/qtwebengine/files/qtwebengine-5.7.0-musl-resolver.patch?id=7f4100326793d55d45d0f5bb6178827ce6173513 + +Upstream-Status: Pending + +Signed-off-by: Trevor Gamblin <[email protected]> +--- + open-vm-tools/lib/nicInfo/nicInfoPosix.c | 4 +++ + open-vm-tools/lib/nicInfo/resolv_compat.h | 30 +++++++++++++++++++++++ + 2 files changed, 34 insertions(+) + create mode 100644 open-vm-tools/lib/nicInfo/resolv_compat.h + +diff --git a/open-vm-tools/lib/nicInfo/nicInfoPosix.c b/open-vm-tools/lib/nicInfo/nicInfoPosix.c +index 8710c542..25f3146e 100644 +--- a/open-vm-tools/lib/nicInfo/nicInfoPosix.c ++++ b/open-vm-tools/lib/nicInfo/nicInfoPosix.c +@@ -70,6 +70,10 @@ + # include <net/if.h> + #endif + ++#if !defined(__GLIBC__) ++#include "resolv_compat.h" ++#endif ++ + /* + * resolver(3) and IPv6: + * +diff --git a/open-vm-tools/lib/nicInfo/resolv_compat.h b/open-vm-tools/lib/nicInfo/resolv_compat.h +new file mode 100644 +index 00000000..d768464b +--- /dev/null ++++ b/open-vm-tools/lib/nicInfo/resolv_compat.h +@@ -0,0 +1,30 @@ ++#if !defined(__GLIBC__) ++/*************************************************************************** ++ * resolv_compat.h ++ * ++ * Mimick GLIBC's res_ninit() and res_nclose() for musl libc ++ * Note: res_init() is actually deprecated according to ++ * http://docs.oracle.com/cd/E36784_01/html/E36875/res-nclose-3resolv.html ++ **************************************************************************/ ++#include <string.h> ++ ++static inline int res_ninit(res_state statp) ++{ ++ int rc = res_init(); ++ if (statp != &_res) { ++ memcpy(statp, &_res, sizeof(*statp)); ++ } ++ return rc; ++} ++ ++static inline int res_nclose(res_state statp) ++{ ++ if (!statp) ++ return -1; ++ if (statp != &_res) { ++ memset(statp, 0, sizeof(*statp)); ++ } ++ return 0; ++} ++#endif ++ +-- +2.30.2 +
meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-GitHub-Issue-367.-Remove-references-to-deprecated-G_.patch deleted +0 -94
94 lines not on this page · raw message
meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-pollGtk-Drop-volatile-qualifier.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From 7bd280f3cc07208760759c98bbfbac3f9d28f77c Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Fri, 5 Mar 2021 08:58:29 -0800 -Subject: [PATCH] pollGtk: Drop volatile qualifier - -glib-2.0 has changed the function interfaces as well and do not expect -it to be volatile. GCC 11 complains about it - -glib/gatomic.h:112:5: error: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Werror=incompatible-pointer-types] - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- - open-vm-tools/lib/pollGtk/pollGtk.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/open-vm-tools/lib/pollGtk/pollGtk.c b/open-vm-tools/lib/pollGtk/pollGtk.c -index 6d95bf01..a941e7a7 100644 ---- a/open-vm-tools/lib/pollGtk/pollGtk.c -+++ b/open-vm-tools/lib/pollGtk/pollGtk.c -@@ -1473,7 +1473,7 @@ PollGtkBasicCallback(gpointer data) // IN: The eventEntry - void - Poll_InitGtk(void) - { -- static volatile gsize inited = 0; -+ static gsize inited = 0; - - static const PollImpl gtkImpl = - { --- -2.30.1 -
meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-utilBacktrace-Ignore-Warray-bounds.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From ac3f93ea087d3a5461fe57fe021d0fe9a959e13c Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Wed, 25 Dec 2019 15:25:02 -0800 -Subject: [PATCH] utilBacktrace: Ignore -Warray-bounds - -This is new warning with gcc10, until its fixed ignore it like gcc<10 -did - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- - open-vm-tools/lib/user/utilBacktrace.c | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/open-vm-tools/lib/user/utilBacktrace.c b/open-vm-tools/lib/user/utilBacktrace.c -index b72340ad..97ca53f2 100644 ---- a/open-vm-tools/lib/user/utilBacktrace.c -+++ b/open-vm-tools/lib/user/utilBacktrace.c -@@ -517,6 +517,11 @@ Util_BacktraceWithFunc(int bugNr, // IN: - } else { - outFunc(outFuncData, "Backtrace for bugNr=%d\n",bugNr); - } -+#pragma GCC diagnostic push -+#pragma GCC diagnostic ignored "-Warray-bounds" -+ - Util_BacktraceFromPointerWithFunc(&x[-2], outFunc, outFuncData); -+#pragma GCC diagnostic pop - #endif - } -+ --- -2.24.1 -
meta-networking/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From 3fa237b3afabc293e563292b8d89265a871626ad Mon Sep 17 00:00:00 2001 -From: Martin Kelly <[email protected]> -Date: Mon, 22 May 2017 17:00:05 -0700 -Subject: [PATCH] add #include <sys/sysmacros.h> - -In newer glibc versions, the definition for major() has been moved to -sys/sysmacros.h, and using the older version in <sys/types.h> has been -deprecated. So, add an include for <sys/sysmacros.h>. - -Upstream-Status: Pending - -Signed-off-by: Martin Kelly <[email protected]> ---- - open-vm-tools/lib/wiper/wiperPosix.c | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/open-vm-tools/lib/wiper/wiperPosix.c b/open-vm-tools/lib/wiper/wiperPosix.c -index bd542410..ccf06293 100644 ---- a/open-vm-tools/lib/wiper/wiperPosix.c -+++ b/open-vm-tools/lib/wiper/wiperPosix.c -@@ -43,6 +43,9 @@ - # include <libgen.h> - # endif /* __FreeBSD_version >= 500000 */ - #endif -+#if defined(__linux__) -+#include <sys/sysmacros.h> -+#endif - #include <unistd.h> - - #include "vmware.h"
meta-networking/recipes-support/open-vm-tools/open-vm-tools/0002-hgfsServerLinux-Consider-64bit-time_t-possibility.patch +25 -17
63 lines not on this page · raw message
meta-networking/recipes-support/open-vm-tools/open-vm-tools/0005-Use-configure-to-test-for-feature-instead-of-platfor.patch +15 -9
@@ -1,4 +1,4 @@ -From 719d60978f979cf2e03771a9b8a62e36c92639f9 Mon Sep 17 00:00:00 2001 +From b653a81da70c44af002dcbc7489ad9f4588ed11d Mon Sep 17 00:00:00 2001 From: Natanael Copa <[email protected]> Date: Wed, 18 Nov 2015 10:05:07 +0000 Subject: [PATCH] Use configure to test for feature instead of platform
@@ -18,7 +18,10 @@ The features we test for are: This is needed for musl libc. +Refit patch of open-vm-tools/lib/nicInfo/nicInfoPosix.c + Signed-off-by: Natanael Copa <[email protected]> +Signed-off-by: Randy MacLeod <[email protected]> --- open-vm-tools/configure.ac | 4 ++++ open-vm-tools/lib/misc/idLinux.c | 30 +++++++++++-------------
@@ -26,10 +29,10 @@ Signed-off-by: Natanael Copa <[email protected]> 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/open-vm-tools/configure.ac b/open-vm-tools/configure.ac -index 48ff1ef3..71e684bb 100644 +index 27f3717f..6baab9e3 100644 --- a/open-vm-tools/configure.ac +++ b/open-vm-tools/configure.ac -@@ -897,6 +897,7 @@ AC_CHECK_FUNCS( +@@ -923,6 +923,7 @@ AC_CHECK_FUNCS( AC_CHECK_FUNCS([ecvt]) AC_CHECK_FUNCS([fcvt])
@@ -37,7 +40,7 @@ index 48ff1ef3..71e684bb 100644 AC_CHECK_FUNC([mkdtemp], [have_mkdtemp=yes]) -@@ -1145,10 +1146,13 @@ fi +@@ -1132,10 +1133,13 @@ fi ### AC_CHECK_HEADERS([crypt.h])
@@ -52,7 +55,7 @@ index 48ff1ef3..71e684bb 100644 AC_CHECK_HEADERS([sys/io.h]) AC_CHECK_HEADERS([sys/param.h]) # Required to make the sys/user.h check work correctly on FreeBSD diff --git a/open-vm-tools/lib/misc/idLinux.c b/open-vm-tools/lib/misc/idLinux.c -index b950cf84..1dcfb508 100644 +index 1bb86f48..41c670cf 100644 --- a/open-vm-tools/lib/misc/idLinux.c +++ b/open-vm-tools/lib/misc/idLinux.c @@ -27,12 +27,9 @@
@@ -69,7 +72,7 @@ index b950cf84..1dcfb508 100644 #ifdef __APPLE__ #include <sys/socket.h> #include <TargetConditionals.h> -@@ -997,31 +994,32 @@ Id_EndSuperUser(uid_t uid) // IN: +@@ -1025,31 +1022,32 @@ Id_EndSuperUser(uid_t uid) // IN: static Bool IdIsSetUGid(void) {
@@ -115,13 +118,13 @@ index b950cf84..1dcfb508 100644 } #endif diff --git a/open-vm-tools/lib/nicInfo/nicInfoPosix.c b/open-vm-tools/lib/nicInfo/nicInfoPosix.c -index a22981d5..b4e08681 100644 +index cc5fa281..8710c542 100644 --- a/open-vm-tools/lib/nicInfo/nicInfoPosix.c +++ b/open-vm-tools/lib/nicInfo/nicInfoPosix.c -@@ -34,9 +34,13 @@ - #include <sys/socket.h> +@@ -35,9 +35,13 @@ #include <sys/stat.h> #include <errno.h> + #include <limits.h> -#if defined(__FreeBSD__) || defined(__APPLE__) +#if HAVE_SYS_SYSCTL_H # include <sys/sysctl.h>
@@ -133,3 +136,6 @@ index a22981d5..b4e08681 100644 # include <net/if.h> #endif #ifndef NO_DNET +-- +2.27.0 +
meta-networking/recipes-support/open-vm-tools/open-vm-tools/0009-Rename-poll.h-to-vm_poll.h.patch +48 -678
776 lines not on this page · raw message
meta-networking/recipes-support/open-vm-tools/open-vm-tools/0011-Use-uintmax_t-for-handling-rlim_t.patch +16 -9
@@ -1,29 +1,36 @@ -From 18eea61a7a768c6c3b57c6683c7bef7049f0f6ab Mon Sep 17 00:00:00 2001 +From 4b69d8fd78bf6edbc8b4ace58e621d46071fd8dc Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> -Date: Wed, 13 Jun 2018 23:37:09 -0700 -Subject: [PATCH] Use uintmax_t for handling rlim_t +Date: Wed, 24 Mar 2021 17:26:53 -0400 +Subject: [PATCH 2/2] Use uintmax_t for handling rlim_t rlimit types are not representable with long or long long formats, therefore use uintmax_t to typecast rlim_t types and use %j to print it +Refit patch for open-vm-tools-11.2.5. + Signed-off-by: Khem Raj <[email protected]> +Signed-off-by: Randy MacLeod <[email protected]> +Signed-off-by: Trevor Gamblin <[email protected]> --- open-vm-tools/lib/hgfsServer/hgfsServerLinux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c b/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c -index 0e6351a9..a2ee1740 100644 +index ba2e5624..889f730a 100644 --- a/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c +++ b/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c -@@ -5294,8 +5294,8 @@ HgfsWriteCheckIORange(off_t offset, // IN: +@@ -5292,8 +5292,8 @@ HgfsWriteCheckIORange(off_t offset, // IN: goto exit; } -- LOG(6, ("%s: File Size limits: 0x%"FMT64"x 0x%"FMT64"x\n", -- __FUNCTION__, fileSize.rlim_cur, fileSize.rlim_max)); -+ LOG(6, ("%s: File Size limits: 0x%jx 0x%jx\n", -+ __FUNCTION__, (uintmax_t)fileSize.rlim_cur, (uintmax_t)fileSize.rlim_max)); +- LOG(6, "%s: File Size limits: 0x%"FMT64"x 0x%"FMT64"x\n", +- __FUNCTION__, fileSize.rlim_cur, fileSize.rlim_max); ++ //LOG(6, ("%s: File Size limits: 0x%jx 0x%jx\n", ++ // __FUNCTION__, (uintmax_t)fileSize.rlim_cur, (uintmax_t)fileSize.rlim_max)); /* * Check the offset is within the file size range. +-- +2.30.2 +
meta-networking/recipes-support/open-vm-tools/open-vm-tools_11.2.5.bb renamed from meta-networking/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb +8 -5
@@ -11,6 +11,10 @@ SUMMARY = "Tools to enhance VMWare guest integration and performance" HOMEPAGE = "https://github.com/vmware/open-vm-tools" +DESCRIPTION = "\ +open-vm-tools is a set of services and modules that enable several features in VMware products \ +for better management of and seamless user interactions with guests.\ +" SECTION = "vmware-tools" LICENSE = "LGPL-2.0 & GPL-2.0 & BSD & CDDL-1.0"
@@ -26,7 +30,6 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https \ file://vmtoolsd.service \ file://vmtoolsd.init \ file://0001-configure.ac-don-t-use-dnet-config.patch;patchdir=.. \ - file://0002-add-include-sys-sysmacros.h.patch;patchdir=.. \ file://0003-Use-configure-test-for-struct-timespec.patch;patchdir=.. \ file://0004-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch;patchdir=.. \ file://0005-Use-configure-to-test-for-feature-instead-of-platfor.patch;patchdir=.. \
@@ -38,15 +41,15 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https \ file://0011-Use-uintmax_t-for-handling-rlim_t.patch;patchdir=.. \ file://0012-Use-off64_t-instead-of-__off64_t.patch;patchdir=.. \ file://0013-misc-Do-not-print-NULL-string-into-logs.patch;patchdir=.. \ - file://0001-GitHub-Issue-367.-Remove-references-to-deprecated-G_.patch;patchdir=.. \ file://0001-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch;patchdir=.. \ file://0002-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \ - file://0001-utilBacktrace-Ignore-Warray-bounds.patch;patchdir=.. \ file://0001-hgfsmounter-Makefile.am-support-usrmerge.patch;patchdir=.. \ - file://0001-pollGtk-Drop-volatile-qualifier.patch;patchdir=.. \ " -SRCREV = "d3edfd142a81096f9f58aff17d84219b457f4987" +SRC_URI_append_libc-musl = " file://0001-Add-resolv_compat.h-for-musl-builds.patch;patchdir=.. \ +" + +SRCREV = "7ae57c3c7c1f68c74637ad009673dae94ee52570" S = "${WORKDIR}/git/open-vm-tools"
Signature · 1 line
2.17.1
PATCH 50/50 open-vm-tools: Fix build with gcc 11
In reply to Armin KusterFrom: Khem Raj <[email protected]>
--- ...latile-qualifier-exposed-incorrectly.patch | 29 +++++++++++++++++++ .../open-vm-tools/open-vm-tools_11.2.5.bb | 1 + 2 files changed, 30 insertions(+) create mode 100644 meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-pollGtk-Fix-volatile-qualifier-exposed-incorrectly.patch
meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-pollGtk-Fix-volatile-qualifier-exposed-incorrectly.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 524fd4db646b4ac2155074b4cedf8436a8ff726d Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 15 Apr 2021 06:58:31 -0700 +Subject: [PATCH] pollGtk: Fix volatile qualifier exposed incorrectly + +GCC11 flags it + +Fixes +glib-2.0/glib/gatomic.h:117:5: error: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Werror=incompatible-pointer-types] + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + open-vm-tools/lib/pollGtk/pollGtk.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/open-vm-tools/lib/pollGtk/pollGtk.c b/open-vm-tools/lib/pollGtk/pollGtk.c +index 4ccaeda6..336a8bf1 100644 +--- a/open-vm-tools/lib/pollGtk/pollGtk.c ++++ b/open-vm-tools/lib/pollGtk/pollGtk.c +@@ -127,7 +127,7 @@ typedef struct Poll { + } Poll; + + static Poll *pollState; +-static volatile gsize inited = 0; ++static gsize inited = 0; + + static VMwareStatus + PollGtkCallback(PollClassSet classSet, // IN
meta-networking/recipes-support/open-vm-tools/open-vm-tools_11.2.5.bb +1 -0
@@ -44,6 +44,7 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https \ file://0001-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch;patchdir=.. \ file://0002-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \ file://0001-hgfsmounter-Makefile.am-support-usrmerge.patch;patchdir=.. \ + file://0001-pollGtk-Fix-volatile-qualifier-exposed-incorrectly.patch;patchdir=.. \ " SRC_URI_append_libc-musl = " file://0001-Add-resolv_compat.h-for-musl-builds.patch;patchdir=.. \
Signature · 1 line
2.17.1