Implement token substitution in debconf files
Metadata
Current evaluation
Token substitution for dh_installdebconf files was merged in canonical/debcraft#162 (commit d3b754c), covering architecture, environment, and package tokens.
Resolution: closed resolved
Reason: PR canonical/debcraft#162 was merged as commit d3b754c, implementing strict token substitution for architecture, environment, and package values in debconf files.
Evaluated by: mr-cal-bot
No scores available.
Issue body
When the `dh_installdebconf` debhelper processes the package.config script, it runs a token expansion search. All valid tokens must follow the strict regex format `#[A-Za-z0-9_.+]+#`. The installdebconf helper in Debcraft must also replace these tokens.
The built-in tokens available for substitution inside package.config are:
* `#DEB_HOST_NAME#`: The architecture name the package is being built for (e.g. amd64, arm64).
* `#DEB_BUILD_NAME#`: The architecture name of the machine doing the building.
* `#DEB_TARGET_NAME#`: The target architecture name (primarily used when building compiler toolchains).
* `#ENV.NAME#`: The environment variable NAME exported at build time.
* `#PACKAGE#`: Replaced by the concrete name of the binary package currently being processed.
We can set `#DEB_TARGET_NAME#` to the build-for architecture for now. Support for custom tokens (defined with `-DTOKEN=value`) can be added later. `#DEBHELPER#` will be handled later by the installdeb helper.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Token substitution for dh_installdebconf files was merged in canonical/debcraft#162 (commit d3b754c), covering architecture, environment, and package tokens. | |
| stealth/space-bunny-alpha | — | closed resolved | Implemented debconf token substitution for installdebconf via merged PR canonical/debcraft#162 (commit d3b754c). | |
| stealth/space-bunny-alpha | — | closed resolved | Token substitution in dh_installdebconf package.config files was implemented and merged in PR canonical/debcraft#162, closing #159. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed and synced to Jira as DEBCRAFT-71 without implementation. Token substitution support for debconf files remains unaddressed. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed and superseded by Jira ticket DEBCRAFT-71. Token substitution for debconf files was not implemented. The request was abandoned in this repository. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed and abandoned. Synced to Jira ticket DEBCRAFT-71 for tracking. No code was merged or implemented, leaving debconf token substitution unaddressed. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/debcraft#162
(confidence 100%)
Merged PR titled "feat(installdebconf): token substitution" directly implements and closes #159.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #162 feat(installdebconf): token substitution | debcraft | merged | Merged in #162 via commit d3b754c, adding token substitution for dh_installdebconf template config files and closing #159. |