Need variable for arch triplet in yaml
Metadata
Current evaluation
Added the architecture triplet to Snapcraft's build environment for use in YAML parts; implemented by snapcraft#1768 in commit 5df5ab8d5.
Resolution: closed resolved
Reason: snapcraft#1768 exported the architecture triplet into the build environment, directly enabling architecture-specific library paths without shell globbing.
Evaluated by: mr-cal-bot
No scores available.
Issue body
For the thumbnailer, we need to copy additional libraries into our prime. The problem is that there doesn't appear to be a generic way to refer to the lib directory from inside the yaml. In turn, this leads to ugly hackery such as this:
plugin=$(echo /usr/lib/*/gstreamer-1.0/libgstlibav.so)
mkdir -p $SNAPCRAFT_PART_INSTALL/$(dirname $plugin)
cp $plugin $SNAPCRAFT_PART_INSTALL/$plugin
It would be a lot clearer and more direct to to have an ARCH_TRIPLET variable, so I could say what I mean.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Added the architecture triplet to Snapcraft's build environment for use in YAML parts; implemented by snapcraft#1768 in commit 5df5ab8d5. | |
| stealth/space-bunny-alpha | — | closed resolved | Architecture triplet support was implemented in PR #1768 (commit 5df5ab8d5), exposing SNAPCRAFT_ARCH_TRIPLET for YAML builds. | |
| stealth/space-bunny-alpha | — | closed resolved | Exported SNAPCRAFT_ARCH_TRIPLET to build scripts through merged PR #1768, resolving the missing architecture-triplet variable. | |
| qwen/qwen3.6-35b-a3b | — | — | A request for an ARCH_TRIPLET variable in YAML configuration was closed without discussion or implementation. The feature was not added and the request was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The request for an ARCH_TRIPLET YAML variable to simplify architecture-specific library paths was closed without implementation or discussion after 710 days. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned and closed without implementation due to inactivity. The requested ARCH_TRIPLET variable was never added to the YAML schema, leaving users to rely on manual workarounds for arch triplet paths. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without implementation or discussion. The requested ARCH_TRIPLET variable for snapcraft YAML was not added, leaving the feature abandoned. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#1768
(confidence 99%)
Commit 5df5ab8d5 exported the architecture triplet into the environment.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1752 export the arch triplet variable during build time | snapcraft | closed | Maintainer-requested feature shipped in PR #1768 (commit 5df5ab8d5): SNAPCRAFT_ARCH_TRIPLET is now exported into build-script environments; issue closed as implemented. | |
| #1813634 not reliable way to detect target architecture | snapcraft (launchpad) | open | Snapcraft 8.0.0 added explicit build-for architecture variables, superseding the ambiguous 3.0.1-era target_arch and SNAPCRAFT_ARCH_TRIPLET behavior. | |
| #1768 project: export the arch triplet into the environment | snapcraft | merged | Merged PR #1768 (5df5ab8d5) exports SNAPCRAFT_ARCH_TRIPLET to build-script environments, fixing #1752. |