Skip to contentSkip to conversation

u-boot: switch from append to += in SRC_URI

PATCH New Mikko Rapeli 1 participant 5 messages Sep 19, 2022

lore
Share & tools
lore
#0 lore raw

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)

(cherry picked from commit be267f61698d149ed2f65190f362fc556af1f54e)
---
 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
index 54033698be..c4cfcbca19 100644
@@ -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
#1 lore raw

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)

(cherry picked from commit c9676445c942b95cc2bb71085d1648c02d774479)
---
 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
index 96d0569ff6..97d5dc29a3 100644
@@ -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
#2 lore raw

PATCH 3/5 go-native: switch from SRC_URI:append to SRC_URI +=

In reply to Mikko Rapeli

The :append can not be removed if needed in other layers.

(From OE-Core rev: e129d2f7e3ba312ab5383397eeabf7273d23a529)

(cherry picked from commit 09ed655c2a8a0a246e7dcc745ec89f7a1d13813d)
---
 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
index 76c0ab73a6..ddf25b2c9b 100644
@@ -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
#3 lore raw

PATCH 4/5 python3-rfc3986-validator: switch from SRC_URI:append to SRC_URI +=

In reply to Mikko Rapeli

The :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)

(cherry picked from commit 4546b5186e5aa2808be6c1616eca15219c4fcb5d)
---
 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
index 4abd181acf..e374979cb4 100644
@@ -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
#4 lore raw

PATCH 5/5 linux-libc-headers: switch from SRC_URI:append to SRC_URI +=

In reply to Mikko Rapeli

The :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)

(cherry picked from commit ab9f6d205f655cffa2c75d89ba0456fa0586480c)
---
 .../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
index c64629d094..d5039264c4 100644
@@ -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