cb424d7448
verify-patch-sanity.py validates every active recipe .patch has internally- consistent hunk line counts — catching the 'malformed patch at line N' failure at commit/CI/preflight time instead of hours into a cook. This cycle hit that class three times (qtwaylandscanner, sddm, xwayland), each only discovered when cookbook tried to apply the patch. Running it across the repo found 29 latent malformed patches (validated against GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22'). They were harmless only because they sit in vendored recipes (baked, not re- applied) — but would fail on any version-bump re-derivation. --fix recounts the hunk headers (body untouched) and repaired all 29. Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test (test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats (empty placeholders, bare-@@ git hunks).
23 lines
944 B
C
23 lines
944 B
C
// Check that setting an OBJECT_MODE converts the AIX triple to the right variant.
|
|
// RUN: env OBJECT_MODE=64 \
|
|
// RUN: %clang --target=powerpc-ibm-aix -print-target-triple | FileCheck -check-prefix=CHECK64 %s
|
|
|
|
// RUN: env OBJECT_MODE=32 \
|
|
// RUN: %clang --target=powerpc64-ibm-aix -print-target-triple | FileCheck -check-prefix=CHECK32 %s
|
|
|
|
// Command-line options win.
|
|
// RUN: env OBJECT_MODE=64 \
|
|
// RUN: %clang --target=powerpc64-ibm-aix -print-target-triple -m32 | FileCheck -check-prefix=CHECK32 %s
|
|
|
|
// RUN: env OBJECT_MODE=32 \
|
|
// RUN: %clang --target=powerpc-ibm-aix -print-target-triple -m64 | FileCheck -check-prefix=CHECK64 %s
|
|
|
|
// CHECK32: powerpc-ibm-aix
|
|
// CHECK64: powerpc64-ibm-aix
|
|
|
|
// Emit a diagnostic if there is an invalid mode.
|
|
// RUN: env OBJECT_MODE=31 \
|
|
// RUN: not %clang --target=powerpc-ibm-aix 2>&1 | FileCheck -check-prefix=DIAG %s
|
|
|
|
// DIAG: error: OBJECT_MODE setting 31 is not recognized and is not a valid setting
|