← Back to issue list

Add new envvars for build-on and build-for architectures

View original Github issue

Metadata

Project
craft-parts
Number
#514
Type
issue
State
closed
Author
mr-cal
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

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
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 issues

Issue Project State Summary Similarity
#532 environment: add build-on and build-for architectures craft-parts merged Merged following approval and CI checks. Introduces CRAFT_ARCH_BUILD_ON and CRAFT_ARCH_BUILD_FOR environment variables to standardize architecture naming, deprecating CRAFT_TARGET_ARCH and CRAFT_ARCH_TRIPLET. Resolves #514.
82%