Closed Bug 1646462 Opened 5 years ago Closed 4 months ago

Add Firefox ARM64/AArch64 option to Flathub (Flatpak)

Categories

(Release Engineering :: Release Automation, enhancement, P3)

ARM64
Linux
enhancement

Tracking

(firefox137 verified, firefox138 verified)

VERIFIED FIXED
Tracking Status
firefox137 --- verified
firefox138 --- verified

People

(Reporter: oscardomingo, Assigned: jcristau)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [qa-triaged])

Attachments

(5 files)

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0

Steps to reproduce:

On a ARM64/AArch64 based distro with flatpak and flathub installed:
flatpak install flathub org.mozilla.firefox

Actual results:

error: Nothing matches org.mozilla.firefox in remote flathub

Expected results:

Firefox for ARM64/AArch64 should be installed as a flatpak.

Hi, I'm using a yoga c630-13q50 arm64 with windows 10 to try replicate your issue.

Are you using fedora?

I will move this over to a component so developers can take a look over it. If is not the correct component please feel free to change it to an appropriate one.

Thanks for the report.

Best regards, Clara.

Component: Untriaged → Widget: Gtk
Flags: needinfo?(oscardomingo)
Product: Firefox → Core

Hey Clara,

thanks for looking into this.

The distro when trying this is Mobian (https://gitlab.com/mobian1) (a derivative from Debian specific for the Pinephone); I opened the ticket because I believe the flatpak from flathub is managed by Mozilla: https://flathub.org/apps/details/org.mozilla.firefox

There are builds of the ESR version for Arm from the distro's package manager (https://packages.debian.org/buster/arm64/firefox-esr/download) but not the latest one, so I though it would be cool to be able to install the latest from flathub.

Hope that helps,

Cheers,
Oscar.

Flags: needinfo?(oscardomingo)
Blocks: flatpak
Component: Widget: Gtk → Release Automation: Other
OS: Unspecified → Linux
Product: Core → Release Engineering
QA Contact: sfraser
Hardware: Unspecified → ARM64
Version: 77 Branch → unspecified
Priority: -- → P5

Mozilla doesn't publish linux arm binaries at all which is prerequisite to publish them in flatpak: https://archive.mozilla.org/pub/firefox/releases/83.0/

Depends on: linux-arm64-ci

Hi,

I've found a project called LibreWolf. It's based on Firefox, which I think it's relevant. They provide Flatpak packages for Aarch64: https://gitlab.com/librewolf-community/browser/linux/-/releases.

Here's their Flatpak repository: https://gitlab.com/librewolf-community/browser/flatpak.

I think if someone is willing to use their patches to make it successfully build with Aarch64, then that would be great.

+1
I'm using an ARM64-based chrome-os device and would be happy to use the non-app-version of Firefox (with all it's benefits of integrated password manager, etc.)

It is really unfortunate that there is no Firefox/ARM Flatpak. Mozilla even advertises Flatpak as a way to run Firefox on Chromebooks (see https://support.mozilla.org/en-US/kb/run-firefox-chromeos). Granted, it lists x86 on the requirements. However many Chromebooks are ARM-based.

(In reply to Emerson Bernier from comment #3)

Mozilla doesn't publish linux arm binaries at all which is prerequisite to publish them in flatpak: https://archive.mozilla.org/pub/firefox/releases/83.0/

is there bug for that? I didn't found any.

Bug 1677963 is a prerequisite for that, and is listed in this bug's dependencies.

Sorry, I have no idea how can I overlooked that. Thank you

Hi,
any update on this? I was able to install firefox via snap and librewolf via flatpak on arm64 ubuntu system. Unfortunately there are not builds for firefox dev or nightly or torbrowser.
Thank you

Severity: -- → N/A

Hi, any update on this topic?
It well be great to use newest Firefox on my Debian 12 arm64 system.

Thanks and Regards
Lukas

QA Contact: sfraser
See Also: → 1934634
Blocks: 1934634
Priority: P5 → P3
See Also: 1934634
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → jcristau
Status: NEW → ASSIGNED
Keywords: leave-open
Pushed by jcristau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/54c2aa2062df add logging when running commands in flatpak repackage. r=releng-reviewers,bhearsum https://hg.mozilla.org/integration/autoland/rev/60b05dd560e2 pass the architecture to flatpak build-export and ostree commit r=releng-reviewers,bhearsum https://hg.mozilla.org/integration/autoland/rev/4153a93cb5ea add aarch64 flatpak repackage r=releng-reviewers,bhearsum
Pushed by jcristau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ec7691427105 ship arm64 flatpak repackage. r=releng-reviewers,bhearsum DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Keywords: leave-open
Resolution: --- → FIXED
Attachment #9471311 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: no arm64 flatpak until 138
  • Code covered by automated testing: no
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: tested in https://mozilla-hub.atlassian.net/browse/QA-3458
  • Risk associated with taking this patch: medium
  • Explanation of risk level: This could potentially break the push to flathub, but 1) this task is a leaf so won't affect anything else, 2) we can't replicate this in staging so don't have a way to test it, 3) I'm thinking it's better to find out now than with 138.0b1
  • String changes made/needed: none
  • Is Android affected?: no
Flags: qe-verify+
Attachment #9471311 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Whiteboard: [qa-triaged]

A try build based on Beta v137.0b4 can be installed using commands:

wget https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ctMBoBE7QQyxN2m1R9dTpQ/runs/0/artifacts/public/build/target.flatpak.tar.xz
tar xf target.flatpak.tar.xz
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak --user --no-gpg-verify remote-add firefox-try ./repo/
flatpak --user install firefox-try org.mozilla.firefox/aarch64

It cannot be installed using the generic command "flatpak install flathub org.mozilla.firefox", which still returns the error: "error: Nothing matches org.mozilla.firefox in remote flathub".

I believe this does not count as a fix since the latest build is not available in flathub.
Julien, am I wrong? Can you explain? Thank you!

Flags: needinfo?(jcristau)

The beta builds are on flathub-beta (which you can add with flatpak --user remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo, per https://discourse.flathub.org/t/how-to-use-flathub-beta/2111). It'll be visible on the main flathub repo when 137 makes it to release.

$ flatpak remote-info flathub-beta org.mozilla.firefox/aarch64
        ID: org.mozilla.firefox
       Ref: app/org.mozilla.firefox/aarch64/beta
      Arch: aarch64
    Branch: beta
Collection: org.flathub.Beta
  Download: 96.6 MB
 Installed: 256.8 MB
   Runtime: org.freedesktop.Platform/aarch64/24.08
       Sdk: org.freedesktop.Sdk/aarch64/24.08

    Commit: 95f63fe1cdcb43a2e01bafb192657ef5e2453275f188ad2eb92550af9fd4f84e
   Subject: Export org.mozilla.firefox
      Date: 2025-03-12 13:32:27 +0000
Flags: needinfo?(jcristau)

Since the release of Firefox v137.0, Firefox Release aarch64 can be installed using command "flatpak install flathub org.mozilla.firefox".
Furthermore, the latest Beta v138.0b3 aarch64 can be installed using the generic command "flatpak install --user flathub-beta org.mozilla.firefox//beta".
Tested on Ubuntu 2404.1 LTS installed on a MacBook M1 Pro. Closing report.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

Thank you very much to all those involved in making this happen! Just tried it on PostmarketOS (Pinephone) as well and it worked as expected. Thanks again.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: