Files
RedBear-OS/local/recipes/dev/libclc/source/llvm/tools/llvm-debuginfod/Opts.td
T
vasilito cb424d7448 build: static patch-sanity linter (shift-left the malformed-patch class)
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).
2026-08-01 05:13:02 +03:00

21 lines
1.1 KiB
TableGen

include "llvm/Option/OptParser.td"
class F<string name, string help> : Flag<["-"], name>, HelpText<help>;
class FF<string name, string help>: Flag<["--"], name>, HelpText<help>;
class S<string name, string meta, string help>: Separate<["-"], name>, HelpText<help>, MetaVarName<meta>;
def help : FF<"help", "Display available options">;
def : F<"h", "Alias for --help">, Alias<help>;
def max_concurrency :
S<"c", "<ulong>", "Maximum number of files to scan concurrently. "
"If 0, use the hardware concurrency.">;
def host_interface : S<"i", "<string>", "Host interface to bind to.">;
def min_interval :
S<"m", "<number>", "Minimum number of seconds to wait before an on-demand update can be"
"triggered by a request for a buildid which is not in the collection.">;
def port : S<"p", "<uint>", "Port to listen on. Set to 0 to bind to any available port.">;
def scan_interval :
S<"t", "<int>", "Number of seconds to wait between subsequent "
"automated scans of the filesystem.">;
def verbose_logging : F<"v", "Enable verbose logging.">;