* it was done with CFLAGS only in python3-maturin but it could be useful
for other recipes as well, move it to bbclass which sets CARGO_HOME
* python3-maturin buildflags issue is reproducible with scarthgap:
WARNING: python3-maturin-1.4.0-r0 do_package_qa: QA Issue: File /usr/bin/.debug/maturin in package python3-maturin-dbg contains reference to TMPDIR [buildpaths]
but not with whinlatter
# Where we download our registry and dependencies to
export CARGO_HOME = "${UNPACKDIR}/cargo_home"
+DEBUG_PREFIX_MAP:append = " -ffile-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home"
+
+
# The pkg-config-rs library used by cargo build scripts disables itself when
# cross compiling unless this is defined. We set up pkg-config appropriately
# for cross compilation, so tell it we know better than it.
S = "${UNPACKDIR}/maturin-${PV}"
-CFLAGS += "-ffile-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home"
-
DEPENDS += "\
python3-setuptools-rust-native \
python3-semantic-version-native \