patch review request
cover patch review request
Please review these next set of changes for gatesgarth. Builds cleanly on autobuilder except for two intermittent failures while executing tests for qemumips for which we already have a bug.
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/1696
Thanks,
Anuj
The following changes since commit 18642d02ec492366199cf10c0af7fd70224b3c79:
wireless-regdb: upgrade 2020.04.29 -> 2020.11.20 (2020-12-10 09:20:06 +0800)
are available in the Git repository at:
git://push.openembedded.org/openembedded-core-contrib anujm/gatesgarth
Alexander Kanavin (6):
linux-firmware: upgrade 20200817 -> 20201022
ruby: fix reproducibility
ffmpeg: fix reproducibility
kea: fix reproducibility
go: upgrade 1.15.2 -> 1.15.3
valgrind: exclude bar_bad/bar_bad_xml from ptests
Bruce Ashfield (3):
linux-yocto-rt/5.4: update to -rt44
linux-yocto/5.4: update to v5.4.80
lttng-modules: fix build against v5.10+
Changqing Li (1):
timezone: upgrade to 2020d
Dmitry Baryshkov (5):
linux-firmware: upgrade 20201022 -> 20201118
linux-firmware: package ath11k firmware
linux-firmware: upgrade 20201118 -> 20201218
linux-firmware: package firmware for Lontium lt9611uxc bridge
perl: fix installation failure because of shell issue
Jose Quaresma (1):
ffmpeg: add srt package config knob
Khairul Rohaizzat Jamaluddin (1):
go: Update 1.15.5 -> 1.15.6
Khem Raj (2):
go: Update to 1.15.5
go.bbclass: Use external linker for native packages
Mark Jonas (1):
parted: Make readline dependency optional
Nathan Rossi (1):
gcc: Add patch to resolve i*86 tune configuration overrides
Peter Kjellerstedt (2):
glibc: Make adjtime() for 32 bit support being called with delta ==
NULL
apr-util: Only specify --with-dbm=gdbm if gdbm support is enabled
Richard Purdie (7):
cups: Mark CVE-2009-0032 as a non-issue
cups: Mark CVE-2008-1033 as a non-issue
grub: Fix build reproducibility issue
grub: Add second fix for determinism issue
u-boot-tools: Fix reproducibility issue
groff: Fix reproducibility issue
man-db: Avoid reproducibility failures after fixing groff-native
Robert Yang (3):
ncurses: Make ncurses-tools depend on ncurses-terminfo-base
minicom: RDEPENDS on ncurses-terminfo-base archiver.bbclass: Fix --runall=deploy_archives for images
Steve Sakoman (1):
cups: whitelist CVE-2018-6553
Zhixiong Chi (1):
glibc: CVE-2020-29562 and CVE-2020-29573
meta/classes/archiver.bbclass | 1 +
meta/classes/go.bbclass | 1 +
meta/recipes-bsp/grub/files/determinism.patch | 40 ++++
meta/recipes-bsp/grub/grub2.inc | 1 +
meta/recipes-bsp/u-boot/u-boot-tools.inc | 15 ++
...er_unittest_support.cc-do-not-write-.patch | 27 +++
meta/recipes-connectivity/kea/kea_1.7.10.bb | 29 +--
...-adjtime-with-NULL-argument-BZ-26833.patch | 110 ++++++++++
.../glibc/glibc/CVE-2020-29562.patch | 155 ++++++++++++++
.../glibc/glibc/CVE-2020-29573.patch | 56 +++++
meta/recipes-core/glibc/glibc_2.32.bb | 3 +
meta/recipes-core/ncurses/ncurses.inc | 2 +-
meta/recipes-devtools/gcc/gcc-10.2.inc | 1 +
...0001-lib-Remove-i-86-march-overrides.patch | 113 ++++++++++
meta/recipes-devtools/go/go-1.15.inc | 5 +-
...e_1.15.2.bb => go-binary-native_1.15.6.bb} | 4 +-
meta/recipes-devtools/go/go-runtime_1.15.bb | 1 +
meta/recipes-devtools/go/go_1.15.bb | 3 +
meta/recipes-devtools/perl/perl_5.32.0.bb | 5 +-
...e.in-do-not-write-host-cross-cc-item.patch | 32 +++
meta/recipes-devtools/ruby/ruby_2.7.1.bb | 1 +
.../valgrind/valgrind/remove-for-aarch64 | 2 -
.../valgrind/valgrind/remove-for-all | 2 +
.../valgrind/valgrind/run-ptest | 10 +
.../valgrind/valgrind_3.16.1.bb | 2 +
meta/recipes-extended/cups/cups.inc | 7 +
meta/recipes-extended/groff/groff_1.22.4.bb | 2 +-
meta/recipes-extended/man-db/man-db_2.9.3.bb | 5 +
.../recipes-extended/minicom/minicom_2.7.1.bb | 2 +
meta/recipes-extended/parted/parted_3.3.bb | 5 +-
meta/recipes-extended/timezone/timezone.inc | 6 +-
...20200817.bb => linux-firmware_20201218.bb} | 21 +-
.../linux/linux-yocto-rt_5.4.bb | 6 +-
.../linux/linux-yocto-tiny_5.4.bb | 8 +-
meta/recipes-kernel/linux/linux-yocto_5.4.bb | 22 +-
...jtool-Rename-frame.h-objtool.h-v5.10.patch | 88 ++++++++
...rdered-extent-tracepoint-take-btrfs_.patch | 179 ++++++++++++++++
...ext4-fast-commit-recovery-path-v5.10.patch | 99 +++++++++
...x86-mmu-Add-TDP-MMU-PF-handler-v5.10.patch | 82 ++++++++
...int-Optimize-using-static_call-v5.10.patch | 196 ++++++++++++++++++
...defined-symbols-caused-by-incorrect-.patch | 55 +++++
.../lttng/lttng-modules_2.12.3.bb | 10 +-
...uild-fail-when-used-the-libsrt-1.4.1.patch | 52 +++++
...e-assembly-with-full-path-from-sourc.patch | 97 +++++++++
.../recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb | 8 +
meta/recipes-support/apr/apr-util_1.6.1.bb | 5 +-
46 files changed, 1523 insertions(+), 53 deletions(-)
create mode 100644 meta/recipes-bsp/grub/files/determinism.patch
create mode 100644 meta/recipes-connectivity/kea/files/0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch
create mode 100644 meta/recipes-core/glibc/glibc/0031-linux-Allow-adjtime-with-NULL-argument-BZ-26833.patch
create mode 100644 meta/recipes-core/glibc/glibc/CVE-2020-29562.patch
create mode 100644 meta/recipes-core/glibc/glibc/CVE-2020-29573.patch
create mode 100644 meta/recipes-devtools/gcc/gcc/0001-lib-Remove-i-86-march-overrides.patch
rename meta/recipes-devtools/go/{go-binary-native_1.15.2.bb => go-binary-native_1.15.6.bb} (83%)
create mode 100644 meta/recipes-devtools/ruby/ruby/0001-template-Makefile.in-do-not-write-host-cross-cc-item.patch
create mode 100644 meta/recipes-devtools/valgrind/valgrind/remove-for-all
rename meta/recipes-kernel/linux-firmware/{linux-firmware_20200817.bb => linux-firmware_20201218.bb} (98%)
create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0007-fix-objtool-Rename-frame.h-objtool.h-v5.10.patch
create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0009-fix-btrfs-make-ordered-extent-tracepoint-take-btrfs_.patch
create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0010-fix-ext4-fast-commit-recovery-path-v5.10.patch
create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0012-fix-kvm-x86-mmu-Add-TDP-MMU-PF-handler-v5.10.patch
create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0014-fix-tracepoint-Optimize-using-static_call-v5.10.patch
create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0016-fix-statedump-undefined-symbols-caused-by-incorrect-.patch
create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch
create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/0001-libavutil-include-assembly-with-full-path-from-sourc.patchSignature · 1 line
2.29.2
PATCH 1/35 linux-firmware: upgrade 20200817 -> 20201022
From: Alexander Kanavin <[email protected]>
License-Update: WHENCE file names updates
---
...{linux-firmware_20200817.bb => linux-firmware_20201022.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta/recipes-kernel/linux-firmware/{linux-firmware_20200817.bb => linux-firmware_20201022.bb} (99%)meta/recipes-kernel/linux-firmware/linux-firmware_20201022.bb renamed from meta/recipes-kernel/linux-firmware/linux-firmware_20200817.bb +2 -2
@@ -126,7 +126,7 @@ LIC_FILES_CHKSUM = "file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \ file://LICENCE.xc4000;md5=0ff51d2dc49fce04814c9155081092f0 \ file://LICENCE.xc5000;md5=1e170c13175323c32c7f4d0998d53f66 \ file://LICENCE.xc5000c;md5=12b02efa3049db65d524aeb418dd87ca \ - file://WHENCE;md5=4d229f79f8770b5b2c4aac655b9fabef \ + file://WHENCE;md5=daf28db5d6353de0a886f08106cffa22 \ " # These are not common licenses, set NO_GENERIC_LICENSE for them
@@ -198,7 +198,7 @@ PE = "1" SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/firmware/${BPN}-${PV}.tar.xz" -SRC_URI[sha256sum] = "76d05d5f1eff268d3b80675245fa596f557bd55ee2e16ddd54d18ffeae943887" +SRC_URI[sha256sum] = "bf586e0beb4c65f22bf0a79811f259aa0a5a7cc9f70eebecb260525b6914cef7" inherit allarch
Signature · 1 line
2.29.2
PATCH 2/35 linux-firmware: upgrade 20201022 -> 20201118
In reply to Anuj MittalFrom: Dmitry Baryshkov <[email protected]>
License-Update: firmware versions/filenames
---
...{linux-firmware_20201022.bb => linux-firmware_20201118.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta/recipes-kernel/linux-firmware/{linux-firmware_20201022.bb => linux-firmware_20201118.bb} (99%)meta/recipes-kernel/linux-firmware/linux-firmware_20201118.bb renamed from meta/recipes-kernel/linux-firmware/linux-firmware_20201022.bb +2 -2
@@ -126,7 +126,7 @@ LIC_FILES_CHKSUM = "file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \ file://LICENCE.xc4000;md5=0ff51d2dc49fce04814c9155081092f0 \ file://LICENCE.xc5000;md5=1e170c13175323c32c7f4d0998d53f66 \ file://LICENCE.xc5000c;md5=12b02efa3049db65d524aeb418dd87ca \ - file://WHENCE;md5=daf28db5d6353de0a886f08106cffa22 \ + file://WHENCE;md5=ef221e03fc58f4d34a132b801dfa1d68 \ " # These are not common licenses, set NO_GENERIC_LICENSE for them
@@ -198,7 +198,7 @@ PE = "1" SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/firmware/${BPN}-${PV}.tar.xz" -SRC_URI[sha256sum] = "bf586e0beb4c65f22bf0a79811f259aa0a5a7cc9f70eebecb260525b6914cef7" +SRC_URI[sha256sum] = "863d5a31da725b856a917280d1e3014929b3bc3d4e6e5faecf530c13afb7e2b9" inherit allarch
Signature · 1 line
2.29.2
PATCH 3/35 linux-firmware: package ath11k firmware
In reply to Anuj MittalFrom: Dmitry Baryshkov <[email protected]>
Package firmware for new generation of Atheros WiFi cards.
--- .../linux-firmware/linux-firmware_20201118.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
meta/recipes-kernel/linux-firmware/linux-firmware_20201118.bb +6 -1
@@ -261,7 +261,7 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \ ${PN}-bcm43xx-hdr \ ${PN}-atheros-license ${PN}-ar9170 ${PN}-ath6k ${PN}-ath9k \ ${PN}-gplv2-license ${PN}-carl9170 \ - ${PN}-ar3k-license ${PN}-ar3k ${PN}-ath10k-license ${PN}-ath10k ${PN}-qca \ + ${PN}-ar3k-license ${PN}-ar3k ${PN}-ath10k-license ${PN}-ath10k ${PN}-ath11k ${PN}-qca \ \ ${PN}-imx-sdma-license ${PN}-imx-sdma-imx6q ${PN}-imx-sdma-imx7d \ \
@@ -356,12 +356,17 @@ FILES_${PN}-ath10k = " \ ${nonarch_base_libdir}/firmware/ath10k \ " +FILES_${PN}-ath11k = " \ + ${nonarch_base_libdir}/firmware/ath11k \ +" + FILES_${PN}-qca = " \ ${nonarch_base_libdir}/firmware/qca \ " RDEPENDS_${PN}-ar3k += "${PN}-ar3k-license" RDEPENDS_${PN}-ath10k += "${PN}-ath10k-license" +RDEPENDS_${PN}-ath11k += "${PN}-ath10k-license" RDEPENDS_${PN}-qca += "${PN}-ath10k-license" # For ralink
Signature · 1 line
2.29.2
PATCH 4/35 linux-firmware: upgrade 20201118 -> 20201218
In reply to Anuj MittalFrom: Dmitry Baryshkov <[email protected]>
License-Update: firmware versions/filenames
---
...{linux-firmware_20201118.bb => linux-firmware_20201218.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta/recipes-kernel/linux-firmware/{linux-firmware_20201118.bb => linux-firmware_20201218.bb} (99%)meta/recipes-kernel/linux-firmware/linux-firmware_20201218.bb renamed from meta/recipes-kernel/linux-firmware/linux-firmware_20201118.bb +2 -2
@@ -126,7 +126,7 @@ LIC_FILES_CHKSUM = "file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \ file://LICENCE.xc4000;md5=0ff51d2dc49fce04814c9155081092f0 \ file://LICENCE.xc5000;md5=1e170c13175323c32c7f4d0998d53f66 \ file://LICENCE.xc5000c;md5=12b02efa3049db65d524aeb418dd87ca \ - file://WHENCE;md5=ef221e03fc58f4d34a132b801dfa1d68 \ + file://WHENCE;md5=03f0fad70b8b557b56084e3090198021 \ " # These are not common licenses, set NO_GENERIC_LICENSE for them
@@ -198,7 +198,7 @@ PE = "1" SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/firmware/${BPN}-${PV}.tar.xz" -SRC_URI[sha256sum] = "863d5a31da725b856a917280d1e3014929b3bc3d4e6e5faecf530c13afb7e2b9" +SRC_URI[sha256sum] = "a1cc1ff72c739f312b095df589e9fd639fc81c3f8f7966377ea35222dc94c04b" inherit allarch
Signature · 1 line
2.29.2
PATCH 5/35 linux-firmware: package firmware for Lontium lt9611uxc bridge
In reply to Anuj MittalFrom: Dmitry Baryshkov <[email protected]>
Package firmware for Lontium lt9611uxc DSI to HDMI bridge, found e.g. on Qualcomm RB5 platform.
--- .../linux-firmware/linux-firmware_20201218.bb | 10 ++++++++++ 1 file changed, 10 insertions(+)
meta/recipes-kernel/linux-firmware/linux-firmware_20201218.bb +10 -0
@@ -31,6 +31,7 @@ LICENSE = "\ & Firmware-iwlwifi_firmware \ & Firmware-IntcSST2 \ & Firmware-kaweth \ + & Firmware-Lontium \ & Firmware-Marvell \ & Firmware-moxa \ & Firmware-myri10ge_firmware \
@@ -94,6 +95,7 @@ LIC_FILES_CHKSUM = "file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \ file://LICENCE.it913x;md5=1fbf727bfb6a949810c4dbfa7e6ce4f8 \ file://LICENCE.iwlwifi_firmware;md5=3fd842911ea93c29cd32679aa23e1c88 \ file://LICENCE.kaweth;md5=b1d876e562f4b3b8d391ad8395dfe03f \ + file://LICENSE.Lontium;md5=4ec8dc582ff7295f39e2ca6a7b0be2b6 \ file://LICENCE.Marvell;md5=28b6ed8bd04ba105af6e4dcd6e997772 \ file://LICENCE.mediatek;md5=7c1976b63217d76ce47d0a11d8a79cf2 \ file://LICENCE.moxa;md5=1086614767d8ccf744a923289d3d4261 \
@@ -161,6 +163,7 @@ NO_GENERIC_LICENSE[Firmware-IntcSST2] = "LICENCE.IntcSST2" NO_GENERIC_LICENSE[Firmware-it913x] = "LICENCE.it913x" NO_GENERIC_LICENSE[Firmware-iwlwifi_firmware] = "LICENCE.iwlwifi_firmware" NO_GENERIC_LICENSE[Firmware-kaweth] = "LICENCE.kaweth" +NO_GENERIC_LICENSE[Firmware-Lontium] = "LICENSE.Lontium" NO_GENERIC_LICENSE[Firmware-Marvell] = "LICENCE.Marvell" NO_GENERIC_LICENSE[Firmware-mediatek] = "LICENCE.mediatek" NO_GENERIC_LICENSE[Firmware-moxa] = "LICENCE.moxa"
@@ -298,6 +301,7 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \ ${PN}-qcom-adreno-a3xx ${PN}-qcom-adreno-a530 ${PN}-qcom-adreno-a630 \ ${PN}-qcom-sdm845-audio ${PN}-qcom-sdm845-compute ${PN}-qcom-sdm845-modem \ ${PN}-amlogic-vdec-license ${PN}-amlogic-vdec \ + ${PN}-lt9611uxc ${PN}-lontium-license \ ${PN}-whence-license \ ${PN}-license \ "
@@ -402,6 +406,12 @@ FILES_${PN}-radeon = " \ RDEPENDS_${PN}-radeon += "${PN}-radeon-license" +# For lontium +LICENSE_${PN}-lt9611uxc = "Firmware-Lontium" + +FILES_${PN}-lontium-license = "${nonarch_base_libdir}/firmware/LICENSE.Lontium" +FILES_${PN}-lt9611uxc = "${nonarch_base_libdir}/firmware/lt9611uxc_fw.bin" + # For marvell LICENSE_${PN}-pcie8897 = "Firmware-Marvell" LICENSE_${PN}-pcie8997 = "Firmware-Marvell"
Signature · 1 line
2.29.2
PATCH 6/35 cups: whitelist CVE-2018-6553
In reply to Anuj MittalFrom: Steve Sakoman <[email protected]>
This an Ububtu specific issue:
The CUPS AppArmor profile incorrectly confined the dnssd backend due to use of hard links. A local attacker could possibly use this issue to escape confinement. This flaw affects versions prior to 2.2.7-1ubuntu2.1 in Ubuntu 18.04 LTS, prior to 2.2.4-7ubuntu3.1 in Ubuntu 17.10, prior to 2.1.3-4ubuntu0.5 in Ubuntu 16.04 LTS,
and prior to 1.7.2-0ubuntu1.10 in Ubuntu 14.04 LTS
--- meta/recipes-extended/cups/cups.inc | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-extended/cups/cups.inc +3 -0
@@ -20,6 +20,9 @@ SRC_URI = "https://github.com/apple/cups/releases/download/v${PV}/${BP}-source.t UPSTREAM_CHECK_URI = "https://github.com/apple/cups/releases" UPSTREAM_CHECK_REGEX = "cups-(?P<pver>\d+\.\d+(\.\d+)?)-source.tar" +# This is an Ubuntu only issue. +CVE_CHECK_WHITELIST += "CVE-2018-6553" + LEAD_SONAME = "libcupsdriver.so" CLEANBROKEN = "1"
Signature · 1 line
2.29.2
PATCH 7/35 cups: Mark CVE-2009-0032 as a non-issue
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
The CVE was against a cups plugin which is obsolete and we don't include.
--- meta/recipes-extended/cups/cups.inc | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-extended/cups/cups.inc +2 -0
@@ -20,6 +20,8 @@ SRC_URI = "https://github.com/apple/cups/releases/download/v${PV}/${BP}-source.t UPSTREAM_CHECK_URI = "https://github.com/apple/cups/releases" UPSTREAM_CHECK_REGEX = "cups-(?P<pver>\d+\.\d+(\.\d+)?)-source.tar" +# Issue affects pdfdistiller plugin used with but not part of cups +CVE_CHECK_WHITELIST += "CVE-2009-0032" # This is an Ubuntu only issue. CVE_CHECK_WHITELIST += "CVE-2018-6553"
Signature · 1 line
2.29.2
PATCH 8/35 cups: Mark CVE-2008-1033 as a non-issue
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
It only applies to MacOS.
--- meta/recipes-extended/cups/cups.inc | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-extended/cups/cups.inc +2 -0
@@ -20,6 +20,8 @@ SRC_URI = "https://github.com/apple/cups/releases/download/v${PV}/${BP}-source.t UPSTREAM_CHECK_URI = "https://github.com/apple/cups/releases" UPSTREAM_CHECK_REGEX = "cups-(?P<pver>\d+\.\d+(\.\d+)?)-source.tar" +# Issue only applies to MacOS +CVE_CHECK_WHITELIST += "CVE-2008-1033" # Issue affects pdfdistiller plugin used with but not part of cups CVE_CHECK_WHITELIST += "CVE-2009-0032" # This is an Ubuntu only issue.
Signature · 1 line
2.29.2
PATCH 9/35 grub: Fix build reproducibility issue
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
We're seeing reproducibility issue on the autobuilder due to changing module dependency ordering. Add some sorting to an awk script to fix this.
--- meta/recipes-bsp/grub/files/determinism.patch | 24 +++++++++++++++++++ meta/recipes-bsp/grub/grub2.inc | 1 + 2 files changed, 25 insertions(+) create mode 100644 meta/recipes-bsp/grub/files/determinism.patch
meta/recipes-bsp/grub/files/determinism.patch new file +24 -0
@@ -0,0 +1,24 @@ +The output in moddep.lst generated from syminfo.lst using genmoddep.awk is +not deterministic since the order of the dependencies on each line can vary +depending on how awk sorts the values in the array. + +Be deterministic in the output by sorting the dependencies on each line. + +Upstream-Status: Pending +Richard Purdie <[email protected]> + +Index: grub-2.04/grub-core/genmoddep.awk +=================================================================== +--- grub-2.04.orig/grub-core/genmoddep.awk ++++ grub-2.04/grub-core/genmoddep.awk +@@ -59,7 +59,9 @@ END { + } + modlist = "" + depcount[mod] = 0 +- for (depmod in uniqmods) { ++ n = asorti(uniqmods, w) ++ for (i = 1; i <= n; i++) { ++ depmod = w[i] + modlist = modlist " " depmod; + inverse_dependencies[depmod] = inverse_dependencies[depmod] " " mod + depcount[mod]++
meta/recipes-bsp/grub/grub2.inc +1 -0
@@ -27,6 +27,7 @@ SRC_URI = "${GNU_MIRROR}/grub/grub-${PV}.tar.gz \ file://script-Remove-unused-fields-from-grub_script_functio.patch \ file://CVE-2020-15706-script-Avoid-a-use-after-free-when-redefining-a-func.patch \ file://CVE-2020-15707-linux-Fix-integer-overflows-in-initrd-size-handling.patch \ + file://determinism.patch \ " SRC_URI[md5sum] = "5ce674ca6b2612d8939b9e6abed32934" SRC_URI[sha256sum] = "f10c85ae3e204dbaec39ae22fa3c5e99f0665417e91c2cb49b7e5031658ba6ea"
Signature · 1 line
2.29.2
PATCH 10/35 grub: Add second fix for determinism issue
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
There is a second list sorting problem in a generator script within grub, add a sort() of a list to resolve this.
--- meta/recipes-bsp/grub/files/determinism.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
meta/recipes-bsp/grub/files/determinism.patch +16 -0
@@ -4,6 +4,10 @@ depending on how awk sorts the values in the array. Be deterministic in the output by sorting the dependencies on each line. +Also, the output of the SOURCES lines in grub-core/Makefile.core.am, generated +from grub-core/Makefile.core.def with gentpl.py is not deterministic due to +missing sorting of the list used to generate it. Add such a sort. + Upstream-Status: Pending Richard Purdie <[email protected]>
@@ -22,3 +26,15 @@ Index: grub-2.04/grub-core/genmoddep.awk modlist = modlist " " depmod; inverse_dependencies[depmod] = inverse_dependencies[depmod] " " mod depcount[mod]++ +Index: grub-2.04/gentpl.py +=================================================================== +--- grub-2.04.orig/gentpl.py ++++ grub-2.04/gentpl.py +@@ -568,6 +568,7 @@ def foreach_platform_value(defn, platfor + for group in RMAP[platform]: + for value in defn.find_all(group + suffix): + r.append(closure(value)) ++ r.sort() + return ''.join(r) + + def platform_conditional(platform, closure):
Signature · 1 line
2.29.2
PATCH 11/35 linux-yocto-rt/5.4: update to -rt44
In reply to Anuj MittalFrom: Bruce Ashfield <[email protected]>
Integrating the following commit(s):
375e7ee20260 Linux 5.4.78-rt44
c948a34d2755 Linux 5.4.77-rt43
8189406f8f2b Linux 5.4.74-rt42
0856261877e2 timers: Don't block on ->expiry_lock for TIMER_IRQSAFE
416edb155e5d ptrace: fix ptrace_unfreeze_traced() race with rt-lock
6bd85935ab11 mm/memcontrol: Disable preemption in __mod_memcg_lruvec_state()
57ada856a2a8 net: Properly annotate the try-lock for the seqlock
1c80ecf69d2d Linux 5.4.74-rt41
d4318c110dc6 Linux 5.4.70-rt40
bdfc6168388d Linux 5.4.69-rt39
b6e0ef250594 Linux 5.4.66-rt38
151876f794fc Linux 5.4.61-rt37
4bdac3f47b53 Linux 5.4.59-rt36
cf9b41798238 Linux 5.4.58-rt35
631b98ae597b Linux 5.4.55-rt34
77d701a69ebb Linux 5.4.54-rt33
130cf1b82691 rwsem: Provide down_read_non_owner() and up_read_non_owner() for -RT
6ab4141069fc net: phy: fixed_phy: Remove unused seqcount
291d163db65a Bluetooth: Acquire sk_lock.slock without disabling interrupts
4c9f5d78fed4 workqueue: Sync with upstream--- meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb +1 -1
@@ -11,7 +11,7 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "97576fb7447efba82eb025bde3ae9ceb29939d5e" +SRCREV_machine ?= "375e7ee20260d4448761605ae55b5cc50e38d516" SRCREV_meta ?= "d626f9108d590d41e82b97cbffc380aa699e86e1" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \
Signature · 1 line
2.29.2
PATCH 12/35 linux-yocto/5.4: update to v5.4.80
In reply to Anuj MittalFrom: Bruce Ashfield <[email protected]>
Updating linux-yocto/5.4 to the latest korg -stable release that comprises the following commits:
9f4b26f3ea18 Linux 5.4.80
a88f08e78249 sched/fair: Fix overutilized update in enqueue_task_fair()
10ca291c7749 mm, page_alloc: skip ->waternark_boost for atomic order-0 allocations
a2761473d50b mm/userfaultfd: do not access vma->vm_mm after calling handle_userfault() 173e37322307 mm: memcg/slab: fix root memcg vmstats
fc82fd7f7df9 x86/microcode/intel: Check patch signature before saving microcode for early loading 09652ebd0dc1 seccomp: Set PF_SUPERPRIV when checking capability
fa9ccc177754 ptrace: Set PF_SUPERPRIV when checking capability
d51481382c74 mmc: sdhci-pci: Prefer SDR25 timing for High Speed mode for BYT-based Intel controllers 5b738014dadc drm/i915: Handle max_bpc==16
51cc709ed961 drm/amd/display: Add missing pflip irq for dcn2.0
1c1add911fd9 Drivers: hv: vmbus: Allow cleanup of VMBUS_CONNECT_CPU if disconnected
7411c05a6eea s390/dasd: fix null pointer dereference for ERP requests
e6e76a26fdc8 s390/cpum_sf.c: fix file permission for cpum_sfb_size
89d73a97af5c mac80211: free sta in sta_info_insert_finish() on errors
945c10ad59ca mac80211: minstrel: fix tx status processing corner case
336c331ef01e mac80211: minstrel: remove deferred sampling code
713f903dc4b5 xtensa: disable preemption around cache alias management calls
747467f3625b xtensa: fix TLBTEMP area placement
e7ea18de9bb3 regulator: workaround self-referent regulators
0d233d5766eb regulator: avoid resolve_supply() infinite recursion
65205dfe78ff regulator: fix memory leak with repeated set_machine_constraints()
4cab55d65974 regulator: pfuze100: limit pfuze-support-disable-sw to pfuze{100,200}
53a9502d9a69 spi: bcm2835aux: Fix use-after-free on unbind
2737549129ec spi: npcm-fiu: Don't leak SPI master in probe error path
3e04a4976add spi: Introduce device-managed SPI controller allocation
11bb6ae21c81 spi: lpspi: Fix use-after-free on unbind
760d4e3ee879 iio: adc: mediatek: fix unset field
d3e27c62334e iio: accel: kxcjk1013: Add support for KIOX010A ACPI DSM for setting tablet-mode 9f99cc38cf1a iio: accel: kxcjk1013: Replace is_smo8500_device with an acpi_type enum 308a06ac9fb8 ext4: fix bogus warning in ext4_update_dx_flag()
7f76c608135e iio: light: fix kconfig dependency bug for VCNL4035
2ba693eea318 staging: rtl8723bs: Add 024c:0627 to the list of SDIO device-ids
f59ef9ec20ac efivarfs: fix memory leak in efivarfs_create()
d73d0106e354 HID: logitech-dj: Fix an error in mse_bluetooth_descriptor
772ff2c77cce tty: serial: imx: keep console clocks always on
663f70f1f5e7 tty: serial: imx: fix potential deadlock
a3ac3d213572 ALSA: hda/realtek: Add some Clove SSID in the ALC293(ALC1220)
659f6731bcf4 ALSA: hda/realtek - Add supported for Lenovo ThinkPad Headset Button
c70c1b93f3d1 ALSA: mixart: Fix mutex deadlock
b9a69e5d0b37 ALSA: ctl: fix error path at adding user-defined element set
16a5e3748d86 ALSA: usb-audio: Add delay quirk for all Logitech USB devices
090ac65f8c7c ALSA: firewire: Clean up a locking issue in copy_resp_to_buf()
3b78db264675 speakup: Do not let the line discipline be used several times
0da75d37d199 HID: logitech-dj: Fix Dinovo Mini when paired with a MX5x00 receiver
4e23e329ec17 HID: logitech-dj: Handle quad/bluetooth keyboards with a builtin trackpad 770a55072f12 HID: logitech-hidpp: Add PID for MX Anywhere 2
8a411bb0d73f libfs: fix error cast of negative value in simple_attr_write()
9d1b5a8c720e efi/x86: Free efi_pgd with free_pages()
95fafa1cb7a5 bpf, sockmap: Avoid returning unneeded EAGAIN when redirecting to self
a9f3670728a0 bpf, sockmap: Use truesize with sk_rmem_schedule()
e8b1de6975db bpf, sockmap: On receive programs try to fast track SK_PASS ingress
329c84430a64 bpf, sockmap: Skb verdict SK_PASS to self already checked rmem limits
4983ffd34ffc xfs: revert "xfs: fix rmap key and record comparison functions"
989d275ac592 fail_function: Remove a redundant mutex unlock
b9589cb07932 regulator: ti-abb: Fix array out of bound read access on the first transition ad3c4c96bfb7 xfs: return corresponding errcode if xfs_initialize_perag() fail
738ec7670624 xfs: strengthen rmap record flags checking
388ca4a37dcd xfs: fix the minrecs logic when dealing with inode root child blocks
56588c1fdd19 can: m_can: process interrupt only when not runtime suspended
a3c94201e0a7 can: flexcan: flexcan_chip_start(): fix erroneous flexcan_transceiver_enable() during bus-off recovery 58f1657c3a58 iommu/vt-d: Avoid panic if iommu init fails in tboot system
964b02d50bab iommu/vt-d: Move intel_iommu_gfx_mapped to Intel IOMMU header
6d184f851182 can: kvaser_usb: kvaser_usb_hydra: Fix KCAN bittiming limits
987bd7901ae3 can: kvaser_pciefd: Fix KCAN bittiming limits
9df3884a4d6a bpf, sockmap: Ensure SO_RCVBUF memory is observed on ingress redirect
58f45daa2d0a bpf, sockmap: Fix partial copy_page_to_iter so progress can still be made 401afa5f5e5e net/mlx5: E-Switch, Fail mlx5_esw_modify_vport_rate if qos disabled
a5a1db757da1 drm/sun4i: dw-hdmi: fix error return code in sun8i_dw_hdmi_bind()
5e7f422c3810 MIPS: Alchemy: Fix memleak in alchemy_clk_setup_cpu
cb5ad04eeeb6 selftests/bpf: Fix error return code in run_getsockopt_test()
32ebbc84697b ASoC: qcom: lpass-platform: Fix memory leak
24ce39bf0aa2 can: m_can: m_can_stop(): set device to software init mode before closing db2f5579e725 can: m_can: m_can_class_free_dev(): introduce new function
9b0596c07da8 can: m_can: m_can_handle_state_change(): fix state change
69851481b342 can: tcan4x5x: tcan4x5x_can_remove(): fix order of deregistration
d527bb8bd577 can: tcan4x5x: tcan4x5x_can_probe(): add missing error checking for devm_regmap_init() 84089205dbd2 can: tcan4x5x: replace depends on REGMAP_SPI with depends on SPI
f0c8508bf874 can: flexcan: fix failure handling of pm_runtime_get_sync()
73788e8c3b02 can: peak_usb: fix potential integer overflow on shift of a int
4a6891e169df can: mcba_usb: mcba_usb_start_xmit(): first fill skb, then pass to can_put_echo_skb() 85c48dcd8735 can: ti_hecc: Fix memleak in ti_hecc_probe
85854e4e552e can: dev: can_restart(): post buffer from the right context
247b03eca2fd can: af_can: prevent potential access of uninitialized member in canfd_rcv() 5970c08eed35 can: af_can: prevent potential access of uninitialized member in can_rcv() ef097e93aca2 ip_tunnels: Set tunnel option flag when tunnel metadata is present
f5d6b6c2e993 tools, bpftool: Add missing close before bpftool net attach exit
6eadbc3b7ab7 perf lock: Don't free "lock_seq_stat" if read_count isn't zero
4c954fe28af1 RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs
1a358c4e9bb2 RDMA/pvrdma: Fix missing kfree() in pvrdma_register_device()
1b1ddde970de rfkill: Fix use-after-free in rfkill_resume()
6490ecdee551 Input: resistive-adc-touch - fix kconfig dependency on IIO_BUFFER
9a4b4a06addf ARM: dts: imx50-evk: Fix the chip select 1 IOMUX
58e4f34f52a4 arm64: dts: imx8mm: fix voltage for 1.6GHz CPU operating point
fd278c6359ac swiotlb: using SIZE_MAX needs limits.h included
cfee2333791a arm: dts: imx6qdl-udoo: fix rgmii phy-mode for ksz9031 phy
a8d6ae10e9fc arm64: dts imx8mn: Remove non-existent USB OTG2
b94479198240 arm64: dts: allwinner: h5: OrangePi Prime: Fix ethernet node
cab227c19cd1 MIPS: export has_transparent_hugepage() for modules
93f23689129f Input: adxl34x - clean up a data type in adxl34x_probe()
29dea2b91871 arm64: dts: allwinner: a64: bananapi-m64: Enable RGMII RX/TX delay on PHY 794a13015fb6 ARM: dts: sunxi: bananapi-m2-plus: Enable RGMII RX/TX delay on Ethernet PHY c6e7f6bdcbaa ARM: dts: sun9i: Enable both RGMII RX/TX delay on Ethernet PHY
6cb50545fe31 ARM: dts: sun8i: a83t: Enable both RGMII RX/TX delay on Ethernet PHY
cecaad1d3f48 ARM: dts: sun8i: h3: orangepi-plus2e: Enable RGMII RX/TX delay on Ethernet PHY ec268dd970a5 ARM: dts: sun7i: bananapi-m1-plus: Enable RGMII RX/TX delay on Ethernet PHY 303691562f8f ARM: dts: sun7i: cubietruck: Enable RGMII RX/TX delay on Ethernet PHY
b55bc15117d6 ARM: dts: sun6i: a31-hummingbird: Enable RGMII RX/TX delay on Ethernet PHY 260ceb0c4aa6 Revert "arm: sun8i: orangepi-pc-plus: Set EMAC activity LEDs to active high" 1446255d8600 ARM: dts: sun8i: r40: bananapi-m2-ultra: Fix ethernet node
31c4a413971b arm64: dts: allwinner: h5: OrangePi PC2: Fix ethernet node
345d06f5853f arm64: dts: allwinner: a64: Pine64 Plus: Fix ethernet node
96bde11bf2b2 arm64: dts: allwinner: a64: OrangePi Win: Fix ethernet node
ba6ebc22844d arm64: dts: allwinner: Pine H64: Enable both RGMII RX/TX delay
79de663dcb11 arm64: dts: allwinner: beelink-gs1: Enable both RGMII RX/TX delay
8afc6e00a1d1 hwmon: (pwm-fan) Fix RPM calculation
e240b4326887 gfs2: fix possible reference leak in gfs2_check_blk_type
195f9e1a5457 vfs: remove lockdep bogosity in __sb_start_write
54d11983c29c arm64: smp: Tell RCU about CPUs that fail to come online
e8df8c25aa05 arm64: psci: Avoid printing in cpu_psci_cpu_die()
71eea3d3df94 arm64: errata: Fix handling of 1418040 with late CPU onlining
e6f6e52acb96 ACPI: button: Add DMI quirk for Medion Akoya E2228T
58ced3741789 selftests: kvm: Fix the segment descriptor layout to match the actual layout 8ebc41496f6e scsi: ufs: Fix unbalanced scsi_block_reqs_cnt caused by ufshcd_hold()
e06dfd53a42a pinctrl: rockchip: enable gpio pclk for rockchip_gpio_to_irq
9865a26c9620 net: ftgmac100: Fix crash when removing driver
3f0ccca2729b net/ncsi: Fix netlink registration
9a1ac76ab15e net: usb: qmi_wwan: Set DTR quirk for MR400
7204f0be5b5e net/mlx5: Disable QoS when min_rates on all VFs are zero
3f9f112a6329 net/mlx5: Add handling of port type in rule deletion
3d6c81f9c96c tcp: only postpone PROBE_RTT if RTT is < current min_rtt estimate
04b7fd7609b3 sctp: change to hold/put transport for proto_unreach_timer
31790683293b qlcnic: fix error return code in qlcnic_83xx_restart_hw()
5241fa6e7acd qed: fix error return code in qed_iwarp_ll2_start()
f8e5578dcaa7 page_frag: Recover from memory pressure
f6f751cb315c net: x25: Increase refcnt of "struct x25_neigh" in x25_rx_call_request
9ecfcf48d735 net/tls: fix corrupted data in recvmsg
9e909956d0c7 net/smc: fix direct access to ib_gid_addr->ndev in smc_ib_determine_gid() ab1e4b3c406b net: qualcomm: rmnet: Fix incorrect receive packet handling during cleanup 782a503a369c net/mlx4_core: Fix init_hca fields offset
75b2b0d38068 net: lantiq: Wait for the GPHY firmware to be ready
65a596ec63aa netlabel: fix an uninitialized warning in netlbl_unlabel_staticlist()
d9704891f531 netlabel: fix our progress tracking in netlbl_unlabel_staticlist()
99ddc3211653 net: Have netpoll bring-up DSA management interface
bd17af3cf314 net: ethernet: ti: cpsw: fix error return code in cpsw_probe()
27e9ca6c82a0 net: dsa: mv88e6xxx: Avoid VTU corruption on 6097
805dfdb26e54 net: bridge: add missing counters to ndo_get_stats64 callback
fa03d6177be7 net: b44: fix error return code in b44_init_one()
78b9c4a8e338 mlxsw: core: Use variable timeout for EMAD retries
c35a7de217ce lan743x: prevent entire kernel HANG on open, for some platforms
5c7a00aa05d6 lan743x: fix issue causing intermittent kernel log warnings
88a5a3e1530c ipv6: Fix error path to cancel the meseage
0e8b0213dc60 inet_diag: Fix error path to cancel the meseage in inet_req_diag_fill() e5fe052c065d Exempt multicast addresses from five-second neighbor lifetime
2894a07110c6 devlink: Add missing genlmsg_cancel() in devlink_nl_sb_port_pool_fill() bedb089dcbf7 bnxt_en: read EEPROM A2h address using page 0
362bd03af589 atm: nicstar: Unmap DMA on send error
b2f95ff764c0 ah6: fix error return code in ah6_input()
fc8334619167 Linux 5.4.79
26c7d2883851 ACPI: GED: fix -Wformat
087c857e0131 KVM: x86: clflushopt should be treated as a no-op by emulation
7ae6f2df438d can: proc: can_remove_proc(): silence remove_proc_entry warning
1527ab7859b2 mac80211: always wind down STA state
df3305411447 Input: sunkbd - avoid use-after-free in teardown paths
cd61f14592df net: lantiq: Add locking for TX DMA channel
8cad37eb129f powerpc/8xx: Always fault when _PAGE_ACCESSED is not set
b57c75956e79 net/mlx5: Add retry mechanism to the command entry index allocation
7db82a5a4c15 net/mlx5: Fix a race when moving command interface to events mode
3fa9daaccce8 net/mlx5: poll cmd EQ in case of command timeout
42bb7b7b9654 net/mlx5: Use async EQ setup cleanup helpers for multiple EQs
b33905dc1ce5 MIPS: PCI: Fix MIPS build
01474e8cc342 selftests/powerpc: entry flush test
eb37345ed224 powerpc: Only include kup-radix.h for 64-bit Book3S
09495b5f7aab powerpc/64s: flush L1D after user accesses
b65458b6be80 powerpc/64s: flush L1D on kernel entry
bcf7f2d3fcec selftests/powerpc: rfi_flush: disable entry flush if present
--- .../linux/linux-yocto-rt_5.4.bb | 6 ++--- .../linux/linux-yocto-tiny_5.4.bb | 8 +++---- meta/recipes-kernel/linux/linux-yocto_5.4.bb | 22 +++++++++---------- 3 files changed, 18 insertions(+), 18 deletions(-)
meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb +3 -3
@@ -11,13 +11,13 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "375e7ee20260d4448761605ae55b5cc50e38d516" -SRCREV_meta ?= "d626f9108d590d41e82b97cbffc380aa699e86e1" +SRCREV_machine ?= "1ab0814d41526c27888888188d884884c8b4a52d" +SRCREV_meta ?= "dfb689e49ce2b6a1790d0747d6041a961b812db5" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}" -LINUX_VERSION ?= "5.4.78" +LINUX_VERSION ?= "5.4.80" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb +4 -4
@@ -6,7 +6,7 @@ KCONFIG_MODE = "--allnoconfig" require recipes-kernel/linux/linux-yocto.inc -LINUX_VERSION ?= "5.4.78" +LINUX_VERSION ?= "5.4.80" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
@@ -15,9 +15,9 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine_qemuarm ?= "6cf3b1d30bc7ac9bd86190129b3cbbdd04b8b236" -SRCREV_machine ?= "370ef947d5b1470e858bae5a300110566c994b9f" -SRCREV_meta ?= "d626f9108d590d41e82b97cbffc380aa699e86e1" +SRCREV_machine_qemuarm ?= "9a4d015ce467549f5f587a5001cd333ea7182aa2" +SRCREV_machine ?= "6f1adec8376dc0bbf423afa02d7d9fa12b73d5b5" +SRCREV_meta ?= "dfb689e49ce2b6a1790d0747d6041a961b812db5" PV = "${LINUX_VERSION}+git${SRCPV}"
meta/recipes-kernel/linux/linux-yocto_5.4.bb +11 -11
@@ -12,16 +12,16 @@ KBRANCH_qemux86 ?= "v5.4/standard/base" KBRANCH_qemux86-64 ?= "v5.4/standard/base" KBRANCH_qemumips64 ?= "v5.4/standard/mti-malta64" -SRCREV_machine_qemuarm ?= "b3bafed66cf1be24caaa9c876d7d9a8298df831b" -SRCREV_machine_qemuarm64 ?= "370ef947d5b1470e858bae5a300110566c994b9f" -SRCREV_machine_qemumips ?= "36c2a0b1caef0b2dd6b5777d1939c383238536a8" -SRCREV_machine_qemuppc ?= "370ef947d5b1470e858bae5a300110566c994b9f" -SRCREV_machine_qemuriscv64 ?= "370ef947d5b1470e858bae5a300110566c994b9f" -SRCREV_machine_qemux86 ?= "370ef947d5b1470e858bae5a300110566c994b9f" -SRCREV_machine_qemux86-64 ?= "370ef947d5b1470e858bae5a300110566c994b9f" -SRCREV_machine_qemumips64 ?= "971a3cedf9a2a7774fa072b9a13380fb59fd605b" -SRCREV_machine ?= "370ef947d5b1470e858bae5a300110566c994b9f" -SRCREV_meta ?= "d626f9108d590d41e82b97cbffc380aa699e86e1" +SRCREV_machine_qemuarm ?= "9c4e95c4439a84d2472404af630659ee3ac880e8" +SRCREV_machine_qemuarm64 ?= "6f1adec8376dc0bbf423afa02d7d9fa12b73d5b5" +SRCREV_machine_qemumips ?= "07747fd48470e60ea2323df735795d9d44b74edc" +SRCREV_machine_qemuppc ?= "6f1adec8376dc0bbf423afa02d7d9fa12b73d5b5" +SRCREV_machine_qemuriscv64 ?= "6f1adec8376dc0bbf423afa02d7d9fa12b73d5b5" +SRCREV_machine_qemux86 ?= "6f1adec8376dc0bbf423afa02d7d9fa12b73d5b5" +SRCREV_machine_qemux86-64 ?= "6f1adec8376dc0bbf423afa02d7d9fa12b73d5b5" +SRCREV_machine_qemumips64 ?= "f8d0d215cf1a02a1e2915b8d57fb8f9f29e5dc49" +SRCREV_machine ?= "6f1adec8376dc0bbf423afa02d7d9fa12b73d5b5" +SRCREV_meta ?= "dfb689e49ce2b6a1790d0747d6041a961b812db5" # remap qemuarm to qemuarma15 for the 5.4 kernel # KMACHINE_qemuarm ?= "qemuarma15"
@@ -30,7 +30,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" -LINUX_VERSION ?= "5.4.78" +LINUX_VERSION ?= "5.4.80" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native"
Signature · 1 line
2.29.2
PATCH 13/35 lttng-modules: fix build against v5.10+
In reply to Anuj MittalFrom: Bruce Ashfield <[email protected]>
lttng-modules doesn't currently build against the lastest 5.10-rc versions.
Upstream lttng does have fixes for the issues, but hasn't done a release that contains them yet. There are other patches on the 2.12.x branch, but I've skipped them for now as they aren't necessary for 5.10 builds, and can be picked up with the next full update.
We also bump the dev-upstream hash to make them easier to pickup for those building from git.
--- ...jtool-Rename-frame.h-objtool.h-v5.10.patch | 88 ++++++++ ...rdered-extent-tracepoint-take-btrfs_.patch | 179 ++++++++++++++++ ...ext4-fast-commit-recovery-path-v5.10.patch | 99 +++++++++ ...x86-mmu-Add-TDP-MMU-PF-handler-v5.10.patch | 82 ++++++++ ...int-Optimize-using-static_call-v5.10.patch | 196 ++++++++++++++++++ ...defined-symbols-caused-by-incorrect-.patch | 55 +++++ .../lttng/lttng-modules_2.12.3.bb | 10 +- 7 files changed, 707 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0007-fix-objtool-Rename-frame.h-objtool.h-v5.10.patch create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0009-fix-btrfs-make-ordered-extent-tracepoint-take-btrfs_.patch create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0010-fix-ext4-fast-commit-recovery-path-v5.10.patch create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0012-fix-kvm-x86-mmu-Add-TDP-MMU-PF-handler-v5.10.patch create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0014-fix-tracepoint-Optimize-using-static_call-v5.10.patch create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0016-fix-statedump-undefined-symbols-caused-by-incorrect-.patch
meta/recipes-kernel/lttng/lttng-modules/0007-fix-objtool-Rename-frame.h-objtool.h-v5.10.patch new file +88 -0
@@ -0,0 +1,88 @@ +From 37b9cb0e6cb92181b7a25583849a9d161a558982 Mon Sep 17 00:00:00 2001 +From: Michael Jeanson <[email protected]> +Date: Mon, 26 Oct 2020 13:41:02 -0400 +Subject: [PATCH 07/19] fix: objtool: Rename frame.h -> objtool.h (v5.10) + +See upstream commit : + + commit 00089c048eb4a8250325efb32a2724fd0da68cce + Author: Julien Thierry <[email protected]> + Date: Fri Sep 4 16:30:25 2020 +0100 + + objtool: Rename frame.h -> objtool.h + + Header frame.h is getting more code annotations to help objtool analyze + object files. + + Rename the file to objtool.h. + +Upstream-Status: Backport + +Signed-off-by: Michael Jeanson <[email protected]> +Signed-off-by: Mathieu Desnoyers <[email protected]> +Change-Id: Ic2283161bebcbf1e33b72805eb4d2628f4ae3e89 +--- + lttng-filter-interpreter.c | 2 +- + wrapper/{frame.h => objtool.h} | 19 ++++++++++++------- + 2 files changed, 13 insertions(+), 8 deletions(-) + rename wrapper/{frame.h => objtool.h} (50%) + +diff --git a/lttng-filter-interpreter.c b/lttng-filter-interpreter.c +index 21169f01..5d572437 100644 +--- a/lttng-filter-interpreter.c ++++ b/lttng-filter-interpreter.c +@@ -8,7 +8,7 @@ + */ + + #include <wrapper/uaccess.h> +-#include <wrapper/frame.h> ++#include <wrapper/objtool.h> + #include <wrapper/types.h> + #include <linux/swab.h> + +diff --git a/wrapper/frame.h b/wrapper/objtool.h +similarity index 50% +rename from wrapper/frame.h +rename to wrapper/objtool.h +index 6e6dc811..3b997cae 100644 +--- a/wrapper/frame.h ++++ b/wrapper/objtool.h +@@ -1,18 +1,23 @@ +-/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) ++/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) + * +- * wrapper/frame.h ++ * wrapper/objtool.h + * + * Copyright (C) 2016 Mathieu Desnoyers <[email protected]> + */ + +-#ifndef _LTTNG_WRAPPER_FRAME_H +-#define _LTTNG_WRAPPER_FRAME_H ++#ifndef _LTTNG_WRAPPER_OBJTOOL_H ++#define _LTTNG_WRAPPER_OBJTOOL_H + + #include <linux/version.h> + +-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) +- ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0)) ++#include <linux/objtool.h> ++#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) + #include <linux/frame.h> ++#endif ++ ++ ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) + + #define LTTNG_STACK_FRAME_NON_STANDARD(func) \ + STACK_FRAME_NON_STANDARD(func) +@@ -23,4 +28,4 @@ + + #endif + +-#endif /* _LTTNG_WRAPPER_FRAME_H */ ++#endif /* _LTTNG_WRAPPER_OBJTOOL_H */ +-- +2.19.1 +
meta/recipes-kernel/lttng/lttng-modules/0009-fix-btrfs-make-ordered-extent-tracepoint-take-btrfs_.patch new file +179 -0
179 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-modules/0010-fix-ext4-fast-commit-recovery-path-v5.10.patch new file +99 -0
99 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-modules/0012-fix-kvm-x86-mmu-Add-TDP-MMU-PF-handler-v5.10.patch new file +82 -0
82 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-modules/0014-fix-tracepoint-Optimize-using-static_call-v5.10.patch new file +196 -0
196 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-modules/0016-fix-statedump-undefined-symbols-caused-by-incorrect-.patch new file +55 -0
55 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-modules_2.12.3.bb +8 -2
@@ -12,6 +12,12 @@ SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \ file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch \ file://BUILD_RUNTIME_BUG_ON-vs-gcc7.patch \ file://0001-fix-btrfs-tracepoints-output-proper-root-owner-for-t.patch \ + file://0007-fix-objtool-Rename-frame.h-objtool.h-v5.10.patch \ + file://0009-fix-btrfs-make-ordered-extent-tracepoint-take-btrfs_.patch \ + file://0010-fix-ext4-fast-commit-recovery-path-v5.10.patch \ + file://0012-fix-kvm-x86-mmu-Add-TDP-MMU-PF-handler-v5.10.patch \ + file://0014-fix-tracepoint-Optimize-using-static_call-v5.10.patch \ + file://0016-fix-statedump-undefined-symbols-caused-by-incorrect-.patch \ " SRC_URI[sha256sum] = "673ef85c9f03e9b8fed10795e09d4e68add39404b70068d08b10f7b85754d7f0"
@@ -37,7 +43,7 @@ SRC_URI_class-devupstream = "git://git.lttng.org/lttng-modules;branch=stable-2.1 file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch \ file://BUILD_RUNTIME_BUG_ON-vs-gcc7.patch \ " -SRCREV_class-devupstream = "ad594e3a953db1b0c3c059fde45b5a5494f6be78" -PV_class-devupstream = "2.12.2+git${SRCPV}" +SRCREV_class-devupstream = "be71b60a327d7ad2588abc5cad2861177119972b" +PV_class-devupstream = "2.12.3+git${SRCPV}" S_class-devupstream = "${WORKDIR}/git" SRCREV_FORMAT ?= "lttng_git"
Signature · 1 line
2.29.2
PATCH 14/35 glibc: CVE-2020-29562 and CVE-2020-29573
In reply to Anuj MittalFrom: Zhixiong Chi <[email protected]>
Backport the CVE patches from the glibc upstream:git://sourceware.org/git/glibc.git
commit 681900d29683722b1cb0a8e565a0585846ec5a61
commit 228edd356f03bf62dcf2b1335f25d43c602ee68d
--- .../glibc/glibc/CVE-2020-29562.patch | 155 ++++++++++++++++++ .../glibc/glibc/CVE-2020-29573.patch | 56 +++++++ meta/recipes-core/glibc/glibc_2.32.bb | 2 + 3 files changed, 213 insertions(+) create mode 100644 meta/recipes-core/glibc/glibc/CVE-2020-29562.patch create mode 100644 meta/recipes-core/glibc/glibc/CVE-2020-29573.patch
meta/recipes-core/glibc/glibc/CVE-2020-29562.patch new file +155 -0
@@ -0,0 +1,155 @@ +From 228edd356f03bf62dcf2b1335f25d43c602ee68d Mon Sep 17 00:00:00 2001 +From: Michael Colavita <[email protected]> +Date: Thu, 19 Nov 2020 11:44:40 -0500 +Subject: [PATCH] iconv: Fix incorrect UCS4 inner loop bounds (BZ#26923) + +Previously, in UCS4 conversion routines we limit the number of +characters we examine to the minimum of the number of characters in the +input and the number of characters in the output. This is not the +correct behavior when __GCONV_IGNORE_ERRORS is set, as we do not consume +an output character when we skip a code unit. Instead, track the input +and output pointers and terminate the loop when either reaches its +limit. + +This resolves assertion failures when resetting the input buffer in a step of +iconv, which assumes that the input will be fully consumed given sufficient +output space. + +Upstream-Status: Backport [git://sourceware.org/git/glibc.git] +CVE: CVE-2020-29562 +Signed-off-by: Zhixiong Chi <[email protected]> +--- + iconv/Makefile | 2 +- + iconv/gconv_simple.c | 16 ++++---------- + iconv/tst-iconv8.c | 50 ++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 55 insertions(+), 13 deletions(-) + create mode 100644 iconv/tst-iconv8.c + +diff --git a/iconv/Makefile b/iconv/Makefile +index 30bf996d3a..f9b51e23ec 100644 +--- a/iconv/Makefile ++++ b/iconv/Makefile +@@ -44,7 +44,7 @@ CFLAGS-linereader.c += -DNO_TRANSLITERATION + CFLAGS-simple-hash.c += -I../locale + + tests = tst-iconv1 tst-iconv2 tst-iconv3 tst-iconv4 tst-iconv5 tst-iconv6 \ +- tst-iconv7 tst-iconv-mt tst-iconv-opt ++ tst-iconv7 tst-iconv8 tst-iconv-mt tst-iconv-opt + + others = iconv_prog iconvconfig + install-others-programs = $(inst_bindir)/iconv +diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c +index d4797fba17..963b29f246 100644 +--- a/iconv/gconv_simple.c ++++ b/iconv/gconv_simple.c +@@ -239,11 +239,9 @@ ucs4_internal_loop (struct __gconv_step *step, + int flags = step_data->__flags; + const unsigned char *inptr = *inptrp; + unsigned char *outptr = *outptrp; +- size_t n_convert = MIN (inend - inptr, outend - outptr) / 4; + int result; +- size_t cnt; + +- for (cnt = 0; cnt < n_convert; ++cnt, inptr += 4) ++ for (; inptr + 4 <= inend && outptr + 4 <= outend; inptr += 4) + { + uint32_t inval; + +@@ -307,11 +305,9 @@ ucs4_internal_loop_unaligned (struct __gconv_step *step, + int flags = step_data->__flags; + const unsigned char *inptr = *inptrp; + unsigned char *outptr = *outptrp; +- size_t n_convert = MIN (inend - inptr, outend - outptr) / 4; + int result; +- size_t cnt; + +- for (cnt = 0; cnt < n_convert; ++cnt, inptr += 4) ++ for (; inptr + 4 <= inend && outptr + 4 <= outend; inptr += 4) + { + if (__glibc_unlikely (inptr[0] > 0x80)) + { +@@ -613,11 +609,9 @@ ucs4le_internal_loop (struct __gconv_step *step, + int flags = step_data->__flags; + const unsigned char *inptr = *inptrp; + unsigned char *outptr = *outptrp; +- size_t n_convert = MIN (inend - inptr, outend - outptr) / 4; + int result; +- size_t cnt; + +- for (cnt = 0; cnt < n_convert; ++cnt, inptr += 4) ++ for (; inptr + 4 <= inend && outptr + 4 <= outend; inptr += 4) + { + uint32_t inval; + +@@ -684,11 +678,9 @@ ucs4le_internal_loop_unaligned (struct __gconv_step *step, + int flags = step_data->__flags; + const unsigned char *inptr = *inptrp; + unsigned char *outptr = *outptrp; +- size_t n_convert = MIN (inend - inptr, outend - outptr) / 4; + int result; +- size_t cnt; + +- for (cnt = 0; cnt < n_convert; ++cnt, inptr += 4) ++ for (; inptr + 4 <= inend && outptr + 4 <= outend; inptr += 4) + { + if (__glibc_unlikely (inptr[3] > 0x80)) + { +diff --git a/iconv/tst-iconv8.c b/iconv/tst-iconv8.c +new file mode 100644 +index 0000000000..0b92b19f66 +--- /dev/null ++++ b/iconv/tst-iconv8.c +@@ -0,0 +1,50 @@ ++/* Test iconv behavior on UCS4 conversions with //IGNORE. ++ Copyright (C) 2020 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, see ++ <http://www.gnu.org/licenses/>. */ ++ ++/* Derived from BZ #26923 */ ++#include <errno.h> ++#include <iconv.h> ++#include <stdio.h> ++#include <support/check.h> ++ ++static int ++do_test (void) ++{ ++ iconv_t cd = iconv_open ("UTF-8//IGNORE", "ISO-10646/UCS4/"); ++ TEST_VERIFY_EXIT (cd != (iconv_t) -1); ++ ++ /* ++ * Convert sequence beginning with an irreversible character into buffer that ++ * is too small. ++ */ ++ char input[12] = "\xe1\x80\xa1" "AAAAAAAAA"; ++ char *inptr = input; ++ size_t insize = sizeof (input); ++ char output[6]; ++ char *outptr = output; ++ size_t outsize = sizeof (output); ++ ++ TEST_VERIFY (iconv (cd, &inptr, &insize, &outptr, &outsize) == -1); ++ TEST_VERIFY (errno == E2BIG); ++ ++ TEST_VERIFY_EXIT (iconv_close (cd) != -1); ++ ++ return 0; ++} ++ ++#include <support/test-driver.c> +-- +2.17.0 +
meta/recipes-core/glibc/glibc/CVE-2020-29573.patch new file +56 -0
56 lines not on this page · raw message
meta/recipes-core/glibc/glibc_2.32.bb +2 -0
@@ -43,6 +43,8 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ file://0028-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch \ file://0029-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch \ file://0030-powerpc-Do-not-ask-compiler-for-finding-arch.patch \ + file://CVE-2020-29562.patch \ + file://CVE-2020-29573.patch \ " S = "${WORKDIR}/git" B = "${WORKDIR}/build-${TARGET_SYS}"
Signature · 1 line
2.29.2
PATCH 15/35 glibc: Make adjtime() for 32 bit support being called with delta == NULL
In reply to Anuj MittalFrom: Peter Kjellerstedt <[email protected]>
This backports a fix from glibc's master branch, which solves a regression in 2.32 with adjtime() where it would seg fault if being called with delta == NULL on 32 bit machines.
--- ...-adjtime-with-NULL-argument-BZ-26833.patch | 110 ++++++++++++++++++ meta/recipes-core/glibc/glibc_2.32.bb | 1 + 2 files changed, 111 insertions(+) create mode 100644 meta/recipes-core/glibc/glibc/0031-linux-Allow-adjtime-with-NULL-argument-BZ-26833.patch
meta/recipes-core/glibc/glibc/0031-linux-Allow-adjtime-with-NULL-argument-BZ-26833.patch new file +110 -0
@@ -0,0 +1,110 @@ +From 75a193b7611bade31a150dfcc528b973e3d46231 Mon Sep 17 00:00:00 2001 +From: Adhemerval Zanella <[email protected]> +Date: Mon, 2 Nov 2020 16:18:29 -0300 +Subject: [PATCH] linux: Allow adjtime with NULL argument [BZ #26833] + +The adjtime interface allows return the amount of time remaining +from any previous adjustment that has not yet been completed by +passing a NULL as first argument. This was introduced with y2038 +support 0308077e3a. + +Checked on i686-linux-gnu. + +Reviewed-by: Lukasz Majewski <[email protected]> +Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=75a193b7611bade31a150dfcc528b973e3d46231] +Signed-off-by: Peter Kjellerstedt <[email protected]> +--- + sysdeps/unix/sysv/linux/adjtime.c | 11 +++++--- + time/Makefile | 3 ++- + time/tst-adjtime.c | 44 +++++++++++++++++++++++++++++++ + 3 files changed, 54 insertions(+), 4 deletions(-) + create mode 100644 time/tst-adjtime.c + +diff --git a/sysdeps/unix/sysv/linux/adjtime.c b/sysdeps/unix/sysv/linux/adjtime.c +index 3f9a4ea2eb..6d1d1b6af2 100644 +--- a/sysdeps/unix/sysv/linux/adjtime.c ++++ b/sysdeps/unix/sysv/linux/adjtime.c +@@ -68,11 +68,16 @@ libc_hidden_def (__adjtime64) + int + __adjtime (const struct timeval *itv, struct timeval *otv) + { +- struct __timeval64 itv64, otv64; ++ struct __timeval64 itv64, *pitv64 = NULL; ++ struct __timeval64 otv64; + int retval; + +- itv64 = valid_timeval_to_timeval64 (*itv); +- retval = __adjtime64 (&itv64, otv != NULL ? &otv64 : NULL); ++ if (itv != NULL) ++ { ++ itv64 = valid_timeval_to_timeval64 (*itv); ++ pitv64 = &itv64; ++ } ++ retval = __adjtime64 (pitv64, otv != NULL ? &otv64 : NULL); + if (otv != NULL) + *otv = valid_timeval64_to_timeval (otv64); + +diff --git a/time/Makefile b/time/Makefile +index 26aa835166..f27a75a115 100644 +--- a/time/Makefile ++++ b/time/Makefile +@@ -47,7 +47,8 @@ tests := test_time clocktest tst-posixtz tst-strptime tst_wcsftime \ + tst-mktime3 tst-strptime2 bug-asctime bug-asctime_r bug-mktime1 \ + tst-strptime3 bug-getdate1 tst-strptime-whitespace tst-ftime \ + tst-tzname tst-y2039 bug-mktime4 tst-strftime2 tst-strftime3 \ +- tst-clock tst-clock2 tst-clock_nanosleep tst-cpuclock1 ++ tst-clock tst-clock2 tst-clock_nanosleep tst-cpuclock1 \ ++ tst-adjtime + + include ../Rules + +diff --git a/time/tst-adjtime.c b/time/tst-adjtime.c +new file mode 100644 +index 0000000000..ae2b37cdab +--- /dev/null ++++ b/time/tst-adjtime.c +@@ -0,0 +1,44 @@ ++/* Basic tests for adjtime. ++ Copyright (C) 2020 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, see ++ <https://www.gnu.org/licenses/>. */ ++ ++#include <sys/time.h> ++#include <stdlib.h> ++ ++#include <errno.h> ++#include <support/check.h> ++ ++ ++static int ++do_test (void) ++{ ++ /* Check if the interface allows getting the amount of time remaining ++ from any previous adjustment that has not yet been completed. This ++ is a non-privileged function of adjtime. */ ++ struct timeval tv; ++ int r = adjtime (NULL, &tv); ++ if (r == -1) ++ { ++ if (errno == ENOSYS) ++ FAIL_UNSUPPORTED ("adjtime unsupported"); ++ FAIL_EXIT1 ("adjtime (NULL, ...) failed: %m"); ++ } ++ ++ return 0; ++} ++ ++#include <support/test-driver.c>
meta/recipes-core/glibc/glibc_2.32.bb +1 -0
@@ -43,6 +43,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ file://0028-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch \ file://0029-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch \ file://0030-powerpc-Do-not-ask-compiler-for-finding-arch.patch \ + file://0031-linux-Allow-adjtime-with-NULL-argument-BZ-26833.patch \ file://CVE-2020-29562.patch \ file://CVE-2020-29573.patch \ "
Signature · 1 line
2.29.2
PATCH 16/35 parted: Make readline dependency optional
In reply to Anuj MittalFrom: Mark Jonas <[email protected]>
--- meta/recipes-extended/parted/parted_3.3.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-extended/parted/parted_3.3.bb +4 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.gnu.org/software/parted/parted.html" LICENSE = "GPLv3+" LIC_FILES_CHKSUM = "file://COPYING;md5=2f31b266d3440dd7ee50f92cf67d8e6c" SECTION = "console/tools" -DEPENDS = "ncurses readline util-linux virtual/libiconv" +DEPENDS = "ncurses util-linux virtual/libiconv" SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.xz \ file://no_check.patch \
@@ -22,6 +22,9 @@ EXTRA_OECONF = "--disable-device-mapper" inherit autotools pkgconfig gettext texinfo ptest +PACKAGECONFIG ?= "readline" +PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" + BBCLASSEXTEND = "native nativesdk" do_compile_ptest() {
Signature · 1 line
2.29.2
PATCH 17/35 perl: fix installation failure because of shell issue
In reply to Anuj MittalFrom: Dmitry Baryshkov <[email protected]>
On one of my buildservers I noticed perl do_install failing with the following message:
| rm: cannot remove '<OEROOT>/tmp-rpb-glibc/work/armv8-2a-linaro-linux/perl/5.32.0-r0/image//usr/lib/perl5/5.32.0/*/CORE/libperl.so': No such file or directory
I tracked this down to shell being dash rather than bash not being able to expand this glob in the middle of the filename. So replace the glob expansion with the simpler one which works in all cases.
--- meta/recipes-devtools/perl/perl_5.32.0.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-devtools/perl/perl_5.32.0.bb +3 -2
@@ -137,8 +137,9 @@ do_install() { install lib/ExtUtils/typemap ${D}${libdir}/perl5/${PV}/ExtUtils/ # Fix up shared library - rm ${D}/${libdir}/perl5/${PV}/*/CORE/libperl.so - ln -sf ../../../../libperl.so.${PERL_LIB_VER} $(echo ${D}/${libdir}/perl5/${PV}/*/CORE)/libperl.so + dir=$(echo ${D}/${libdir}/perl5/${PV}/*/CORE) + rm $dir/libperl.so + ln -sf ../../../../libperl.so.${PERL_LIB_VER} $dir/libperl.so # Try to catch Bug #13946 if [ -e ${D}/${libdir}/perl5/${PV}/Storable.pm ]; then
Signature · 1 line
2.29.2
PATCH 18/35 ruby: fix reproducibility
In reply to Anuj MittalFrom: Alexander Kanavin <[email protected]>
--- ...e.in-do-not-write-host-cross-cc-item.patch | 32 +++++++++++++++++++ meta/recipes-devtools/ruby/ruby_2.7.1.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 meta/recipes-devtools/ruby/ruby/0001-template-Makefile.in-do-not-write-host-cross-cc-item.patch
meta/recipes-devtools/ruby/ruby/0001-template-Makefile.in-do-not-write-host-cross-cc-item.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 2368d07660a93a2c41d63f3ab6054ca4daeef820 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Tue, 17 Nov 2020 18:31:40 +0000 +Subject: [PATCH] template/Makefile.in: do not write host cross-cc items into + target config + +This helps reproducibility. + +Upstream-Status: Inapproppriate [oe-core specific] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + template/Makefile.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/template/Makefile.in b/template/Makefile.in +index 10dc826..940ee07 100644 +--- a/template/Makefile.in ++++ b/template/Makefile.in +@@ -657,11 +657,11 @@ mjit_config.h: + echo '#endif'; \ + quote MJIT_MIN_HEADER_NAME "$(MJIT_MIN_HEADER_NAME)"; \ + sep=,; \ +- quote "MJIT_CC_COMMON " $(MJIT_CC); \ ++ quote "MJIT_CC_COMMON " ; \ + quote "MJIT_CFLAGS MJIT_ARCHFLAG" $(MJIT_CFLAGS); \ + quote "MJIT_OPTFLAGS " $(MJIT_OPTFLAGS); \ + quote "MJIT_DEBUGFLAGS " $(MJIT_DEBUGFLAGS); \ +- quote "MJIT_LDSHARED " $(MJIT_LDSHARED); \ ++ quote "MJIT_LDSHARED " ; \ + quote "MJIT_DLDFLAGS MJIT_ARCHFLAG" $(MJIT_DLDFLAGS); \ + quote "MJIT_LIBS " $(LIBRUBYARG_SHARED); \ + quote 'PRELOADENV "@PRELOADENV@"'; \
meta/recipes-devtools/ruby/ruby_2.7.1.bb +1 -0
@@ -7,6 +7,7 @@ SRC_URI += " \ file://run-ptest \ file://0001-Modify-shebang-of-libexec-y2racc-and-libexec-racc2y.patch \ file://CVE-2020-25613.patch \ + file://0001-template-Makefile.in-do-not-write-host-cross-cc-item.patch \ " SRC_URI[md5sum] = "debb9c325bf65021214451660f46e909"
Signature · 1 line
2.29.2
PATCH 19/35 ffmpeg: add srt package config knob
In reply to Anuj MittalFrom: Jose Quaresma <[email protected]>
* 0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch
Upstream-Status: Backport [https://github.com/FFmpeg/FFmpeg/commit/7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315]
--- ...uild-fail-when-used-the-libsrt-1.4.1.patch | 52 +++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb | 2 + 2 files changed, 54 insertions(+) create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch
meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch new file +52 -0
@@ -0,0 +1,52 @@ +From aebb72e025cbfbd4a6765354f6f565ad4ac89789 Mon Sep 17 00:00:00 2001 +From: Jun Zhao <[email protected]> +Date: Sun, 12 Jul 2020 05:48:48 +0800 +Subject: [PATCH] lavf/srt: fix build fail when used the libsrt 1.4.1 + +lavf/srt: fix build fail when used the libsrt 1.4.1 + +libsrt changed the: +SRTO_SMOOTHER -> SRTO_CONGESTION +SRTO_STRICTENC -> SRTO_ENFORCEDENCRYPTION +and removed the front of deprecated options (SRTO_SMOOTHER/SRTO_STRICTENC) +in the header, it's lead to build fail + +fix #8760 + +Upstream-Status: Backport [https://github.com/FFmpeg/FFmpeg/commit/7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315] + +Signed-off-by: Jose Quaresma <[email protected]> +Signed-off-by: Jun Zhao <[email protected]> +--- + libavformat/libsrt.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c +index 4de575b..4719ce0 100644 +--- a/libavformat/libsrt.c ++++ b/libavformat/libsrt.c +@@ -313,8 +313,12 @@ static int libsrt_set_options_pre(URLContext *h, int fd) + (s->pbkeylen >= 0 && libsrt_setsockopt(h, fd, SRTO_PBKEYLEN, "SRTO_PBKEYLEN", &s->pbkeylen, sizeof(s->pbkeylen)) < 0) || + (s->passphrase && libsrt_setsockopt(h, fd, SRTO_PASSPHRASE, "SRTO_PASSPHRASE", s->passphrase, strlen(s->passphrase)) < 0) || + #if SRT_VERSION_VALUE >= 0x010302 ++#if SRT_VERSION_VALUE >= 0x010401 ++ (s->enforced_encryption >= 0 && libsrt_setsockopt(h, fd, SRTO_ENFORCEDENCRYPTION, "SRTO_ENFORCEDENCRYPTION", &s->enforced_encryption, sizeof(s->enforced_encryption)) < 0) || ++#else + /* SRTO_STRICTENC == SRTO_ENFORCEDENCRYPTION (53), but for compatibility, we used SRTO_STRICTENC */ + (s->enforced_encryption >= 0 && libsrt_setsockopt(h, fd, SRTO_STRICTENC, "SRTO_STRICTENC", &s->enforced_encryption, sizeof(s->enforced_encryption)) < 0) || ++#endif + (s->kmrefreshrate >= 0 && libsrt_setsockopt(h, fd, SRTO_KMREFRESHRATE, "SRTO_KMREFRESHRATE", &s->kmrefreshrate, sizeof(s->kmrefreshrate)) < 0) || + (s->kmpreannounce >= 0 && libsrt_setsockopt(h, fd, SRTO_KMPREANNOUNCE, "SRTO_KMPREANNOUNCE", &s->kmpreannounce, sizeof(s->kmpreannounce)) < 0) || + #endif +@@ -333,7 +337,11 @@ static int libsrt_set_options_pre(URLContext *h, int fd) + (s->lossmaxttl >= 0 && libsrt_setsockopt(h, fd, SRTO_LOSSMAXTTL, "SRTO_LOSSMAXTTL", &s->lossmaxttl, sizeof(s->lossmaxttl)) < 0) || + (s->minversion >= 0 && libsrt_setsockopt(h, fd, SRTO_MINVERSION, "SRTO_MINVERSION", &s->minversion, sizeof(s->minversion)) < 0) || + (s->streamid && libsrt_setsockopt(h, fd, SRTO_STREAMID, "SRTO_STREAMID", s->streamid, strlen(s->streamid)) < 0) || ++#if SRT_VERSION_VALUE >= 0x010401 ++ (s->smoother && libsrt_setsockopt(h, fd, SRTO_CONGESTION, "SRTO_CONGESTION", s->smoother, strlen(s->smoother)) < 0) || ++#else + (s->smoother && libsrt_setsockopt(h, fd, SRTO_SMOOTHER, "SRTO_SMOOTHER", s->smoother, strlen(s->smoother)) < 0) || ++#endif + (s->messageapi >= 0 && libsrt_setsockopt(h, fd, SRTO_MESSAGEAPI, "SRTO_MESSAGEAPI", &s->messageapi, sizeof(s->messageapi)) < 0) || + (s->payload_size >= 0 && libsrt_setsockopt(h, fd, SRTO_PAYLOADSIZE, "SRTO_PAYLOADSIZE", &s->payload_size, sizeof(s->payload_size)) < 0) || + ((h->flags & AVIO_FLAG_WRITE) && libsrt_setsockopt(h, fd, SRTO_SENDER, "SRTO_SENDER", &yes, sizeof(yes)) < 0)) {
meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb +2 -0
@@ -25,6 +25,7 @@ LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://mips64_cpu_detection.patch \ + file://0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch \ " SRC_URI[sha256sum] = "ad009240d46e307b4e03a213a0f49c11b650e445b1f8be0dda2a9212b34d2ffb"
@@ -70,6 +71,7 @@ PACKAGECONFIG[mp3lame] = "--enable-libmp3lame,--disable-libmp3lame,lame" PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl" PACKAGECONFIG[sdl2] = "--enable-sdl2,--disable-sdl2,virtual/libsdl2" PACKAGECONFIG[speex] = "--enable-libspeex,--disable-libspeex,speex" +PACKAGECONFIG[srt] = "--enable-libsrt,--disable-libsrt,srt" PACKAGECONFIG[theora] = "--enable-libtheora,--disable-libtheora,libtheora libogg" PACKAGECONFIG[vaapi] = "--enable-vaapi,--disable-vaapi,libva" PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
Signature · 1 line
2.29.2
Re: [OE-core] [gatesgarth][PATCH 19/35] ffmpeg: add srt package config knob
Hi Anuj,
This patch requereis srt from meta-openembedded but it is only present on master branch
https://git.openembedded.org/meta-openembedded/commit/?id=23343cb8e9497981e4ef14d5eeae5df9bf891624
This needs 23343cb8 to be backported to gatesgarth on meta-openembedded.
Jose
Anuj Mittal <[email protected]> escreveu no dia quarta, 23/12/2020 à(s) 15:19:
Quoted 136 lines
From: Jose Quaresma <[email protected]>
* 0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch
Upstream-Status: Backport [
https://github.com/FFmpeg/FFmpeg/commit/7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315
]Signed-off-by Jose Quaresma <[email protected]>Signed-off-by Richard Purdie <[email protected]>(cherry picked from commit 5b9c0fa129308180d6d3acf0a321433652ecd9dc)Signed-off-by Anuj Mittal <[email protected]>--- ...uild-fail-when-used-the-libsrt-1.4.1.patch | 52 +++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb | 2 + 2 files changed, 54 insertions(+) create mode 100644
meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patchdiff --git
a/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patchb/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patchnew file mode 100644
index 0000000000..7635c9196a
---/dev/null
+++b/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patchmeta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch new file +16
-0@@ -0,0 +1,52 @@ +From aebb72e025cbfbd4a6765354f6f565ad4ac89789 Mon Sep 17 00:00:00 2001 +From: Jun Zhao <[email protected]> +Date: Sun, 12 Jul 2020 05:48:48 +0800 +Subject: [PATCH] lavf/srt: fix build fail when used the libsrt 1.4.1 + +lavf/srt: fix build fail when used the libsrt 1.4.1 + +libsrt changed the: +SRTO_SMOOTHER -> SRTO_CONGESTION +SRTO_STRICTENC -> SRTO_ENFORCEDENCRYPTION +and removed the front of deprecated options (SRTO_SMOOTHER/SRTO_STRICTENC) +in the header, it's lead to build fail + +fix #8760 + +Upstream-Status: Backport [https://github.com/FFmpeg/FFmpeg/commit/7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315
]meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch new file +12
-0+ +Signed-off-by: Jose Quaresma <[email protected]> +Signed-off-by: Jun Zhao <[email protected]> +--- + libavformat/libsrt.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c +index 4de575b..4719ce0 100644 +--- a/libavformat/libsrt.c ++++ b/libavformat/libsrt.c +@@ -313,8 +313,12 @@ static int libsrt_set_options_pre(URLContext *h, intfd)
+ (s->pbkeylen>= 0 && libsrt_setsockopt(h, fd,SRTO_PBKEYLEN,
"SRTO_PBKEYLEN",&s->pbkeylen,sizeof(s->pbkeylen)) < 0) ||
+ (s->passphrase&& libsrt_setsockopt(h, fd,SRTO_PASSPHRASE,
"SRTO_PASSPHRASE",s->passphrase,strlen(s->passphrase)) < 0) ||
+ #ifSRT_VERSION_VALUE>=0x010302
++#ifSRT_VERSION_VALUE>=0x010401
++ (s->enforced_encryption>= 0 && libsrt_setsockopt(h, fd,SRTO_ENFORCEDENCRYPTION, "SRTO_ENFORCEDENCRYPTION",&s->enforced_encryption,sizeof(s->enforced_encryption)) < 0) || ++#else
+ /*SRTO_STRICTENC==SRTO_ENFORCEDENCRYPTION(53), but for
compatibility, we usedSRTO_STRICTENC*/
+ (s->enforced_encryption>= 0 && libsrt_setsockopt(h, fd,SRTO_STRICTENC, "SRTO_STRICTENC",&s->enforced_encryption,sizeof(s->enforced_encryption)) < 0) ||
++#endif
+ (s->kmrefreshrate>= 0 && libsrt_setsockopt(h, fd,SRTO_KMREFRESHRATE, "SRTO_KMREFRESHRATE",&s->kmrefreshrate,sizeof(s->kmrefreshrate)) < 0) ||
+ (s->kmpreannounce>= 0 && libsrt_setsockopt(h, fd,SRTO_KMPREANNOUNCE, "SRTO_KMPREANNOUNCE",&s->kmpreannounce,sizeof(s->kmpreannounce)) < 0) ||
+ #endif
+@@ -333,7 +337,11 @@ static intlibsrt_set_options_pre(URLContext *h, int fd)
+ (s->lossmaxttl>= 0 && libsrt_setsockopt(h, fd,SRTO_LOSSMAXTTL,
"SRTO_LOSSMAXTTL",&s->lossmaxttl,sizeof(s->lossmaxttl)) < 0) ||
+ (s->minversion>= 0 && libsrt_setsockopt(h, fd,SRTO_MINVERSION,
"SRTO_MINVERSION",&s->minversion,sizeof(s->minversion)) < 0) ||
+ (s->streamid&& libsrt_setsockopt(h, fd,SRTO_STREAMID,
"SRTO_STREAMID",s->streamid,strlen(s->streamid)) < 0) || ++#ifSRT_VERSION_VALUE>=0x010401
++ (s->smoother&& libsrt_setsockopt(h, fd,SRTO_CONGESTION,
"SRTO_CONGESTION",s->smoother,strlen(s->smoother)) < 0) || ++#else
+ (s->smoother&& libsrt_setsockopt(h, fd,SRTO_SMOOTHER,
"SRTO_SMOOTHER",s->smoother,strlen(s->smoother)) < 0) || ++#endif
+ (s->messageapi>= 0 && libsrt_setsockopt(h, fd,SRTO_MESSAGEAPI,
"SRTO_MESSAGEAPI",&s->messageapi,sizeof(s->messageapi)) < 0) ||
+ (s->payload_size>= 0 && libsrt_setsockopt(h, fd,SRTO_PAYLOADSIZE, "SRTO_PAYLOADSIZE",&s->payload_size,sizeof(s->payload_size)) < 0) ||
+ ((h->flags&AVIO_FLAG_WRITE) && libsrt_setsockopt(h, fd,SRTO_SENDER, "SRTO_SENDER", &yes, sizeof(yes)) < 0)) {meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb +1
-0@@ -25,6 +25,7 @@ LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://mips64_cpu_detection.patch \ + file://0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch \ "SRC_URI[sha256sum] =
"ad009240d46e307b4e03a213a0f49c11b650e445b1f8be0dda2a9212b34d2ffb"meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb +0
-0@@ -70,6 +71,7 @@ PACKAGECONFIG[mp3lame] ="--enable-libmp3lame,--disable-libmp3lame,lame"
PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl" PACKAGECONFIG[sdl2] = "--enable-sdl2,--disable-sdl2,virtual/libsdl2" PACKAGECONFIG[speex] = "--enable-libspeex,--disable-libspeex,speex"
+PACKAGECONFIG[srt] = "--enable-libsrt,--disable-libsrt,srt"
PACKAGECONFIG[theora] = "--enable-libtheora,--disable-libtheora,libtheora
libogg"
PACKAGECONFIG[vaapi] = "--enable-vaapi,--disable-vaapi,libva" PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
--
2.29.2
Signature · 2 lines
best regards, José Quaresma
Re: [OE-core] [gatesgarth][PATCH 19/35] ffmpeg: add srt package config knob
Hi Jose,
Quoted 8 lines · Jose Quaresma
Hi Anuj,
This patch requereis srt from meta-openembedded but it is only present on master branch
https://git.openembedded.org/meta-openembedded/commit/?id=23343cb8e9497981e4ef14d5eeae5df9bf891624This needs
23343cb8to be backported to gatesgarth on meta- openembedded.
Thank you for the review. I have dropped the patch from the queue for now.
Thanks,
Anuj
Quoted 161 lines
Jose
Anuj Mittal <[email protected]> escreveu no dia quarta, 23/12/2020 à(s) 15:19:
Quoted 151 lines
From: Jose Quaresma <[email protected]>
* 0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch
Upstream-Status: Backport
[
https://github.com/FFmpeg/FFmpeg/commit/7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315
]Signed-off-by Jose Quaresma <[email protected]>Signed-off-by Richard Purdie <[email protected]>(cherry picked from commit
5b9c0fa129308180d6d3acf0a321433652ecd9dc)Signed-off-by Anuj Mittal <[email protected]>---
...uild-fail-when-used-the-libsrt-1.4.1.patch | 52
+++++++++++++++++++
.../recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb | 2 +2 files changed, 54 insertions(+)create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/0001- lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch
(quoted diff) +0
-0fix-build-fail-when-used-the-libsrt-1.4.1.patch b/meta/recipes- multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix-build-fail-when-used- the-libsrt-1.4.1.patch
new file mode 100644
index 0000000000..7635c9196ameta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix- new file +0
-0build-fail-when-used-the-libsrt-1.4.1.patch
meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix- new file +1
-0@@ -0,0 +1,52 @@ +From aebb72e025cbfbd4a6765354f6f565ad4ac89789 Mon Sep 17 00:00:002001
meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix- new file +3
-0+From: Jun Zhao <[email protected]> +Date: Sun, 12 Jul 2020 05:48:48 +0800 +Subject: [PATCH] lavf/srt: fix build fail when used the libsrt1.4.1
meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix- new file +7
-0+ +lavf/srt: fix build fail when used the libsrt 1.4.1 + +libsrt changed the: +SRTO_SMOOTHER -> SRTO_CONGESTION +SRTO_STRICTENC -> SRTO_ENFORCEDENCRYPTION +and removed the front of deprecated options(SRTO_SMOOTHER/SRTO_STRICTENC)
meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix- new file +5
-0+in the header, it's lead to build fail + +fix #8760 + +Upstream-Status: Backport[
https://github.com/FFmpeg/FFmpeg/commit/7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315
]meta/recipes-multimedia/ffmpeg/ffmpeg/0001-lavf-srt-fix- new file +12
-0+ +Signed-off-by: Jose Quaresma <[email protected]> +Signed-off-by: Jun Zhao <[email protected]> +--- + libavformat/libsrt.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c +index 4de575b..4719ce0 100644 +--- a/libavformat/libsrt.c ++++ b/libavformat/libsrt.c +@@ -313,8 +313,12 @@ static int libsrt_set_options_pre(URLContext*h, int fd)
+ (s->pbkeylen >= 0 &&libsrt_setsockopt(h, fd, SRTO_PBKEYLEN, "SRTO_PBKEYLEN", &s->pbkeylen, sizeof(s->pbkeylen))< 0) ||
+ (s->passphrase && libsrt_setsockopt(h, fd,SRTO_PASSPHRASE, "SRTO_PASSPHRASE",s->passphrase, strlen(s-Quoted 1 line
passphrase)) < 0) ||
+ #if
SRT_VERSION_VALUE>=0x010302
++#ifSRT_VERSION_VALUE>=0x010401
++ (s->enforced_encryption>= 0 && libsrt_setsockopt(h, fd,SRTO_ENFORCEDENCRYPTION, "SRTO_ENFORCEDENCRYPTION", &s-Quoted 1 line
enforced_encryption,sizeof(s->enforced_encryption)) < 0) ||++#else
+ /*SRTO_STRICTENC==SRTO_ENFORCEDENCRYPTION(53), but for compatibility, we usedSRTO_STRICTENC*/
+ (s->enforced_encryption >= 0 &&libsrt_setsockopt(h, fd, SRTO_STRICTENC, "SRTO_STRICTENC", &s->enforced_encryption, sizeof(s->enforced_encryption))< 0) ||
++#endif
+ (s->kmrefreshrate >= 0 &&libsrt_setsockopt(h, fd, SRTO_KMREFRESHRATE, "SRTO_KMREFRESHRATE", &s->kmrefreshrate, sizeof(s->kmrefreshrate))< 0) ||
+ (s->kmpreannounce >= 0 &&libsrt_setsockopt(h, fd, SRTO_KMPREANNOUNCE, "SRTO_KMPREANNOUNCE", &s->kmpreannounce, sizeof(s->kmpreannounce))< 0) ||
+ #endif
+@@ -333,7 +337,11 @@ static intlibsrt_set_options_pre(URLContext *h, int fd)
+ (s->lossmaxttl >= 0 && libsrt_setsockopt(h, fd,SRTO_LOSSMAXTTL, "SRTO_LOSSMAXTTL",&s->lossmaxttl, sizeof(s-Quoted 1 line
lossmaxttl)) < 0) ||
+ (s->minversion >= 0 && libsrt_setsockopt(h, fd,
SRTO_MINVERSION, "SRTO_MINVERSION",&s->minversion, sizeof(s-Quoted 1 line
minversion)) < 0) ||
+ (s->streamid &&
libsrt_setsockopt(h, fd, SRTO_STREAMID, "SRTO_STREAMID", s->streamid, strlen(s->streamid))< 0) || ++#ifSRT_VERSION_VALUE>=0x010401
++ (s->smoother&&libsrt_setsockopt(h, fd, SRTO_CONGESTION, "SRTO_CONGESTION", s->smoother, strlen(s->smoother))< 0) || ++#else
+ (s->smoother &&libsrt_setsockopt(h, fd, SRTO_SMOOTHER, "SRTO_SMOOTHER", s->smoother, strlen(s->smoother))< 0) || ++#endif
+ (s->messageapi >= 0 && libsrt_setsockopt(h, fd,SRTO_MESSAGEAPI, "SRTO_MESSAGEAPI",&s->messageapi, sizeof(s-Quoted 1 line
messageapi)) < 0) ||
+ (s->payload_size >= 0 && libsrt_setsockopt(h, fd,
SRTO_PAYLOADSIZE, "SRTO_PAYLOADSIZE",&s->payload_size, sizeof(s-Quoted 1 line
payload_size)) < 0) ||+ ((h->flags &
AVIO_FLAG_WRITE) &&libsrt_setsockopt(h, fd, SRTO_SENDER, "SRTO_SENDER", &yes, sizeof(yes))< 0)) {meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb +1
-0@@ -25,6 +25,7 @@ LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://mips64_cpu_detection.patch \ + file://0001-lavf-srt-fix-build-fail-when-used-the- libsrt-1.4.1.patch \"
SRC_URI[sha256sum] = "ad009240d46e307b4e03a213a0f49c11b650e445b1f8be0dda2a9212b34d2ffb"meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb +0
-0@@ -70,6 +71,7 @@ PACKAGECONFIG[mp3lame] = "--enable-libmp3lame,--disable-libmp3lame,lame"
PACKAGECONFIG[openssl] = "--enable-openssl,--disable- openssl,openssl"
PACKAGECONFIG[sdl2] = "--enable-sdl2,--disable- sdl2,virtual/libsdl2"
PACKAGECONFIG[speex] = "--enable-libspeex,--disable- libspeex,speex"
+PACKAGECONFIG[srt] = "--enable-libsrt,--disable-libsrt,srt" PACKAGECONFIG[theora] = "--enable-libtheora,--disable- libtheora,libtheora libogg"
PACKAGECONFIG[vaapi] = "--enable-vaapi,--disable-vaapi,libva" PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"Signature · 1 line
2.29.2
PATCH 20/35 ffmpeg: fix reproducibility
In reply to Anuj MittalFrom: Alexander Kanavin <[email protected]>
--- ...e-assembly-with-full-path-from-sourc.patch | 97 +++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb | 6 ++ 2 files changed, 103 insertions(+) create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/0001-libavutil-include-assembly-with-full-path-from-sourc.patch
meta/recipes-multimedia/ffmpeg/ffmpeg/0001-libavutil-include-assembly-with-full-path-from-sourc.patch new file +97 -0
@@ -0,0 +1,97 @@ +From 24a58d70cbb3997e471366bd5afe54be9007bfb1 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Tue, 10 Nov 2020 15:32:14 +0000 +Subject: [PATCH] libavutil: include assembly with full path from source root + +Otherwise nasm writes the full host-specific paths into .o +output, which breaks binary reproducibility. + +Upstream-Status: Pending +Signed-off-by: Alexander Kanavin <[email protected]> +--- + libavutil/x86/cpuid.asm | 2 +- + libavutil/x86/emms.asm | 2 +- + libavutil/x86/fixed_dsp.asm | 2 +- + libavutil/x86/float_dsp.asm | 2 +- + libavutil/x86/lls.asm | 2 +- + libavutil/x86/pixelutils.asm | 2 +- + 6 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/libavutil/x86/cpuid.asm b/libavutil/x86/cpuid.asm +index c3f7866..766f77f 100644 +--- a/libavutil/x86/cpuid.asm ++++ b/libavutil/x86/cpuid.asm +@@ -21,7 +21,7 @@ + ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + ;****************************************************************************** + +-%include "x86util.asm" ++%include "libavutil/x86/x86util.asm" + + SECTION .text + +diff --git a/libavutil/x86/emms.asm b/libavutil/x86/emms.asm +index 8611762..df84f22 100644 +--- a/libavutil/x86/emms.asm ++++ b/libavutil/x86/emms.asm +@@ -18,7 +18,7 @@ + ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + ;****************************************************************************** + +-%include "x86util.asm" ++%include "libavutil/x86/x86util.asm" + + SECTION .text + +diff --git a/libavutil/x86/fixed_dsp.asm b/libavutil/x86/fixed_dsp.asm +index 979dd5c..2f41185 100644 +--- a/libavutil/x86/fixed_dsp.asm ++++ b/libavutil/x86/fixed_dsp.asm +@@ -20,7 +20,7 @@ + ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + ;****************************************************************************** + +-%include "x86util.asm" ++%include "libavutil/x86/x86util.asm" + + SECTION .text + +diff --git a/libavutil/x86/float_dsp.asm b/libavutil/x86/float_dsp.asm +index 517fd63..b773e61 100644 +--- a/libavutil/x86/float_dsp.asm ++++ b/libavutil/x86/float_dsp.asm +@@ -20,7 +20,7 @@ + ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + ;****************************************************************************** + +-%include "x86util.asm" ++%include "libavutil/x86/x86util.asm" + + SECTION_RODATA 32 + pd_reverse: dd 7, 6, 5, 4, 3, 2, 1, 0 +diff --git a/libavutil/x86/lls.asm b/libavutil/x86/lls.asm +index 317fba6..d2526d1 100644 +--- a/libavutil/x86/lls.asm ++++ b/libavutil/x86/lls.asm +@@ -20,7 +20,7 @@ + ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + ;****************************************************************************** + +-%include "x86util.asm" ++%include "libavutil/x86/x86util.asm" + + SECTION .text + +diff --git a/libavutil/x86/pixelutils.asm b/libavutil/x86/pixelutils.asm +index 36c57c5..8b45ead 100644 +--- a/libavutil/x86/pixelutils.asm ++++ b/libavutil/x86/pixelutils.asm +@@ -21,7 +21,7 @@ + ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + ;****************************************************************************** + +-%include "x86util.asm" ++%include "libavutil/x86/x86util.asm" + + SECTION .text +
meta/recipes-multimedia/ffmpeg/ffmpeg_4.3.1.bb +6 -0
@@ -26,6 +26,7 @@ LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://mips64_cpu_detection.patch \ file://0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch \ + file://0001-libavutil-include-assembly-with-full-path-from-sourc.patch \ " SRC_URI[sha256sum] = "ad009240d46e307b4e03a213a0f49c11b650e445b1f8be0dda2a9212b34d2ffb"
@@ -130,6 +131,11 @@ do_configure() { ${S}/configure ${EXTRA_OECONF} } +# patch out build host paths for reproducibility +do_compile_prepend_class-target() { + sed -i -e "s,${WORKDIR},,g" ${B}/config.h +} + PACKAGES =+ "libavcodec \ libavdevice \ libavfilter \
Signature · 1 line
2.29.2
PATCH 21/35 u-boot-tools: Fix reproducibility issue
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
If you build on a system with git < 2.14 from scratch (e.g. debian9), the tree will be marked as "dirty" and the version will include "-dirty", leading to a reproducibility problem. The issue is the inode count for Licnses/README changing due to do_populate_lic hardlinking a copy of the file. We avoid this by ensuring the index is updated with a "git diff" before the u-boot machinery tries to determine the version.
build$ ../git/scripts/setlocalversion ../git
""
build$ ln ../git/
build$ ln ../git/README ../foo
build$ ../git/scripts/setlocalversion ../git
""-dirty
(i.e. creating a hardlink dirties the index)
--- meta/recipes-bsp/u-boot/u-boot-tools.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
meta/recipes-bsp/u-boot/u-boot-tools.inc +15 -0
@@ -23,6 +23,21 @@ SED_CONFIG_EFI_armeb = '' SED_CONFIG_EFI_aarch64 = '' do_compile () { + # Yes, this is crazy. If you build on a system with git < 2.14 from scratch, the tree will + # be marked as "dirty" and the version will include "-dirty", leading to a reproducibility problem. + # The issue is the inode count for Licnses/README changing due to do_populate_lic hardlinking a + # copy of the file. We avoid this by ensuring the index is updated with a "git diff" before the + # u-boot machinery tries to determine the version. + # + # build$ ../git/scripts/setlocalversion ../git + # "" + # build$ ln ../git/ + # build$ ln ../git/README ../foo + # build$ ../git/scripts/setlocalversion ../git + # ""-dirty + # (i.e. creating a hardlink dirties the index) + cd ${S}; git diff; cd ${B} + oe_runmake -C ${S} sandbox_defconfig O=${B} # Disable CONFIG_CMD_LICENSE, license.h is not used by tools and
Signature · 1 line
2.29.2
PATCH 22/35 groff: Fix reproducibility issue
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
groff chooses a default papersize depending on the value from /etc/papersize and failing that, the search domain in /etc/resolv.conf based on the comment in configure:
"""
If the top-level domain is two letters and it's not 'us' or 'ca' then they probably use A4 paper.
"""
Oddly, my system sets to "a4" in /etc/papersize which means it defaults to "letter" since its != "A4".
These defaults ripple through to cause the output of man-db to change depending on which default value was selected.
To resolve this, set a default of "A4" since that covers the larger population of the two default values.
--- meta/recipes-extended/groff/groff_1.22.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/groff/groff_1.22.4.bb +1 -1
@@ -28,7 +28,7 @@ MULTILIB_SCRIPTS = "${PN}:${bindir}/gpinyin ${PN}:${bindir}/groffer ${PN}:${bind EXTRA_OECONF = "--without-x --without-doc" PARALLEL_MAKE = "" -CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl' ac_cv_path_BASH_PROG='no'" +CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl' ac_cv_path_BASH_PROG='no' PAGE=A4" do_install_append() { # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location
Signature · 1 line
2.29.2
PATCH 23/35 man-db: Avoid reproducibility failures after fixing groff-native
In reply to Anuj MittalFrom: Richard Purdie <[email protected]>
Add some temporary bumps to versions to change the output hash so we really can take advantage of the groff-native reproducibility fix.
--- meta/recipes-extended/man-db/man-db_2.9.3.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta/recipes-extended/man-db/man-db_2.9.3.bb +5 -0
@@ -20,6 +20,11 @@ inherit gettext pkgconfig autotools systemd EXTRA_OECONF = "--with-pager=less --with-systemdsystemunitdir=${systemd_unitdir}/system" EXTRA_AUTORECONF += "-I ${S}/gl/m4" +# Can be dropped when the output next changes, avoids failures after +# reproducibility issues +PR = "r1" +HASHEQUIV_HASH_VERSION .= ".1" + do_install() { autotools_do_install
Signature · 1 line
2.29.2
PATCH 24/35 kea: fix reproducibility
In reply to Anuj MittalFrom: Alexander Kanavin <[email protected]>
--- ...er_unittest_support.cc-do-not-write-.patch | 27 +++++++++++++++++ meta/recipes-connectivity/kea/kea_1.7.10.bb | 29 +++++++++++-------- 2 files changed, 44 insertions(+), 12 deletions(-) create mode 100644 meta/recipes-connectivity/kea/files/0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch
meta/recipes-connectivity/kea/files/0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 9985a03f13da4d7bb0a433f7305d2ffae3d82a27 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Tue, 10 Nov 2020 15:57:03 +0000 +Subject: [PATCH] src/lib/log/logger_unittest_support.cc: do not write build + path into binary + +This breaks reproducibility and is needed only in unit testing. + +Upstream-Status: Inappropriate [oe-core specific] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + src/lib/log/logger_unittest_support.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lib/log/logger_unittest_support.cc b/src/lib/log/logger_unittest_support.cc +index 58dbef8..9a2929c 100644 +--- a/src/lib/log/logger_unittest_support.cc ++++ b/src/lib/log/logger_unittest_support.cc +@@ -84,7 +84,7 @@ void initLogger(isc::log::Severity severity, int dbglevel) { + const char* localfile = getenv("KEA_LOGGER_LOCALMSG"); + + // Set a directory for creating lockfiles when running tests +- setenv("KEA_LOCKFILE_DIR", TOP_BUILDDIR, 0); ++ //setenv("KEA_LOCKFILE_DIR", TOP_BUILDDIR, 0); + + // Initialize logging + initLogger(root, isc::log::DEBUG, isc::log::MAX_DEBUG_LEVEL, localfile);
meta/recipes-connectivity/kea/kea_1.7.10.bb +17 -12
@@ -7,18 +7,18 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=68d95543d2096459290a4e6b9ceccffa" DEPENDS = "boost log4cplus openssl" -SRC_URI = "\ - http://ftp.isc.org/isc/kea/${PV}/${BP}.tar.gz \ - file://0001-keactrl.in-create-var-lib-kea-and-var-run-kea-folder.patch \ - file://kea-dhcp4.service \ - file://kea-dhcp6.service \ - file://kea-dhcp-ddns.service \ - file://kea-dhcp4-server \ - file://kea-dhcp6-server \ - file://kea-dhcp-ddns-server \ - file://fix-multilib-conflict.patch \ - file://fix_pid_keactrl.patch \ -" +SRC_URI = "http://ftp.isc.org/isc/kea/${PV}/${BP}.tar.gz \ + file://0001-keactrl.in-create-var-lib-kea-and-var-run-kea-folder.patch \ + file://kea-dhcp4.service \ + file://kea-dhcp6.service \ + file://kea-dhcp-ddns.service \ + file://kea-dhcp4-server \ + file://kea-dhcp6-server \ + file://kea-dhcp-ddns-server \ + file://fix-multilib-conflict.patch \ + file://fix_pid_keactrl.patch \ + file://0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch \ + " SRC_URI[sha256sum] = "4e121f0e58b175a827581c69cb1d60778647049fa47f142940dddc9ce58f3c82" inherit autotools systemd update-rc.d
@@ -50,6 +50,11 @@ do_configure_prepend() { sed -i "s:@abs_top_srcdir@:@abs_top_srcdir_placeholder@:g" ${S}/src/bin/admin/kea-admin.in } +# patch out build host paths for reproducibility +do_compile_prepend_class-target() { + sed -i -e "s,${WORKDIR},,g" ${B}/config.report +} + do_install_append() { install -d ${D}${sysconfdir}/init.d install -d ${D}${systemd_system_unitdir}
Signature · 1 line
2.29.2
PATCH 25/35 timezone: upgrade to 2020d
In reply to Anuj MittalFrom: Changqing Li <[email protected]>
--- meta/recipes-extended/timezone/timezone.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-extended/timezone/timezone.inc +3 -3
@@ -6,7 +6,7 @@ SECTION = "base" LICENSE = "PD & BSD & BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=c679c9d6b02bc2757b3eaf8f53c43fba" -PV = "2020b" +PV = "2020d" SRC_URI =" http://www.iana.org/time-zones/repository/releases/tzcode${PV}.tar.gz;name=tzcode \ http://www.iana.org/time-zones/repository/releases/tzdata${PV}.tar.gz;name=tzdata \
@@ -14,5 +14,5 @@ SRC_URI =" http://www.iana.org/time-zones/repository/releases/tzcode${PV}.tar.gz UPSTREAM_CHECK_URI = "http://www.iana.org/time-zones" -SRC_URI[tzcode.sha256sum] = "47eff8944de4a64f7629b851e4a32338ab12c9b73edd62063795167ff1fe43da" -SRC_URI[tzdata.sha256sum] = "9b053f951d245ce89d850b96ee4711d82d833559b1fc96ba19f90bc4d745e809" +SRC_URI[tzcode.sha256sum] = "6cf050ba28e8053029d3f32d71341d11a794c6b5dd51a77fc769d6dae364fad5" +SRC_URI[tzdata.sha256sum] = "8d813957de363387696f05af8a8889afa282ab5016a764c701a20758d39cbaf3"
Signature · 1 line
2.29.2
PATCH 26/35 go: upgrade 1.15.2 -> 1.15.3
In reply to Anuj MittalFrom: Alexander Kanavin <[email protected]>
Set PV directly to allow automated version updates between point releases.
---
meta/recipes-devtools/go/go-1.15.inc | 5 ++---
...go-binary-native_1.15.2.bb => go-binary-native_1.15.3.bb} | 4 ++--
meta/recipes-devtools/go/go-runtime_1.15.bb | 1 +
meta/recipes-devtools/go/go_1.15.bb | 1 +
4 files changed, 6 insertions(+), 5 deletions(-)
rename meta/recipes-devtools/go/{go-binary-native_1.15.2.bb => go-binary-native_1.15.3.bb} (83%)meta/recipes-devtools/go/go-1.15.inc +2 -3
@@ -1,8 +1,7 @@ require go-common.inc GO_BASEVERSION = "1.15" -GO_MINOR = ".2" -PV .= "${GO_MINOR}" +PV = "1.15.3" FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/go-${GO_BASEVERSION}:" LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707"
@@ -17,4 +16,4 @@ SRC_URI += "\ file://0007-cmd-go-make-GOROOT-precious-by-default.patch \ file://0008-use-GOBUILDMODE-to-set-buildmode.patch \ " -SRC_URI[main.sha256sum] = "28bf9d0bcde251011caae230a4a05d917b172ea203f2a62f2c2f9533589d4b4d" +SRC_URI[main.sha256sum] = "896a602570e54c8cdfc2c1348abd4ffd1016758d0bd086ccd9787dbfc9b64888"
meta/recipes-devtools/go/go-binary-native_1.15.3.bb renamed from meta/recipes-devtools/go/go-binary-native_1.15.2.bb +2 -2
@@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707" PROVIDES = "go-native" SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}" -SRC_URI[go_linux_amd64.sha256sum] = "b49fda1ca29a1946d6bb2a5a6982cf07ccd2aba849289508ee0f9918f6bb4552" -SRC_URI[go_linux_arm64.sha256sum] = "c8ec460cc82d61604b048f9439c06bd591722efce5cd48f49e19b5f6226bd36d" +SRC_URI[go_linux_amd64.sha256sum] = "010a88df924a81ec21b293b5da8f9b11c176d27c0ee3962dc1738d2352d3c02d" +SRC_URI[go_linux_arm64.sha256sum] = "b8b88a87ada918ef5189fa5938ef4c46a4f61952a34317612aaac705f4275f80" UPSTREAM_CHECK_URI = "https://golang.org/dl/" UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux"
meta/recipes-devtools/go/go-runtime_1.15.bb +1 -0
@@ -1,3 +1,4 @@ export CGO_ENABLED_riscv64 = "" require go-${PV}.inc require go-runtime.inc +
meta/recipes-devtools/go/go_1.15.bb +1 -0
@@ -13,3 +13,4 @@ python() { if 'mips' in d.getVar('TARGET_ARCH',True) or 'riscv' in d.getVar('TARGET_ARCH',True): d.appendVar('INSANE_SKIP_%s' % d.getVar('PN',True), " textrel") } +
Signature · 1 line
2.29.2
PATCH 27/35 go: Update to 1.15.5
In reply to Anuj MittalFrom: Khem Raj <[email protected]>
Define CXX_FOR_TARGET and CC_FOR_TARGET for target go since we are cross building it, it helps in defining the compiler for cgo on target
backport a patch to fix CGO_LDFLAGS regression like below
Fixes
| Building std for target, linux/arm.
| go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1
---
meta/recipes-devtools/go/go-1.15.inc | 5 +-
...t-CGO_LDFLAGS-to-appear-in-go-ldflag.patch | 100 ++++++++++++++++++
...e_1.15.3.bb => go-binary-native_1.15.5.bb} | 4 +-
meta/recipes-devtools/go/go_1.15.bb | 2 +
4 files changed, 107 insertions(+), 4 deletions(-)
create mode 100644 meta/recipes-devtools/go/go-1.15/0009-cmd-go-permit-CGO_LDFLAGS-to-appear-in-go-ldflag.patch
rename meta/recipes-devtools/go/{go-binary-native_1.15.3.bb => go-binary-native_1.15.5.bb} (83%)meta/recipes-devtools/go/go-1.15.inc +3 -2
@@ -1,7 +1,7 @@ require go-common.inc GO_BASEVERSION = "1.15" -PV = "1.15.3" +PV = "1.15.5" FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/go-${GO_BASEVERSION}:" LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707"
@@ -15,5 +15,6 @@ SRC_URI += "\ file://0006-cmd-dist-separate-host-and-target-builds.patch \ file://0007-cmd-go-make-GOROOT-precious-by-default.patch \ file://0008-use-GOBUILDMODE-to-set-buildmode.patch \ + file://0009-cmd-go-permit-CGO_LDFLAGS-to-appear-in-go-ldflag.patch \ " -SRC_URI[main.sha256sum] = "896a602570e54c8cdfc2c1348abd4ffd1016758d0bd086ccd9787dbfc9b64888" +SRC_URI[main.sha256sum] = "c1076b90cf94b73ebed62a81d802cd84d43d02dea8c07abdc922c57a071c84f1"
meta/recipes-devtools/go/go-1.15/0009-cmd-go-permit-CGO_LDFLAGS-to-appear-in-go-ldflag.patch new file +100 -0
100 lines not on this page · raw message
meta/recipes-devtools/go/go-binary-native_1.15.5.bb renamed from meta/recipes-devtools/go/go-binary-native_1.15.3.bb +2 -2
@@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707" PROVIDES = "go-native" SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}" -SRC_URI[go_linux_amd64.sha256sum] = "010a88df924a81ec21b293b5da8f9b11c176d27c0ee3962dc1738d2352d3c02d" -SRC_URI[go_linux_arm64.sha256sum] = "b8b88a87ada918ef5189fa5938ef4c46a4f61952a34317612aaac705f4275f80" +SRC_URI[go_linux_amd64.sha256sum] = "9a58494e8da722c3aef248c9227b0e9c528c7318309827780f16220998180a0d" +SRC_URI[go_linux_arm64.sha256sum] = "a72a0b036beb4193a0214bca3fca4c5d68a38a4ccf098c909f7ce8bf08567c48" UPSTREAM_CHECK_URI = "https://golang.org/dl/" UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux"
meta/recipes-devtools/go/go_1.15.bb +2 -0
@@ -6,6 +6,8 @@ inherit linuxloader export GOBUILDMODE="" export CGO_ENABLED_riscv64 = "" export GO_LDSO = "${@get_linuxloader(d)}" +export CC_FOR_TARGET = "gcc" +export CXX_FOR_TARGET = "g++" # mips/rv64 doesn't support -buildmode=pie, so skip the QA checking for mips/riscv and its # variants.
Signature · 1 line
2.29.2
PATCH 28/35 go: Update 1.15.5 -> 1.15.6
In reply to Anuj MittalFrom: Khairul Rohaizzat Jamaluddin <[email protected]>
The deleted patch file mentioned below is removed since 1.15.6 already has the issue patched.
---
meta/recipes-devtools/go/go-1.15.inc | 5 +-
...t-CGO_LDFLAGS-to-appear-in-go-ldflag.patch | 100 ------------------
...e_1.15.5.bb => go-binary-native_1.15.6.bb} | 4 +-
3 files changed, 4 insertions(+), 105 deletions(-)
delete mode 100644 meta/recipes-devtools/go/go-1.15/0009-cmd-go-permit-CGO_LDFLAGS-to-appear-in-go-ldflag.patch
rename meta/recipes-devtools/go/{go-binary-native_1.15.5.bb => go-binary-native_1.15.6.bb} (83%)meta/recipes-devtools/go/go-1.15.inc +2 -3
@@ -1,7 +1,7 @@ require go-common.inc GO_BASEVERSION = "1.15" -PV = "1.15.5" +PV = "1.15.6" FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/go-${GO_BASEVERSION}:" LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707"
@@ -15,6 +15,5 @@ SRC_URI += "\ file://0006-cmd-dist-separate-host-and-target-builds.patch \ file://0007-cmd-go-make-GOROOT-precious-by-default.patch \ file://0008-use-GOBUILDMODE-to-set-buildmode.patch \ - file://0009-cmd-go-permit-CGO_LDFLAGS-to-appear-in-go-ldflag.patch \ " -SRC_URI[main.sha256sum] = "c1076b90cf94b73ebed62a81d802cd84d43d02dea8c07abdc922c57a071c84f1" +SRC_URI[main.sha256sum] = "890bba73c5e2b19ffb1180e385ea225059eb008eb91b694875dd86ea48675817"
meta/recipes-devtools/go/go-1.15/0009-cmd-go-permit-CGO_LDFLAGS-to-appear-in-go-ldflag.patch deleted +0 -100
100 lines not on this page · raw message
meta/recipes-devtools/go/go-binary-native_1.15.6.bb renamed from meta/recipes-devtools/go/go-binary-native_1.15.5.bb +2 -2
@@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707" PROVIDES = "go-native" SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}" -SRC_URI[go_linux_amd64.sha256sum] = "9a58494e8da722c3aef248c9227b0e9c528c7318309827780f16220998180a0d" -SRC_URI[go_linux_arm64.sha256sum] = "a72a0b036beb4193a0214bca3fca4c5d68a38a4ccf098c909f7ce8bf08567c48" +SRC_URI[go_linux_amd64.sha256sum] = "3918e6cc85e7eaaa6f859f1bdbaac772e7a825b0eb423c63d3ae68b21f84b844" +SRC_URI[go_linux_arm64.sha256sum] = "f87515b9744154ffe31182da9341d0a61eb0795551173d242c8cad209239e492" UPSTREAM_CHECK_URI = "https://golang.org/dl/" UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux"
Signature · 1 line
2.29.2
PATCH 29/35 go.bbclass: Use external linker for native packages
In reply to Anuj MittalFrom: Khem Raj <[email protected]>
go 1.15 has reworked internal linker, which has resulted in regressions in OE where native binaries generated using internal linker in some cases result in corruption during populate_sysroot e.g. glide-native crashing when used after relocation.
This improved reliability of native binaries working especially when they use cgo or pie build modes
--- meta/classes/go.bbclass | 1 + 1 file changed, 1 insertion(+)
meta/classes/go.bbclass +1 -0
@@ -40,6 +40,7 @@ GO_RPATH_LINK_class-native = "${@'-Wl,-rpath-link=${STAGING_LIBDIR_NATIVE}/go/pk GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${GO_RPATH_LINK} ${LDFLAGS}" GO_LINKMODE ?= "" GO_LINKMODE_class-nativesdk = "--linkmode=external" +GO_LINKMODE_class-native = "--linkmode=external" GO_LDFLAGS ?= '-ldflags="${GO_RPATH} ${GO_LINKMODE} -extldflags '${GO_EXTLDFLAGS}'"' export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS} -trimpath" export GOPATH_OMIT_IN_ACTIONID ?= "1"
Signature · 1 line
2.29.2
PATCH 30/35 gcc: Add patch to resolve i*86 tune configuration overrides
In reply to Anuj MittalFrom: Nathan Rossi <[email protected]>
When compiling gcc-runtime for i686 libatomic, libgomp and libitm are compiled with additional '-march' and '-mtune' overrides. This typically does not cause build errors (e.g. core2-32 tune), and results in less optimally tuned outputs. However with specific TUNE_CCARGS (e.g. has '-mfpmath=sse' but not '-msse*'), the build errors with conflicting '-mfpmath' options.
This is caused by gcc-runtime specific configure scripts and Makefile options that override by adding additional '-march'/'-mtune' args. OE builds gcc-runtime differently to other build systems, and provides target specific arch/tune options directly. As such, this change adds a patch for gcc to remove the specific cases where the args are added.
--- meta/recipes-devtools/gcc/gcc-10.2.inc | 1 + ...0001-lib-Remove-i-86-march-overrides.patch | 113 ++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc/0001-lib-Remove-i-86-march-overrides.patch
meta/recipes-devtools/gcc/gcc-10.2.inc +1 -0
@@ -69,6 +69,7 @@ SRC_URI = "\ file://0002-aarch64-Introduce-SLS-mitigation-for-RET-and-BR-inst.patch \ file://0003-aarch64-Mitigate-SLS-for-BLR-instruction.patch \ file://0001-aarch64-Fix-up-__aarch64_cas16_acq_rel-fallback.patch \ + file://0001-lib-Remove-i-86-march-overrides.patch \ " SRC_URI[sha256sum] = "b8dd4368bb9c7f0b98188317ee0254dd8cc99d1e3a18d0ff146c855fe16c1d8c"
meta/recipes-devtools/gcc/gcc/0001-lib-Remove-i-86-march-overrides.patch new file +113 -0
113 lines not on this page · raw message
Signature · 1 line
2.29.2
PATCH 31/35 ncurses: Make ncurses-tools depend on ncurses-terminfo-base
In reply to Anuj MittalFrom: Robert Yang <[email protected]>
Fixed when ncurses-terminfo-base is not installed:
$ infocmp infocmp: couldn't open terminfo file linux.
The required file is in ncurses-terminfo-base
--- meta/recipes-core/ncurses/ncurses.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/ncurses/ncurses.inc +1 -1
@@ -312,7 +312,7 @@ FILES_${PN}-tools = "\ " # 'reset' is a symlink to 'tset' which is in the 'ncurses' package -RDEPENDS_${PN}-tools = "${PN}" +RDEPENDS_${PN}-tools = "${PN} ${PN}-terminfo-base" FILES_${PN}-terminfo = "\ ${datadir}/terminfo \
Signature · 1 line
2.29.2
PATCH 32/35 minicom: RDEPENDS on ncurses-terminfo-base
In reply to Anuj MittalFrom: Robert Yang <[email protected]>
Fixed when ncurses-terminfo-base is not installed:
$ minicom No termcap database present!
--- meta/recipes-extended/minicom/minicom_2.7.1.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-extended/minicom/minicom_2.7.1.bb +2 -0
@@ -29,3 +29,5 @@ do_install() { } RRECOMMENDS_${PN} += "lrzsz" + +RDEPENDS_${PN} += "ncurses-terminfo-base"
Signature · 1 line
2.29.2
PATCH 33/35 archiver.bbclass: Fix --runall=deploy_archives for images
In reply to Anuj MittalFrom: Robert Yang <[email protected]>
Fixed:
INHERIT += "archiver"COPYLEFT_LICENSE_INCLUDE = "*"
$ bitbake core-image-minimal --runall=deploy_archives [snip] KeyError: '/path/to/meta/recipes-core/images/core-image-minimal.bb:do_ar_original' [snip]
--- meta/classes/archiver.bbclass | 1 + 1 file changed, 1 insertion(+)
meta/classes/archiver.bbclass +1 -0
@@ -590,6 +590,7 @@ addtask do_dumpdata addtask do_ar_recipe addtask do_deploy_archives do_build[recrdeptask] += "do_deploy_archives" +do_rootfs[recrdeptask] += "do_deploy_archives" do_populate_sdk[recrdeptask] += "do_deploy_archives" python () {
Signature · 1 line
2.29.2
PATCH 34/35 valgrind: exclude bar_bad/bar_bad_xml from ptests
In reply to Anuj MittalFrom: Alexander Kanavin <[email protected]>
The tests' output is non-deterministic and sometimes
doesn't match the sample output. This has been reported at
https://bugs.kde.org/show_bug.cgi?id=430321
(see also an earlier related bug https://bugs.kde.org/show_bug.cgi?id=358213)
Until upstream figures out how to fix this, let's not run the tests.
--- .../valgrind/valgrind/remove-for-aarch64 | 2 -- meta/recipes-devtools/valgrind/valgrind/remove-for-all | 2 ++ meta/recipes-devtools/valgrind/valgrind/run-ptest | 10 ++++++++++ meta/recipes-devtools/valgrind/valgrind_3.16.1.bb | 2 ++ 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-devtools/valgrind/valgrind/remove-for-all
meta/recipes-devtools/valgrind/valgrind/remove-for-aarch64 +0 -2
@@ -31,8 +31,6 @@ drd/tests/annotate_static drd/tests/annotate_trace_memory drd/tests/annotate_trace_memory_xml drd/tests/atomic_var -drd/tests/bar_bad -drd/tests/bar_bad_xml drd/tests/bar_trivial drd/tests/bug-235681 drd/tests/bug322621
meta/recipes-devtools/valgrind/valgrind/remove-for-all new file +2 -0
@@ -0,0 +1,2 @@ +drd/tests/bar_bad +drd/tests/bar_bad_xml
meta/recipes-devtools/valgrind/valgrind/run-ptest +10 -0
@@ -17,6 +17,12 @@ EXP_TOOLS="exp-bbv exp-dhat exp-sgcheck" GDB_BIN=@bindir@/gdb cd ${VALGRIND_LIB}/ptest && ./gdbserver_tests/make_local_links ${GDB_BIN} +echo "Hide valgrind tests that are non-deterministic" +echo "Reported at https://bugs.kde.org/show_bug.cgi?id=430321" +for i in `cat remove-for-all`; do + mv $i.vgtest $i.IGNORE; +done + arch=`arch` if [ "$arch" = "aarch64" ]; then echo "Aarch64: Hide valgrind tests that result in defunct process and then out of memory"
@@ -44,6 +50,10 @@ if [ "$arch" = "aarch64" ]; then done fi +echo "Restore valgrind tests that are non-deterministc" +for i in `cat remove-for-all`; do + mv $i.IGNORE $i.vgtest; +done passed=`grep PASS: ${LOG}|wc -l` failed=`grep FAIL: ${LOG}|wc -l`
meta/recipes-devtools/valgrind/valgrind_3.16.1.bb +2 -0
@@ -16,6 +16,7 @@ SRC_URI = "https://sourceware.org/pub/valgrind/valgrind-${PV}.tar.bz2 \ file://Added-support-for-PPC-instructions-mfatbu-mfatbl.patch \ file://run-ptest \ file://remove-for-aarch64 \ + file://remove-for-all \ file://0004-Fix-out-of-tree-builds.patch \ file://0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch \ file://0001-Remove-tests-that-fail-to-build-on-some-PPC32-config.patch \
@@ -186,6 +187,7 @@ do_install_ptest() { # The scripts reference config.h so add it to the top ptest dir. cp ${B}/config.h ${D}${PTEST_PATH} install -D ${WORKDIR}/remove-for-aarch64 ${D}${PTEST_PATH} + install -D ${WORKDIR}/remove-for-all ${D}${PTEST_PATH} # Add an executable need by none/tests/bigcode mkdir ${D}${PTEST_PATH}/perf
Signature · 1 line
2.29.2
PATCH 35/35 apr-util: Only specify --with-dbm=gdbm if gdbm support is enabled
In reply to Anuj MittalFrom: Peter Kjellerstedt <[email protected]>
Support for gdbm was made optional in 3260ad9e, but it was still being used unconditionally.
--- meta/recipes-support/apr/apr-util_1.6.1.bb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
meta/recipes-support/apr/apr-util_1.6.1.bb +2 -3
@@ -19,10 +19,9 @@ SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.gz \ SRC_URI[md5sum] = "bd502b9a8670a8012c4d90c31a84955f" SRC_URI[sha256sum] = "b65e40713da57d004123b6319828be7f1273fbc6490e145874ee1177e112c459" -EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \ +EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \ --without-odbc \ --without-pgsql \ - --with-dbm=gdbm \ --without-sqlite2 \ --with-expat=${STAGING_DIR_HOST}${prefix}"
@@ -69,7 +68,7 @@ PACKAGECONFIG ??= "crypto gdbm" PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" PACKAGECONFIG[crypto] = "--with-openssl=${STAGING_DIR_HOST}${prefix} --with-crypto,--without-crypto,openssl" PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_DIR_HOST}${prefix},--without-sqlite3,sqlite3" -PACKAGECONFIG[gdbm] = "--with-gdbm=${STAGING_DIR_HOST}${prefix},--without-gdbm,gdbm" +PACKAGECONFIG[gdbm] = "--with-dbm=gdbm --with-gdbm=${STAGING_DIR_HOST}${prefix},--without-gdbm,gdbm" #files ${libdir}/apr-util-1/*.so are not symlinks but loadable modules thus they are packaged in ${PN} FILES_${PN} += "${libdir}/apr-util-1/apr*${SOLIBS} ${libdir}/apr-util-1/apr*${SOLIBSDEV}"
Signature · 1 line
2.29.2