build.lua: commands concatenated with space instead of sequential execution #337

Closed
opened 2026-07-12 10:31:03 +00:00 by the.auditor · 0 comments
Owner

lib/qpkg/build.lua:175table.concat(commands, " ") joins stage commands with spaces. The old code ran each command individually via os.execute. If a pkgdef had multiple commands in a single stage (e.g., pkgdef_build = { "make", "make install" }), they'd become "make make install" instead of sequential execution.

Currently no pkgdef has multiple commands in a stage, so nothing is broken — but the API contract changed silently and will bite someone later.

Ref: PR #336 review

`lib/qpkg/build.lua:175` – `table.concat(commands, " ")` joins stage commands with spaces. The old code ran each command individually via `os.execute`. If a pkgdef had multiple commands in a single stage (e.g., `pkgdef_build = { "make", "make install" }`), they'd become `"make make install"` instead of sequential execution. Currently no pkgdef has multiple commands in a stage, so nothing is broken — but the API contract changed silently and will bite someone later. Ref: PR #336 review
fuzzy closed this issue 2026-07-13 06:03:14 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/qpkg#337
No description provided.