Skip to contentSkip to conversation

python3-hexdump: Move cleanup_hexfile into install_append

PATCH In review Khem Raj 2 participants 2 messages Mar 22, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 python3-hexdump: Move cleanup_hexfile into install_append

This fixes error seen during staging phase
run.sysroot_stage_all.902827: line 182: cd: TOPDIR/build/tmpfs/work/core2-32-yoe-linux-musl/python3-hexdump/3.3-r0/image/usr/share: No such file or directory

this happens because D is being altered outside pseudo's context, and alterning D is done after do_install ends so its likely going to race as well with subsequent functions and change pseudo context too

Fixes occasionally seen build failures on autobuilders

Cc Andrew Jeffery <[email protected]>
---
 meta-python/recipes-devtools/python/python3-hexdump_3.3.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta-python/recipes-devtools/python/python3-hexdump_3.3.bb +1 -3
index cb04e17dfd..5325048039 100644
@@ -19,9 +19,7 @@ S = "${WORKDIR}"
 
 BBCLASSEXTEND = "native nativesdk"
 
-do_cleanup_hexfile() {
+do_install_append() {
     rm ${D}${datadir}/data/hexfile.bin
     rmdir ${D}${datadir}/data ${D}${datadir}
 }
-
-addtask cleanup_hexfile before do_package after do_install
Signature · 1 line
2.31.0
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Khem Raj

This fixes error seen during staging phase
run.sysroot_stage_all.902827: line 182: cd:
TOPDIR/build/tmpfs/work/core2-32-yoe-linux-musl/python3-hexdump/3.3-r0/image/usr/share: No such file or directory

Quoted 8 lines

this happens because D is being altered outside pseudo's context, and alterning D is done after do_install ends so its likely going to race as well with subsequent functions and change pseudo context too

Fixes occasionally seen build failures on autobuilders

Cc Andrew Jeffery <[email protected]>

Ah, interesting.

Thanks Khem.