wrong arch of stage packages

Bug #2012503 reported by Ondrej Kubik
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
High
Unassigned

Bug Description

Snapcraft picks the wrong architecture when not running a native build:

e.g. the following definition generates snap with host machine architecture
architectures:
  - build-on: [amd64, arm64]
    build-for: arm64

Issue regardless if --build-for=arm64 is used or not
Test snap:
https://paste.ubuntu.com/p/9SmrjcqcT3/
snapcraft: 7.3.post7+gitc7e72c72

Ondrej Kubik (ondrak)
Changed in snapcraft:
importance: Undecided → High
Revision history for this message
Callahan Kovacs (mr-cal) wrote :

Two questions:

1. For your reproducer, are you running on amd64?

2.Can you clarify the meaning of "Snapcraft picks the wrong architecture"?
Do you mean that the staged package `libcryptsetup12` is from the `amd64` repo?

Revision history for this message
Ondrej Kubik (ondrak) wrote :

yes to both questions:
- running on amd64
- yes, the staged package is amd64 architecture

if you run pasted simple test snap, and inspect prime dir, you will see there x86 libraries.

cheers
Ondra

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

Confirmed. I can reproduce this behavior. Snapcraft does not consider the target architecture when fetching stage-packages.

Changed in snapcraft:
status: New → Confirmed
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.