Ubuntu 22.04 suitability for Firefox development

108 views
Skip to first unread message

Henri Sivonen

unread,
Apr 28, 2022, 2:42:02 AM4/28/22
to dev-platform
Is Ubuntu 22.04 known to be compatible with mach bootstrap, rr, and
with submitting to Pernosco?

--
Henri Sivonen
hsiv...@mozilla.com

Daniel Holbert

unread,
Apr 28, 2022, 10:34:12 AM4/28/22
to Henri Sivonen, dev-platform
I've been using it for the past week with no serious issues.  I've used bootstrap and rr, and I've submitted to pernosco.

Minor FYI's:
(1) I had to recompile rr from source (as I often do) before it would run (due to a shared library version change, or something)
(2) For pernosco-submit to work, I needed to install awscli via "pip" (I assume I had it before the upgrade, too; and it must've needed an upgrade). This was true for a few other pip packages as well. ("python3 -m pip install --user -U $PACKAGE")
(3) I had to create my own launcher file (see below) in order to be able to launch Firefox nightly from the system toolbar / windows-key-launcher-UI.  (I have Firefox Nightly's binary symlinked in $HOME/bin, and in 21.10 and earlier, that was sufficient for the system toolbar's Firefox-launcher-icon to find & prefer Nightly as its chosen "firefox" binary, but that seems to have changed in 22.04 for some reason)
(4) To actually do the system upgrade: the in-place system-upgrade command ("do-release-upgrade") wasn't automatically finding Ubuntu 22.04 yet when I last used it, but it worked when I included "-d" (--devel-release), even though 22.04 is out of development.

Here's the contents of the launcher that I'm using for (3)  -- if you use this, be sure to swap out the "/home/dholbert" paths for your own systems' paths, and put the file in .local/share/applications/ .  Then, at your next login, you'll be able to find Nightly in Gnome's windows-key application-search UI, and you can pin it to the toolbar (save as favorite) from there.

[Desktop Entry]
Name=Firefox Nightly
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer
Exec=/home/dholbert/bin/firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/home/dholbert/programs/firefox-nightly/browser/chrome/icons/default/default128.png
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;video/webm;application/x-xpinstall;
StartupNotify=true
StartupWMClass=firefox
Actions=new-window;new-private-window;

[Desktop Action new-window]
Name=Open a New Window
Exec=/home/dholbert/bin/firefox -new-window

[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=/home/dholbert/bin/firefox -private-window




--
You received this message because you are subscribed to the Google Groups "dev-pl...@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dev-platform...@mozilla.org.
To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAJHk%2B8T-dSggY%3D-VHpcTgF3B3ubF3WM6ACH%2BKuaw6tPTKTw1rw%40mail.gmail.com.

Paul Zühlcke

unread,
Apr 28, 2022, 10:40:08 AM4/28/22
to Daniel Holbert, Henri Sivonen, dev-platform
> (4) To actually do the system upgrade: the in-place system-upgrade command ("do-release-upgrade") wasn't automatically finding Ubuntu 22.04 yet when I last used it, but it worked when I included "-d" (--devel-release), even though 22.04 is out of development.

I think that's because they usually wait with release upgrades for existing installations until the bugfix release is out, so something like 22.04.1.

Emilio Cobos Álvarez

unread,
Apr 28, 2022, 11:49:23 AM4/28/22
to dev-pl...@mozilla.org
On 4/28/22 16:33, Daniel Holbert wrote:
> Here's the contents of the launcher that I'm using for (3)  -- if you
> use this, be sure to swap out the "/home/dholbert" paths for your own
> systems' paths, and put the file in .local/share/applications/ .  Then,
> at your next login, you'll be able to find Nightly in Gnome's
> windows-key application-search UI, and you can pin it to the toolbar
> (save as favorite) from there.

For the record, for that to work on Wayland you also need to make sure
that the name of the desktop file is `firefox-nightly.desktop`, I
believe (you can't just name it whatever).

-- Emilio

> On Wed, Apr 27, 2022 at 11:42 PM Henri Sivonen <hsiv...@mozilla.com
> <mailto:hsiv...@mozilla.com>> wrote:
>
> Is Ubuntu 22.04 known to be compatible with mach bootstrap, rr, and
> with submitting to Pernosco?
>
> --
> Henri Sivonen
> hsiv...@mozilla.com <mailto:hsiv...@mozilla.com>
>
> --
> You received this message because you are subscribed to the Google
> Groups "dev-pl...@mozilla.org <mailto:dev-pl...@mozilla.org>"
> group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to dev-platform...@mozilla.org
> <mailto:dev-platform%2Bunsu...@mozilla.org>.
> To view this discussion on the web visit
> https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAJHk%2B8T-dSggY%3D-VHpcTgF3B3ubF3WM6ACH%2BKuaw6tPTKTw1rw%40mail.gmail.com <https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAJHk%2B8T-dSggY%3D-VHpcTgF3B3ubF3WM6ACH%2BKuaw6tPTKTw1rw%40mail.gmail.com>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "dev-pl...@mozilla.org" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to dev-platform...@mozilla.org
> <mailto:dev-platform...@mozilla.org>.
> To view this discussion on the web visit
> https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAN_rCT%3DgFQFzLqTrbSYRSmdjo-nWSJ4LkZ9y0Wdw9nGAWTwDfw%40mail.gmail.com <https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAN_rCT%3DgFQFzLqTrbSYRSmdjo-nWSJ4LkZ9y0Wdw9nGAWTwDfw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
OpenPGP_0xE1152D0994E4BF8A.asc

Kyle Huey

unread,
May 6, 2022, 12:59:30 PM5/6/22
to Henri Sivonen, dev-platform
The only issue that I am aware of is that Pernosco did not have system
library sources for jammy, which should be fixed as of today.

- Kyle
> --
> You received this message because you are subscribed to the Google Groups "dev-pl...@mozilla.org" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dev-platform...@mozilla.org.
> To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAJHk%2B8T-dSggY%3D-VHpcTgF3B3ubF3WM6ACH%2BKuaw6tPTKTw1rw%40mail.gmail.com.

Henri Sivonen

unread,
May 20, 2022, 7:19:02 AM5/20/22
to dev-pl...@mozilla.org
Thanks, everyone.

I upgraded to 22.04 today.

As noted upthread, I needed the firefox-nightly.desktop file to get
the right icon for Nightly for Nightly windows, and I needed to
reinstall awscli as advised upthread. I recompiled rr before even
trying if the old instance would have worked.

A couple of additional (resolvable) issues that I noticed:

1. It's a bad idea to run the upgrade from within a Wayland session on
20.04. The screen lock turned on during the upgrade, but it
mid-upgrade attempting to type in the password field of the screen
lock didn't work and showed an authentication error message. I logged
in over ssh, killed (without -9) the jammy and dpkg processes and then
ran apt update, apt upgrade, and the repair commands that these told
me to run first, and apt autoremove until reaching a state where these
didn't do anything anymore. AFAICT, I ended up with a
properly-upgraded system.

2. mach bootstrap couldn't deal with a previously mach
bootstrapped-installed Mercurial that would no longer run. I needed to
do `sudo rm /usr/local/bin/hg` in order to get mach bootstrap to
proceed.

The upside, which is why I wanted to upgrade in the first place, is
that Nightly uses Wayland automatically and windows created by Nightly
are recognized as windows created by one app, so the alt-` works.

--
Henri Sivonen
hsiv...@mozilla.com

Henri Sivonen

unread,
May 20, 2022, 12:03:41 PM5/20/22
to dev-pl...@mozilla.org
Additionally, there was an issue related to source attachment and some
DWARF feature that rr didn't understand. It is unclear to me if this
is attributable to the system upgrade or the mach bootstrap that went
along with it. In any case, it's a good idea to recompile rr from
today's revision.
--
Henri Sivonen
hsiv...@mozilla.com
Reply all
Reply to author
Forward
0 new messages