meta-openembedded/meta-python/recipes-devtools/python/python3-hexdump_3.3.bb
Khem Raj c8bd8cd172 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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-03-24 08:50:45 -07:00

26 lines
689 B
BlitzBasic

SUMMARY = "view/edit your binary with any text editor"
# The homepage listed on pypi is [1] but the repository has been removed.
# Instead, set the homepage to pypi.
#
# [1] https://bitbucket.org/techtonik/hexdump/
HOMEPAGE = "https://pypi.org/project/hexdump/"
LICENSE = "PD"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"
PYPI_PACKAGE_EXT = "zip"
inherit pypi distutils3
SRC_URI[sha256sum] = "d781a43b0c16ace3f9366aade73e8ad3a7bd5137d58f0b45ab2d3f54876f20db"
S = "${WORKDIR}"
BBCLASSEXTEND = "native nativesdk"
do_install_append() {
rm ${D}${datadir}/data/hexfile.bin
rmdir ${D}${datadir}/data ${D}${datadir}
}