snap only available for amd64

Bug #2049249 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ppa-dev-tools
Fix Released
High
Unassigned

Bug Description

Currently the ppa-dev-tools snap is only available on amd64. This is not helpful when I am working on my arm64 Laptop.

I found no issues building the snap for arm64 and riscv64.

Could you, please, update the Launchpad build process to produce the snap for all architectures.

Best regards

Heinrich

Revision history for this message
Heinrich Schuchardt (xypron) wrote (last edit ):

As the snap contains the cpython library /usr/lib/python3/dist-packages/apt_pkg.cpython-310-aarch64-linux-gnu.so we cannot make it architecture independent.

Bryce Harrington (bryce)
Changed in ppa-dev-tools:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Bryce Harrington (bryce)
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi Heinrich,

For testing which architectures successfully build, I've produced a 0.5.1 update with the snaps' architectures configuration set to all of snapcraft's supported architectures, and uploaded it to the edge channel. Unfortunately I'm not sure how to discover in snapcraft if there are build issues or not, so can't tell whether or not its available on non-amd64 architectures.

If it's possible, can you try installing 0.5.1 onto your arm64 system and see if it works? If it does I'll assume the other architectures are ok too, else will investigate further.

Thanks for reporting this!

Changed in ppa-dev-tools:
assignee: Bryce Harrington (bryce) → nobody
status: Triaged → In Progress
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Hello Bryce,

$ sudo snap install --channel edge ppa-dev-tools
error: snap "ppa-dev-tools" is not available on edge for this architecture (arm64) but exists on
       other architectures (amd64).

Snapcraft.io shows the same. 0.5.1 is only available on amd64 in the edge channel.

Best regards

Heinrich

Revision history for this message
Bryce Harrington (bryce) wrote :

Bummer, so apparently more has to be done than just upload the config. Maybe the snaps for each architecture have to be built manually? From the docs it sounds like it might work automatically for GitHub based projects, but no mention of Launchpad git which I would think should be natively supported?

Revision history for this message
Bryce Harrington (bryce) wrote :

Launchpad does indeed natively support it. I've set up automatic snap builds, and enabled arm64 to build as a test:

    https://launchpad.net/~bryce/ppa-dev-tools/+snap/ppa-dev-tools

If that works I'll go ahead and enable additional architectures beyond that.

Revision history for this message
Bryce Harrington (bryce) wrote :

Alright, there is an arm64 build of current main uploaded to edge, as well as some other architectures.

As a bonus, this now causes rebuilds of all of the snaps on the edge channel every time main is updated on Launchpad. I will need to figure out how to also do multi-architecture snap builds for the stable branch as well, but that will be a task for another day.

Heinrich, if you mind trying again to install on arm64 and/or riscv64, let me know if it works and we can mark this bug as Fix Released.

Changed in ppa-dev-tools:
status: In Progress → Fix Committed
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Hello Bryce,

the arm64 and riscv64 versions of the snap install fine form the edge channel and are functional.

Thanks a lot for extending the support to these architectures.

Best regards

Heinrich

Bryce Harrington (bryce)
Changed in ppa-dev-tools:
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.