[tbb-commits] [tor-browser] 12/15: Bug 1782828 - Bump snap dependencies core18=>20 and gnome-3-34=>38 r=gerard-majax, gbrown, a=RyanVM
gitolite role
git at cupani.torproject.org
Thu Aug 18 22:31:54 UTC 2022
This is an automated email from the git hooks/post-receive script.
richard pushed a commit to branch tor-browser-91.13.0esr-11.5-1
in repository tor-browser.
commit a1bd2c8e7d1be5f5e008291bbba23dc0ca114634
Author: Johan Lorenzo <jlorenzo at mozilla.com>
AuthorDate: Thu Aug 4 17:00:34 2022 +0000
Bug 1782828 - Bump snap dependencies core18=>20 and gnome-3-34=>38 r=gerard-majax,gbrown, a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D153734
---
taskcluster/docker/firefox-snap/Dockerfile | 24 ++++++++++++++--------
.../docker/firefox-snap/firefox.snapcraft.yaml.in | 8 ++++----
2 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/taskcluster/docker/firefox-snap/Dockerfile b/taskcluster/docker/firefox-snap/Dockerfile
index eac038660f74a..dc002c01335ad 100644
--- a/taskcluster/docker/firefox-snap/Dockerfile
+++ b/taskcluster/docker/firefox-snap/Dockerfile
@@ -2,7 +2,9 @@
## The modifications done are part of the documentation for enabling core18 snaps.
## https://snapcraft.io/docs/t/creating-docker-images-for-snapcraft/11739
-FROM ubuntu:bionic
+# /!\ The base image must follow the version of the `coreXX` package
+# https://forum.snapcraft.io/t/issues-dockerizing-a-snapcraft-build-process/30294/5
+FROM ubuntu:focal
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US:en' \
@@ -11,7 +13,10 @@ ENV LANG='en_US.UTF-8' \
SNAP='/snap/snapcraft/current' \
SNAP_NAME='snapcraft' \
SNAP_ARCH='amd64' \
- TERM='dumb'
+ TERM='dumb' \
+ TZ='Etc/UTC'
+
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Grab dependencies. snapd is now required per https://github.com/snapcore/snapcraft/pull/3210
RUN apt-get update && \
@@ -34,14 +39,17 @@ locale-gen "$LANG"
COPY download_and_install_snap.sh .
-# Grab the core snap (for backwards compatibility)
-RUN bash download_and_install_snap.sh 'core'
-# Grab the core18 snap (which snapcraft uses as a base)
-RUN bash download_and_install_snap.sh 'core18'
-RUN bash download_and_install_snap.sh 'gnome-3-34-1804'
-RUN bash download_and_install_snap.sh 'gnome-3-34-1804-sdk'
+RUN bash download_and_install_snap.sh 'core20'
+RUN bash download_and_install_snap.sh 'gnome-3-38-2004'
+RUN bash download_and_install_snap.sh 'gnome-3-38-2004-sdk'
RUN bash download_and_install_snap.sh 'snapcraft'
+# Fix Python3 installation: Make sure we use the interpreter from
+# the snapcraft snap:
+RUN unlink /snap/snapcraft/current/usr/bin/python3 && \
+ ln -s /snap/snapcraft/current/usr/bin/python3.* /snap/snapcraft/current/usr/bin/python3 && \
+ echo /snap/snapcraft/current/lib/python3.*/site-packages >> /snap/snapcraft/current/usr/lib/python3/dist-packages/site-packages.pth
+
# Create a snapcraft runner (TODO: move version detection to the core of snapcraft).
RUN mkdir -p /snap/bin
RUN echo "#!/bin/sh" > /snap/bin/snapcraft
diff --git a/taskcluster/docker/firefox-snap/firefox.snapcraft.yaml.in b/taskcluster/docker/firefox-snap/firefox.snapcraft.yaml.in
index 1463c41c3995e..2ee371b2f6f08 100644
--- a/taskcluster/docker/firefox-snap/firefox.snapcraft.yaml.in
+++ b/taskcluster/docker/firefox-snap/firefox.snapcraft.yaml.in
@@ -4,7 +4,7 @@ summary: Mozilla Firefox web browser
description: Firefox is a powerful, extensible web browser with support for modern web application technologies.
confinement: strict
grade: stable
-base: core18
+base: core20
compression: lzo
apps:
@@ -12,7 +12,7 @@ apps:
command: firefox
command-chain: [tmpdir]
desktop: distribution/firefox.desktop
- extensions: [gnome-3-34]
+ extensions: [gnome-3-38]
environment:
HOME: "$SNAP_USER_COMMON"
GTK_USE_PORTAL: 1
@@ -77,10 +77,10 @@ parts:
cleanup:
after: [firefox]
plugin: nil
- build-snaps: [core18, gnome-3-34-1804]
+ build-snaps: [core20, gnome-3-38-2004]
override-prime: |
set -eux
- for snap in "core18" "gnome-3-34-1804"; do
+ for snap in "core20" "gnome-3-38-2004"; do
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \;
done
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tbb-commits
mailing list