build: tweak aux set handling a little

This commit is contained in:
Franco Fichtner 2024-02-14 08:35:59 +01:00
parent a2fc40997f
commit 0dd6820d8b
3 changed files with 8 additions and 4 deletions

View File

@ -1040,6 +1040,10 @@ bundle_packages()
if [ -d ${BASEDIR}${PACKAGESDIR}-aux ]; then
sh ./clean.sh aux
# generate index files (XXX ideally from a chroot)
pkg repo ${BASEDIR}${PACKAGESDIR}-aux/ ${SIGNARGS}
echo -n ">>> Creating aux package set for ${PACKAGEVER}... "
tar -C ${BASEDIR}${PACKAGESDIR}-aux -cf ${AUXSET} .
echo "done"

View File

@ -51,9 +51,9 @@ for AUX in ${AUXLIST}; do
echo ">>> Moving auxiliary package ${AUX}" \
>> ${STAGEDIR}/.pkg-msg
# XXX switch to packages directory layout
mkdir -p ${STAGEDIR}${PACKAGESDIR}-aux
mv ${STAGEDIR}/${PKG} ${STAGEDIR}${PACKAGESDIR}-aux
mkdir -p ${STAGEDIR}${PACKAGESDIR}-aux/All
mv ${STAGEDIR}/${PKG} ${STAGEDIR}${PACKAGESDIR}-aux/All
break;
fi
done

View File

@ -72,7 +72,7 @@ setup_distfiles ${STAGEDIR}
if extract_packages ${STAGEDIR}; then
AUXSET=$(find_set aux)
if [ -f "${AUXSET}" ]; then
tar -C ${STAGEDIR}${PACKAGESDIR}/All -xpf ${AUXSET}
tar -C ${STAGEDIR}${PACKAGESDIR} -xpf ${AUXSET} ./All
fi
if [ ${DEPEND} = "yes" ]; then