Skip to contentSkip to conversation

fix sed invocation

PATCH Applied Trevor Woerner 2 participants 3 messages Nov 4, 2025 – Nov 5, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix sed invocation

"sed -ie" is different than "sed -i -e". Although both run the script on the intended file in-place, the first one creates a backup. These two were accidentally merged into one option which can sometimes work, but not in this case.

---
 .../rk-rauc-demo/recipes-core/rauc/rauc-conf.bbappend           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
dynamic-layers/rk-rauc-demo/recipes-core/rauc/rauc-conf.bbappend +1 -1
index 323b63b01f40..82dec84a8d5c 100644
@@ -5,5 +5,5 @@ PACKAGE_ARCH:rk-rauc-demo = "${MACHINE_ARCH}"
 FILESEXTRAPATHS:prepend:rk-rauc-demo := "${THISDIR}/files:"
 
 do_install:prepend:rk-rauc-demo() {
-	sed -ie 's!@MACHINE@!${MACHINE}!g' ${UNPACKDIR}/system.conf
+	sed -i -e 's!@MACHINE@!${MACHINE}!g' ${UNPACKDIR}/system.conf
 }
Signature · 1 line
2.51.0.193.g4975ec3473b4
Reviewed-by on v1 1/1
#1 lore raw

Hi Trevor,

Quoted 1 line · Trevor Woerner via lists.yoctoproject.org

"sed -ie" is different than "sed -i -e". Although both run the script on

Nice catch!

Quoted 4 lines

the intended file in-place, the first one creates a backup. These two were accidentally merged into one option which can sometimes work, but not in this case.

Thanks!
Quentin

author Applied
#2 lore raw
In reply to Trevor Woerner
Quoted 9 lines · Trevor Woerner

"sed -ie" is different than "sed -i -e". Although both run the script on the intended file in-place, the first one creates a backup. These two were accidentally merged into one option which can sometimes work, but not in this case.

---
 .../rk-rauc-demo/recipes-core/rauc/rauc-conf.bbappend           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to meta-rockchip, master branch.