stage-packages do not honor --target-arch

Bug #1737561 reported by Loïc Minier
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
Undecided
Unassigned

Bug Description

Hi,

When cross-building, stage-packages are pulled for the host architecture instead of the target architecture.

Best,
- Loïc

Revision history for this message
Cris Dywan (kalikiana) wrote :

Can you share some details on what you're building? A YAML snippet would be great.

From your wording this sounds like the expected behavior. There's a new "to" statement is underway which installs packages for a specific target architecture (https://github.com/snapcore/snapcraft/pull/1639) as well as a :target suffix to generically install the package for the target architecture (https://github.com/snapcore/snapcraft/pull/1536). My guess would be that one of those would address your use case.

Revision history for this message
Loïc Minier (lool) wrote :

Indeed, the :target architecture PR is relevant; I've commented there to suggest a different default for stage-packages and addition of :host and :build architecture tags; thanks!

Cris Dywan (kalikiana)
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.