u-boot: switch from append to += in SRC_URI
PATCH 1/5 u-boot: switch from append to += in SRC_URI
+= allows custom layers to change the SRC_URI e.g. when updating the whole recipe to newer u-boot version. With :append, there is no way to change the variable from a bbappend.
(From OE-Core rev: be96b384ce964ff14536d3bc40c89851a12dfb60)
--- meta/recipes-bsp/u-boot/u-boot_2022.01.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-bsp/u-boot/u-boot_2022.01.bb +1 -1
@@ -1,7 +1,7 @@ require u-boot-common.inc require u-boot.inc -SRC_URI:append = " file://0001-riscv32-Use-double-float-ABI-for-rv32.patch \ +SRC_URI += " file://0001-riscv32-Use-double-float-ABI-for-rv32.patch \ file://0001-riscv-fix-build-with-binutils-2.38.patch \ file://0001-i2c-fix-stack-buffer-overflow-vulnerability-in-i2c-m.patch \ file://0001-fs-squashfs-sqfs_read-Prevent-arbitrary-code-executi.patch \
Signature · 1 line
2.17.1
PATCH 2/5 glibc-tests: use += instead of :append
:append can not be modified in bbappends and thus += is better in re-usable, generic layers and recipes.
(From OE-Core rev: da88406ba592504a718f516b985adc0d4553080d)
--- meta/recipes-core/glibc/glibc-tests_2.35.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/glibc/glibc-tests_2.35.bb +2 -2
@@ -4,7 +4,7 @@ require glibc-tests.inc inherit ptest features_check REQUIRED_DISTRO_FEATURES = "ptest" -SRC_URI:append = " \ +SRC_URI += " \ file://reproducible-paths.patch \ file://run-ptest \ "
@@ -30,7 +30,7 @@ python __anonymous() { RPROVIDES:${PN} = "${PN}" RRECOMMENDS:${PN} = "" RDEPENDS:${PN} = " glibc sed" -DEPENDS:append = " sed" +DEPENDS += "sed" export oe_srcdir="${exec_prefix}/src/debug/glibc/${PV}/"
Signature · 1 line
2.17.1
PATCH 3/5 go-native: switch from SRC_URI:append to SRC_URI +=
In reply to Mikko RapeliThe :append can not be removed if needed in other layers.
(From OE-Core rev: e129d2f7e3ba312ab5383397eeabf7273d23a529)
--- meta/recipes-devtools/go/go-native_1.17.13.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/go/go-native_1.17.13.bb +1 -1
@@ -5,7 +5,7 @@ require go-${PV}.inc inherit native -SRC_URI:append = " https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz;name=bootstrap;subdir=go1.4" +SRC_URI += "https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz;name=bootstrap;subdir=go1.4" SRC_URI[bootstrap.sha256sum] = "f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52" export GOOS = "${BUILD_GOOS}"
Signature · 1 line
2.17.1
PATCH 4/5 python3-rfc3986-validator: switch from SRC_URI:append to SRC_URI +=
In reply to Mikko RapeliThe :append can not be removed via bbappends if needed. Thus it's better for open source layers to use += append if possible.
(From OE-Core rev: 1e09be9455fb054b3f74f088b355116828cb4626)
--- meta/recipes-devtools/python/python3-rfc3986-validator_0.1.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-rfc3986-validator_0.1.1.bb +1 -1
@@ -13,7 +13,7 @@ UPSTREAM_CHECK_REGEX = "/rfc3986-validator/(?P<pver>(\d+[\.\-_]*)+)/" inherit pypi setuptools3 -SRC_URI:append = " \ +SRC_URI += "\ file://0001-setup.py-move-pytest-runner-to-test_requirements.patch \ "
Signature · 1 line
2.17.1
PATCH 5/5 linux-libc-headers: switch from SRC_URI:append to SRC_URI +=
In reply to Mikko RapeliThe :append can not be removed via bbappends in custom layers so it's better to use += appends when ever possible.
(From OE-Core rev: 6604795a3f7e53fd748d4103b521d8baf35cf7be)
--- .../linux-libc-headers/linux-libc-headers_5.16.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/linux-libc-headers/linux-libc-headers_5.16.bb +1 -1
@@ -7,7 +7,7 @@ SRC_URI:append:libc-musl = "\ file://0001-include-linux-stddef.h-in-swab.h-uapi-header.patch \ " -SRC_URI:append = "\ +SRC_URI += "\ file://0001-scripts-Use-fixed-input-and-output-files-instead-of-.patch \ file://0001-kbuild-install_headers.sh-Strip-_UAPI-from-if-define.patch \ "
Signature · 1 line
2.17.1