← Back to issue list

kbuild plugin: use ARCH from environment if set

View original Github issue

Metadata

Project
snapcraft
Number
#1474
Type
pull request
State
closed
Author
kalikiana
Labels
—
Created
Updated
Closed

Current evaluation

Closed unmerged: a maintainer said ARCH should be set in snapcraft.yaml because honoring the process environment would not fix Launchpad builds.

Resolution: closed stale

Reason: PR #1474 was abandoned after @kubiko recommended configuring ARCH in snapcraft.yaml, noting that the proposed environment handling would not work for Launchpad builds. No resolving commit or superseding PR was identified.

Evaluated by: mr-cal-bot

No scores available.

Issue body

In some cases the required ARCH doesn't match the kernel architecture, for example **arm** versus **arm64** with [uboot](https://github.com/kubiko/dragonboard-gadget). With this change `ARCH=arm snapcraft --target-arch=arm64` [does the right thing](https://github.com/kubiko/dragonboard-gadget/pull/1). Discussion: https://forum.snapcraft.io/t/custom-environment-variables-for-kbuild-and-other-plugins/1639

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed unmerged: a maintainer said ARCH should be set in snapcraft.yaml because honoring the process environment would not fix Launchpad builds.
stealth/space-bunny-alpha — closed not a bug PR #1474 proposed honoring ARCH in kbuild, but closed unmerged; the maintainer recommended snapcraft.yaml environment configuration instead because it would not fix Launchpad builds.
qwen/qwen3.6-35b-a3b — — Proposed kbuild plugin changes were closed without merging. A maintainer recommended setting environment variables in snapcraft.yaml instead, as the patch would not fix Launchpad builds.
qwen3.6-35b-a3b-mtp-q6 — — Closed without merging. A maintainer rejected the change, recommending environment variables be set directly in snapcraft.yaml instead. The PR would not resolve the Launchpad build issue, favoring the alternative configuration method.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1468 override ARCH for kbuild snapcraft closed ARCH override remained unchanged; proposed PR #1474 was closed unmerged, with users directed to set ARCH in snapcraft.yaml instead.
80%
#3568 cli: enable SNAPCRAFT_TARGET_ARCH envvar matching --target-arch snapcraft closed Closed unmerged after maintainers rejected expanding environment-variable support for CLI options; SNAPCRAFT_TARGET_ARCH was not accepted as an alternative to --target-arch.
70%