v99.0-1
This commit is contained in:
parent
16a1ab1eea
commit
d4f54ef3bc
5 changed files with 51 additions and 3351 deletions
19
deb_patches/fix-wayland-build.patch
Normal file
19
deb_patches/fix-wayland-build.patch
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
Description: Fix FTBFS on bionic. Compiler errors:
|
||||||
|
In file included from Unified_cpp_widget_gtk1.cpp:2:
|
||||||
|
/<<BUILDDIR>>/firefox-92.0~b2+build1/widget/gtk/WaylandBuffer.cpp:261:39: error: unknown type name 'GLContext'; did you mean 'EGLContext'?
|
||||||
|
const LayoutDeviceIntSize& aSize, GLContext* aGL) {
|
||||||
|
^~~~~~~~~
|
||||||
|
|
||||||
|
Author: Rico Tzschichholz <ricotz@ubuntu.com>
|
||||||
|
|
||||||
|
--- a/widget/gtk/WaylandBuffer.cpp
|
||||||
|
+++ b/widget/gtk/WaylandBuffer.cpp
|
||||||
|
@@ -258,7 +258,7 @@
|
||||||
|
|
||||||
|
/* static */
|
||||||
|
RefPtr<WaylandBufferDMABUF> WaylandBufferDMABUF::Create(
|
||||||
|
- const LayoutDeviceIntSize& aSize, GLContext* aGL) {
|
||||||
|
+ const LayoutDeviceIntSize& aSize, gl::GLContext* aGL) {
|
||||||
|
RefPtr<WaylandBufferDMABUF> buffer = new WaylandBufferDMABUF(aSize);
|
||||||
|
|
||||||
|
const auto flags =
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,35 +0,0 @@
|
||||||
# Description: Don't pass -mfloat-abi=softfp on armhf
|
|
||||||
# Author: Chris Coulson <chris.coulson@canonical.com>
|
|
||||||
# Forwarded: no
|
|
||||||
|
|
||||||
--- a/build/gyp.mozbuild
|
|
||||||
+++ b/build/gyp.mozbuild
|
|
||||||
@@ -107,9 +107,15 @@ if CONFIG['ARM_ARCH']:
|
|
||||||
gyp_vars['arm_neon'] = 1
|
|
||||||
gyp_vars['build_with_neon'] = 1
|
|
||||||
else:
|
|
||||||
- # CPU detection for ARM works on Android only. armv7 always uses CPU
|
|
||||||
- # detection, so we have to set armv7=0 for non-Android target
|
|
||||||
- gyp_vars['armv7'] = 0
|
|
||||||
+ gyp_vars['armv7'] = 1
|
|
||||||
+ # We enable NEON for Ubuntu armhf. Note that these don't really
|
|
||||||
+ # have any effect here as NEON is hardcoded on in
|
|
||||||
+ # media/webrtc/trunk/webrtc/build/common.gypi. Disabling these
|
|
||||||
+ # without fixing that file will result in a link failure, as
|
|
||||||
+ # targets hidden behind the build_with_neon flag don't get
|
|
||||||
+ # built but WEBRTC_HAS_NEON is still defined
|
|
||||||
+ gyp_vars['arm_neon'] = 1
|
|
||||||
+ gyp_vars['build_with_neon'] = 1
|
|
||||||
# For libyuv
|
|
||||||
gyp_vars['arm_version'] = int(CONFIG['ARM_ARCH'])
|
|
||||||
|
|
||||||
--- a/third_party/libwebrtc/build/config/compiler/BUILD.gn
|
|
||||||
+++ b/third_party/libwebrtc/build/config/compiler/BUILD.gn
|
|
||||||
@@ -590,7 +590,6 @@ config("compiler_cpu_abi") {
|
|
||||||
if (!is_nacl) {
|
|
||||||
cflags += [
|
|
||||||
"-march=$arm_arch",
|
|
||||||
- "-mfloat-abi=$arm_float_abi",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
if (arm_tune != "") {
|
|
||||||
|
|
@ -47,7 +47,18 @@ ac_add_options --enable-dbus
|
||||||
# Branding
|
# Branding
|
||||||
ac_add_options --enable-update-channel=release
|
ac_add_options --enable-update-channel=release
|
||||||
ac_add_options --with-app-name=librewolf
|
ac_add_options --with-app-name=librewolf
|
||||||
ac_add_options --with-app-basename=LibreWolf
|
# ac_add_options --with-app-basename=LibreWolf
|
||||||
|
|
||||||
|
# switch to env vars like in librewolf source repo
|
||||||
|
# this is in browser/branding/librewolf/configure.sh as well
|
||||||
|
# so it _should_ already be applied, buuuuut just in case?
|
||||||
|
|
||||||
|
export MOZ_APP_NAME=librewolf
|
||||||
|
export MOZ_APP_BASENAME=LibreWolf
|
||||||
|
export MOZ_APP_PROFILE=librewolf
|
||||||
|
export MOZ_APP_VENDOR=LibreWolf
|
||||||
|
export MOZ_APP_DISPLAYNAME=LibreWolf
|
||||||
|
|
||||||
ac_add_options --with-branding=browser/branding/librewolf
|
ac_add_options --with-branding=browser/branding/librewolf
|
||||||
ac_add_options --with-distribution-id=io.gitlab.librewolf-community
|
ac_add_options --with-distribution-id=io.gitlab.librewolf-community
|
||||||
ac_add_options --with-unsigned-addon-scopes=app,system
|
ac_add_options --with-unsigned-addon-scopes=app,system
|
||||||
|
|
@ -65,7 +76,11 @@ ac_add_options --disable-updater
|
||||||
ac_add_options --disable-tests
|
ac_add_options --disable-tests
|
||||||
|
|
||||||
# obsoleted?
|
# obsoleted?
|
||||||
# mk_add_options MOZ_CRASHREPORTER=0
|
# TODO: use source/assets/moczonfig in the future
|
||||||
|
mk_add_options MOZ_CRASHREPORTER=0
|
||||||
|
mk_add_options MOZ_DATA_REPORTING=0
|
||||||
|
mk_add_options MOZ_SERVICES_HEALTHREPORT=0
|
||||||
|
mk_add_options MOZ_TELEMETRY_REPORTING=0
|
||||||
|
|
||||||
# options for ci / weaker build systems
|
# options for ci / weaker build systems
|
||||||
# mk_add_options MOZ_MAKE_FLAGS="-j4"
|
# mk_add_options MOZ_MAKE_FLAGS="-j4"
|
||||||
|
|
@ -100,13 +115,8 @@ END
|
||||||
|
|
||||||
export LDFLAGS+=" -Wl,--no-keep-memory -Wl"
|
export LDFLAGS+=" -Wl,--no-keep-memory -Wl"
|
||||||
# patch -Np1 -i ${_PATCHES_DIR}/arm.patch # not required anymore?
|
# patch -Np1 -i ${_PATCHES_DIR}/arm.patch # not required anymore?
|
||||||
wget https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/extra/firefox/build-arm-libopus.patch -O ${_PATCHES_DIR}/build-arm-libopus.patch
|
# wget https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/extra/firefox/build-arm-libopus.patch -O ${_PATCHES_DIR}/build-arm-libopus.patch
|
||||||
patch -Np1 -i ${_PATCHES_DIR}/build-arm-libopus.patch
|
# patch -Np1 -i ${_PATCHES_DIR}/build-arm-libopus.patch
|
||||||
|
|
||||||
# Revert the upgrade of crossbeam-* crates that happened in Firefox 98.0,
|
|
||||||
# which resulted in a regression on arm64 where the browser wouldn't start
|
|
||||||
# (https://bugzilla.mozilla.org/show_bug.cgi?id=1757571)
|
|
||||||
patch -Np1 -i "${CI_PROJECT_DIR}/deb_patches/revert-crossbeam-crates-upgrade.patch"
|
|
||||||
|
|
||||||
else
|
else
|
||||||
cat >>${CI_PROJECT_DIR}/mozconfig <<END
|
cat >>${CI_PROJECT_DIR}/mozconfig <<END
|
||||||
|
|
@ -128,18 +138,18 @@ END
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# hopefully the magic sauce that makes things build on 16.04 and later on work "everywhere":
|
# hopefully the magic sauce that makes things build on 18.04 and later on work "everywhere":
|
||||||
patch -Np1 -i "${CI_PROJECT_DIR}/deb_patches/armhf-reduce-linker-memory-use.patch"
|
patch -Np1 -i "${CI_PROJECT_DIR}/deb_patches/armhf-reduce-linker-memory-use.patch"
|
||||||
patch -Np1 -i "${CI_PROJECT_DIR}/deb_patches/webrtc-fix-compiler-flags-for-armhf.patch"
|
|
||||||
patch -Np1 -i "${CI_PROJECT_DIR}/deb_patches/reduce-rust-debuginfo.patch"
|
patch -Np1 -i "${CI_PROJECT_DIR}/deb_patches/reduce-rust-debuginfo.patch"
|
||||||
patch -Np1 -i "${CI_PROJECT_DIR}/deb_patches/use-system-icupkg.patch"
|
patch -Np1 -i "${CI_PROJECT_DIR}/deb_patches/use-system-icupkg.patch"
|
||||||
|
|
||||||
|
# might make the build just a tiny bit cleaner, not really required though
|
||||||
|
patch -Np1 -i "${CI_PROJECT_DIR}/deb_patches/fix-wayland-build.patch"
|
||||||
|
|
||||||
|
|
||||||
# Remove some pre-installed addons that might be questionable
|
# Remove some pre-installed addons that might be questionable
|
||||||
patch -Np1 -i ${_PATCHES_DIR}/remove_addons.patch
|
patch -Np1 -i ${_PATCHES_DIR}/remove_addons.patch
|
||||||
|
|
||||||
# remove mozilla vpn ads
|
|
||||||
patch -Np1 -i ${_PATCHES_DIR}/mozilla-vpn-ad2.patch
|
|
||||||
|
|
||||||
# Debian patch to enable global menubar
|
# Debian patch to enable global menubar
|
||||||
# if [[ ! -z "${GLOBAL_MENUBAR}" ]];then
|
# if [[ ! -z "${GLOBAL_MENUBAR}" ]];then
|
||||||
# patch -Np1 -i ${_PATCHES_DIR}/unity-menubar.patch
|
# patch -Np1 -i ${_PATCHES_DIR}/unity-menubar.patch
|
||||||
|
|
@ -169,7 +179,7 @@ patch -Np1 -i "${_PATCHES_DIR}/sed-patches/allow-searchengines-non-esr.patch"
|
||||||
cp "${_SOURCE_REPO_DIR}/assets/search-config.json" services/settings/dumps/main/search-config.json
|
cp "${_SOURCE_REPO_DIR}/assets/search-config.json" services/settings/dumps/main/search-config.json
|
||||||
|
|
||||||
# stop some undesired requests (https://gitlab.com/librewolf-community/browser/common/-/issues/10)
|
# stop some undesired requests (https://gitlab.com/librewolf-community/browser/common/-/issues/10)
|
||||||
patch -Np1 -i "${_PATCHES_DIR}/sed-patches/stop-undesired-requests.patch"
|
patch -Np1 -i "${_PATCHES_DIR}/sed-patches/stop-undesired-requests2.patch"
|
||||||
|
|
||||||
# allow overriding the color scheme light/dark preference with RFP
|
# allow overriding the color scheme light/dark preference with RFP
|
||||||
# deprecated / will be dropped soon
|
# deprecated / will be dropped soon
|
||||||
|
|
@ -195,6 +205,12 @@ patch -Np1 -i ${_PATCHES_DIR}/custom-ubo-assets-bootstrap-location.patch
|
||||||
# explain that we force en-US and suggest enabling history near the session restore checkbox.
|
# explain that we force en-US and suggest enabling history near the session restore checkbox.
|
||||||
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/pref-naming.patch
|
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/pref-naming.patch
|
||||||
|
|
||||||
|
#
|
||||||
|
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/remap-links.patch
|
||||||
|
|
||||||
|
#
|
||||||
|
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/hide-default-browser.patch
|
||||||
|
|
||||||
#
|
#
|
||||||
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/privacy-preferences.patch
|
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/privacy-preferences.patch
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ LAUNCHER_SCRIPT=$3;
|
||||||
CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(realpath $(dirname $0)/../)}
|
CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(realpath $(dirname $0)/../)}
|
||||||
_SCRIPT_FOLDER=$(realpath $(dirname $0));
|
_SCRIPT_FOLDER=$(realpath $(dirname $0));
|
||||||
_EXTRACTED_TARBALL_FOLDER=$_SCRIPT_FOLDER/librewolf;
|
_EXTRACTED_TARBALL_FOLDER=$_SCRIPT_FOLDER/librewolf;
|
||||||
_SETTINGS_TAG=${SETTINGS_TAG:-'6.0'}
|
_SETTINGS_TAG=${SETTINGS_TAG:-'6.1'}
|
||||||
_SETTINGS_REPO='https://gitlab.com/librewolf-community/settings.git';
|
_SETTINGS_REPO='https://gitlab.com/librewolf-community/settings.git';
|
||||||
|
|
||||||
# Extracts the binary tarball
|
# Extracts the binary tarball
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue