Skip to content

Commit

Permalink
classes-recipe: bundle: use native paths instead of target paths
Browse files Browse the repository at this point in the history
If either ${prefix} is not equal to ${prefix_native}, or ${bindir} is
not equal to ${bindir_native}, the recipe will fail.
Correct this by using ${prefix_native} and ${STAGING_BINDIR_NATIVE}.

Signed-off-by: Mark Cilissen <[email protected]>
  • Loading branch information
mqqc authored and ejoerns committed Jan 7, 2024
1 parent 1c1498e commit 95bef89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes-recipe/bundle.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ do_bundle() {
bbfatal "'RAUC_CERT_FILE' not set. Please set to a valid certificate file location."
fi

${STAGING_DIR_NATIVE}${bindir}/rauc bundle \
${STAGING_BINDIR_NATIVE}/rauc bundle \
--debug \
--cert="${RAUC_CERT_FILE}" \
--key="${RAUC_KEY_FILE}" \
Expand All @@ -442,9 +442,9 @@ do_bundle() {
# replacement named "pseudo". But casync requires fakeroot to be
# installed, thus make a symlink.
if ! [ -x "$(command -v fakeroot)" ]; then
ln -sf ${STAGING_DIR_NATIVE}${bindir}/pseudo ${STAGING_DIR_NATIVE}${bindir}/fakeroot
ln -sf ${STAGING_BINDIR_NATIVE}/pseudo ${STAGING_BINDIR_NATIVE}/fakeroot
fi
PSEUDO_PREFIX=${STAGING_DIR_NATIVE}/usr PSEUDO_DISABLED=0 ${STAGING_DIR_NATIVE}${bindir}/rauc convert \
PSEUDO_PREFIX=${STAGING_DIR_NATIVE}/${prefix_native} PSEUDO_DISABLED=0 ${STAGING_BINDIR_NATIVE}/rauc convert \
--debug \
--trust-environment \
--cert=${RAUC_CERT_FILE} \
Expand Down

0 comments on commit 95bef89

Please sign in to comment.