mirror of
https://github.com/Klipper4FlashForge/firmware.git
synced 2026-10-23 13:52:16 -05:00
PKG_EXCLUDE has exactly one value across all 41 recipes -- ".version", the stamp pkg_end writes at the ROOT of a recipe's output tree. It was applied with `find -name`, which matches a basename at ANY depth, and Mainsail's release zip ships a .version of its own at www/mainsail/.version. So anvil-mainsail has been shipping without upstream's version file. Nothing noticed because nothing looked: bin/patch.sh built the payload by copying work/pkg/mainsail, where the file was still there, so the tarball had it and only the .ipk did not. It surfaced as one line in the before/after diff of the payload while moving patch.sh onto the feed, which is the first arrangement in which a package's contents and the payload's contents are the same question. -maxdepth 1 is the fix: the stamp is always at the root, and nothing else this option is used for is not. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>