Skip to content

compat.quickjs-ng: each source one pattern over both layouts, so no build warns of a missing path - #931

Merged
Sunrisepeak merged 1 commit into
mainfrom
compat-quickjs-ng-sources-either-layout
Nov 27, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
compat-quickjs-ng-sources-either-layout

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Fixes #930.

Since #903 compat.quickjs-ng named each of its four engine sources twice, once per layout (dtoa.c for an install install() flattened, quickjs-0.17.0/dtoa.c for a 0.17.0 installed before it). In any one install one of each pair names no file, and mcpp 2026.11.27.1 reports an exact source path that names no file — four warnings on every build that reaches the package.

Each source is now one brace pattern, {quickjs-0.17.0/,}dtoa.c: mcpp expands it to the two places (the empty alternative is the install root; expand_braces in src/modgraph/scanner.cppm) and does not report a pattern (unnamed_sources skips entries with *?[{). Only those two places are searched, as before. The LAYOUT note says why.

Checked locally (mcpp 2026.11.27.1): tests/examples/quickjs-ng on an install kept from before #903 compiles …/0.17.0/quickjs-0.17.0/dtoa.c with no warning and its case passes; the descriptor lints; mcpp xpkg parse. The flattened layout is CI's fresh install.

…uild warns of a missing path

Since #903 the four engine sources were named twice, once per layout ("dtoa.c" for an install
that install() flattened, "quickjs-0.17.0/dtoa.c" for a 0.17.0 installed before it, its release
directory kept). In any one install one path of each pair names no file, and mcpp 2026.11.27.1
reports an exact source path that names no file: four warnings on every build that reaches the
package (#930), on fresh runners for the kept paths and on older installs for the flat ones.

Each source is now one brace pattern, "{quickjs-0.17.0/,}dtoa.c": mcpp expands it to the two
places (an empty alternative is the install root) and reports no pattern that matches nothing in
one of them. Only those two places are searched, as before. The LAYOUT note says why.

Checked: tests/examples/quickjs-ng on an install kept from before #903 (it compiles
.../0.17.0/quickjs-0.17.0/dtoa.c), no warning, its case passes; the descriptor lints and
`mcpp xpkg parse`. The flattened install is CI's fresh one.

Closes #930

Signed-off-by: Sunrisepeak <[email protected]>
@Sunrisepeak
Sunrisepeak merged commit 90774f3 into main Nov 27, 2026
19 checks passed
@Sunrisepeak
Sunrisepeak deleted the compat-quickjs-ng-sources-either-layout branch November 27, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compat.quickjs-ng: sources list both layouts' exact paths, so every build warns that four of them name no file (mcpp 2026.11.27.1)

1 participant