Package reports
pkgconf raw variable expansion
Inspect .pc tuple expansion and the values seen by each field as it is read.
Your inputs
Start with an exampleYour result
Example resultHow it works
Model pkgconf 3.0.9: variables expand lazily, colon fields expand at their read position, $$ stays literal and direct self-reassignments splice the earlier definition. Export provenance and undefined-variable diagnostics.
Overriding prefix with /stage makes Libs contain -L/stage/lib and Cflags contain -I/stage/include.
Limits
Raw tuple/field values only. No keyword postprocessing, dependency solving, flag deduplication, automatic prefix relocation or filesystem reads. pcfiledir is an explicitly supplied tuple value; spaces need native tuple encoding. pc_sysrootdir requires native client context and is rejected. Up to 500 variables, 5000 logical lines and bounded expansion work.