Snapcraft doesn't check if cross-compiling before trying to install necessary tools

Bug #1570414 reported by Kyle Fazzari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Critical
Sergio Schvezov

Bug Description

Snapcraft supports cross-compiling (assuming the given plugin also supports it), and attempts to install the correct cross-compiler when doing so. However, it doesn't check to see that it's actually cross-compiling before building those packages, so for instance running on armhf results in:

    Could not find a required package in 'build-packages': "The cache has no package named 'gcc-arm-linux-gnueabihf'"

Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Sergio Schvezov (sergiusens)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
milestone: none → 2.8.1
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
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.