userland.sh: a fork of ext/ is cleaned only when its recipe or archive changed (MCDE was built again every run)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
972f198076
commit
62b84cf4f4
1 file changed
+10
-3
+10
-3
@@ -129,10 +129,17 @@ fi
|
||||
ext_prepare
|
||||
failed=
|
||||
for p in $("$TOP/tools/pkglist.sh" built); do
|
||||
# a fork of ext/ starts from a clean work directory: a changed recipe
|
||||
# does not re-run configure otherwise
|
||||
# a fork of ext/ starts from a clean work directory when its recipe or its
|
||||
# archive (distinfo) changed -- otherwise pkgsrc keeps the old configure --
|
||||
# and from nothing else: an unchanged fork is not built again
|
||||
case " $(echo $FORKS) " in
|
||||
*" $p "*) (cd "$PKGSRC/$p" && "$BMAKE" clean) > /dev/null 2>&1 || true ;;
|
||||
*" $p "*)
|
||||
key=$(cd "$PKGSRC/$p" && find . -type f | sort | xargs cat | sha256sum | cut -d" " -f1)
|
||||
kf=$TOP/build/pkgsrc-work/$p/.makronix-recipe-key
|
||||
if [ "$(cat "$kf" 2>/dev/null)" != "$key" ]; then
|
||||
(cd "$PKGSRC/$p" && "$BMAKE" clean) > /dev/null 2>&1 || true
|
||||
mkdir -p "${kf%/*}" && printf "%s\n" "$key" > "$kf"
|
||||
fi ;;
|
||||
esac
|
||||
echo "=== $MODE: $p"
|
||||
# set: installed into the sysroot; repo: the binary package (pkgsrc
|
||||
|
||||
Reference in new issue
Block a user