← Back to issue list

Implement token substitution in debconf files

View original Github issue

Metadata

Project
debcraft
Number
#159
Type
issue
State
closed
Author
cmatsuoka
Labels
Status: Triaged
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed and superseded by Jira ticket DEBCRAFT-71. Token substitution for debconf files was not implemented. The request was abandoned in this repository.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 15
Complexity: 45
Confidence: 90
Support Request: 0
keep open Feature request to implement token substitution in debhelper's package.config processing for Debcraft. Currently triaged and linked to internal Jira ticket DEBCRAFT-71, awaiting implementation.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#162 feat(installdebconf): token substitution debcraft merged Merged an update implementing token substitution for template config files in dh_installdebconf. Approved, passed CI, and closed issue 159. The change adds 216 lines across 5 files to enable environment variable lookup.
72%