verify-patch-sanity: skip source-staged, the out-of-tree copy of source/

Out-of-tree staging made the checker scan source-staged/, which holds the same
upstream third-party patches as source/ -- already skipped because they are not
ours to fix. qtdeclarative's bundled yoga patch then failed the build at
preflight. Same rationale as the existing /source/ entry.
This commit is contained in:
2026-08-04 18:26:44 +03:00
parent a591bee846
commit 36554161cb
+9 -2
View File
@@ -76,8 +76,15 @@ def check_patch(path):
return problems
# archived/obsolete patch trees that are not part of any active recipe
SKIP_DIRS = ('/source/', '/.git/', '/legacy-', '/legacy/', '/obsolete',
'/superseded', '/absorbed/', '/recovered-', '/wip/')
# '/source-staged/' is the out-of-tree build copy of '/source/'. It holds the
# same upstream third-party patches (e.g. qtdeclarative's bundled yoga), which
# are deliberately skipped here because they are not ours to fix -- but the
# copy's name does not match the '/source/' entry, so staging made the checker
# start reporting them:
# MALFORMED .../qtdeclarative/.../source-staged/src/3rdparty/yoga/patches/
# 002-Namespace-Yoga-For-ODR-Violation.patch: hunk old count 34 != actual 31
SKIP_DIRS = ('/source/', '/source-staged/', '/.git/', '/legacy-', '/legacy/',
'/obsolete', '/superseded', '/absorbed/', '/recovered-', '/wip/')
def find_patches(roots):
seen = set()