Skip to content

Update Firefox from 94.0.2 to 102.0 #2703

Merged
merged 10 commits into from Jul 5, 2022
22 changes: 11 additions & 11 deletions firefox.be0
Expand Up @@ -2,25 +2,24 @@

#export BEE_TMP_TMPDIR=/dev/shm BEE_TMP_BUILDROOT=/dev/shm/bee-root BEE_MAKEFLAGS='-j80'

# BEE_VERSION firefox-94.0.2-0
# BEE_VERSION firefox-102.0-0

#https://ftp.mozilla.org/pub/firefox/releases/$pkgversion/SOURCE to find the right download link
# SRCURL[0]="https://ftp.mozilla.org/pub/firefox/releases/${PKGVERSION}/source/firefox-${PKGVERSION}.source.tar.xz"
SRCURL[0]="https://beehive.molgen.mpg.de/10c84ed01aaf2bbf0e79ba4be8f96506/firefox-94.0.2.source.tar.xz"
SRCURL[0]="https://ftp.mozilla.org/pub/firefox/releases/${PKGVERSION}/source/firefox-${PKGVERSION}.source.tar.xz"
#SRCURL[0]="https://beehive.molgen.mpg.de/c560438ea86c5faeace6bc4150f8ccbe/firefox-95.0.source.tar.xz"

# https://salsa.debian.org/mozilla-team/firefox/-/commit/9bc353bb426f93932e4fdd36f437dad04d099da1
PATCHURL+=(https://beehive.molgen.mpg.de/df3a19a055c83f5365c5fa0c88e0eb0f/firefox-94.0.2-cubeb-pulse.patch)
# https://raw.githubusercontent.com/canonical/firefox-snap/5622734942524846fb0eb7108918c8cd8557fde3/patches/fix-ftbfs-newer-cbindgen.patch
PATCHURL+=("https://beehive.molgen.mpg.de/37db9ec3cc336d3a09ede8becec2ad69/fix-ftbfs-newer-cbindgen.patch")

#BEE_BUILDTYPE=autotools
#build_in_sourcedir

mee_configure() {

. /usr/local/package/lib/node.profile
. /pkg/rustc-1.56.1-0/profile
. /pkg/rustc-1.61.0-0/profile

cat > ${S}/mozconfig <<-EOF
ac_add_options --prefix=/usr
ac_add_options --prefix="${PREFIX}"
ac_add_options --enable-application=browser
ac_add_options --disable-necko-wifi
ac_add_options --enable-official-branding
Expand All @@ -31,6 +30,8 @@ mee_configure() {
ac_add_options --enable-optimize
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
ac_add_options --enable-bootstrap
ac_add_options --without-wasm-sandboxed-libraries
mk_add_options MOZ_MAKE_FLAGS="${BEE_MAKEFLAGS}"
mk_add_options MOZ_OBJDIR=$B
EOF
Expand All @@ -39,9 +40,8 @@ mee_configure() {
}

mee_build() {
export CARGO_HOME=$B/.cargo
export MACH_USE_SYSTEM_PYTHON=1
${S}/mach build
export CARGO_HOME=$B/.cargo
${S}/mach build
}

mee_build_post() {
Expand Down