base core20: wrong arch triplet

Bug #1997752 reported by Ondrej Kubik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Committed
Undecided
Callahan Kovacs

Bug Description

Snapcraft sets the wrong arch triplet when only a single target is supported, but building on a different target

snapcraft: 7.2.8
e.g.
architectures:
  - build-on: [amd64, arm64, armhf]
    run-on: armhf

test snap
https://paste.ubuntu.com/p/MNJnf3qvmX/

Actual SNAPCRAFT_ARCH_TRIPLET in the created snap is whatever host arch triplet is

Tags: craft-1498
Revision history for this message
Callahan Kovacs (mr-cal) wrote :

Thanks Ondrej.

I was able to reproduce the same issue with your example.

The resulting `meta/snap.yaml` had the line:
```
environment:
  LD_LIBRARY_PATH: ${SNAP}/usr/lib/x86_64-linux-gnu
```

Changed in snapcraft:
status: New → Confirmed
tags: added: craft-1498
Callahan Kovacs (mr-cal)
Changed in snapcraft:
assignee: nobody → Callahan Kovacs (mr-cal)
status: Confirmed → In Progress
Revision history for this message
Callahan Kovacs (mr-cal) wrote :
Changed in snapcraft:
status: In Progress → Fix Committed
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.