Add new envvars for build-on and build-for architectures
Metadata
Current evaluation
Added build-on/build-for architecture and triplet environment variables in merged PR #532 (9f8e969e), retaining legacy names with deprecation warnings.
Resolution: closed resolved
Reason: PR craft-parts#532 was merged as commit 9f8e969e, introducing the new architecture variables and deprecation logging for legacy CRAFT_TARGET_ARCH and CRAFT_ARCH_TRIPLET names.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### What needs to get done
| New environment variable | Deprecated name|
| ------------- | ------------- |
| `CRAFT_ARCH_BUILD_ON` | n/a |
| `CRAFT_ARCH_BUILD_FOR` | `CRAFT_TARGET_ARCH` |
| `CRAFT_ARCH_TRIPLET_BUILD_ON` | n/a |
| `CRAFT_ARCH_TRIPLET_BUILD_FOR` | `CRAFT_ARCH_TRIPLET` |
The deprecated environment variables will continue to work, but craft-parts should log a warning when a deprecated name is used.
### Why it needs to get done
- To give users access to architectures data when defining override scripts and environments.
- To align with the `build-on`/`build-for` naming convention
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Added build-on/build-for architecture and triplet environment variables in merged PR #532 (9f8e969e), retaining legacy names with deprecation warnings. | |
| stealth/space-bunny-alpha | — | closed resolved | Added build-on/build-for architecture and triplet environment variables in merged PR #532 (commit 9f8e969e), retaining deprecated names with warnings. | |
| stealth/space-bunny-alpha | — | closed resolved | Implemented in PR #532 (commit 9f8e969e, "environment: add build-on and build-for architectures"): CRAFT_ARCH_BUILD_ON/FOR and CRAFT_ARCH_TRIPLET_BUILD_ON/FOR added, with CRAFT_TARGET_ARCH and CRAFT_ARCH_TRIPLET kept as deprecated. | |
| stealth/space-bunny-alpha | — | closed resolved | Implemented by merged PR #532 (9f8e969e): added build-on/build-for architecture and triplet envvars, with legacy names deprecated and warnings. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The proposal to add new CRAFT_ARCH_BUILD_ON and CRAFT_ARCH_BUILD_FOR environment variables and deprecate legacy names was not merged, likely abandoned. No resolution or merge details were provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. New architecture environment variables were implemented with deprecation warnings for legacy names to align with build-on/build-for conventions. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved by implementing new architecture environment variables with deprecation warnings for legacy names. Warnings were added to the snapcraftctl wrapper script in snapcraft 7. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Implemented new architecture environment variables with deprecation warnings for legacy names. Resolution added wrapper script warnings in snapcraft 7, closing the request. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
craft-parts#532
(confidence 100%)
Merged PR implementing the requested build-on/build-for environment variables and explicitly closing issue #514.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #532 environment: add build-on and build-for architectures | craft-parts | merged | Merged PR #532 in commit 9f8e969e, adding build-on/build-for architecture and triplet variables, deprecating CRAFT_TARGET_ARCH and CRAFT_ARCH_TRIPLET, and fixing #514. | |
| #4313 environment: add build-on and build-for envvars for core20 | snapcraft | merged | Merged PR #4313 as 93a9d8170, adding core20 SNAPCRAFT build-on/build-for architecture and triplet environment variables plus tests. |