snapd should provide SNAP_ARCH_TRIPLET

Bug #1742565 reported by Alan Pope 🍺🐧🐱 🦄
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
Wishlist
Unassigned

Bug Description

I frequently need to setup an environment variable (or multiple) to paths which include the typical arch triplets like x86_64-linux-gnu. snapd only exposes SNAP_ARCH which needs to be interpreted by shell scripts into a triplet. This seems mad that every snap which has a need to modify an environment variable in the snapcraft.yaml has to either build a launch script, or include a cloud launch script rather than have access to the triplet directly.

Please can we add SNAP_ARCH_TRIPLET rather than have to rely on shell scripts to set these up, in every snap.

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

I second this request, it's a constant paper cut.

Changed in snapd:
status: New → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :
Changed in snapd:
importance: Undecided → Wishlist
status: Confirmed → In Progress
Revision history for this message
Paweł Stołowski (stolowski) wrote :

The abovementioned PR was rejected and closed, I don't think there was any other solution on the table. Re-opening.

Changed in snapd:
status: In Progress → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.