Compare commits
No commits in common. "master" and "v98.0.1-1" have entirely different histories.
9 changed files with 3387 additions and 128 deletions
|
|
@ -5,31 +5,20 @@ Author: Olivier Tilloy <olivier.tilloy@canonical.com>
|
|||
|
||||
--- a/build/moz.configure/toolchain.configure
|
||||
+++ b/build/moz.configure/toolchain.configure
|
||||
@@ -1699,6 +1699,7 @@
|
||||
android_platform,
|
||||
c_compiler,
|
||||
developer_options,
|
||||
+ host,
|
||||
)
|
||||
else:
|
||||
deps = depends_if(
|
||||
@@ -1709,6 +1710,7 @@
|
||||
dependable(None),
|
||||
host_c_compiler,
|
||||
developer_options,
|
||||
+ host,
|
||||
)
|
||||
|
||||
@deps
|
||||
@@ -1721,8 +1723,11 @@
|
||||
android_platform,
|
||||
c_compiler,
|
||||
developer_options,
|
||||
+ host,
|
||||
):
|
||||
flags = list((linker and linker.LINKER_FLAG) or [])
|
||||
+ if host.cpu == "arm":
|
||||
+ flags.append("-Wl,--no-keep-memory")
|
||||
# rpath-link is irrelevant to wasm, see for more info https://github.com/emscripten-core/emscripten/issues/11076.
|
||||
if sysroot.path and multiarch_dir and target.os != "WASI":
|
||||
for d in ("lib", "usr/lib"):
|
||||
@@ -1631,12 +1631,15 @@ set_config("LINKER_KIND", select_linker.KIND)
|
||||
target_multiarch_dir,
|
||||
android_platform,
|
||||
c_compiler,
|
||||
+ host,
|
||||
)
|
||||
@imports("os")
|
||||
def linker_ldflags(
|
||||
- linker, target, sysroot, multiarch_dir, android_platform, c_compiler
|
||||
+ linker, target, sysroot, multiarch_dir, android_platform, c_compiler, host
|
||||
):
|
||||
flags = list((linker and linker.LINKER_FLAG) or [])
|
||||
+ if host.cpu == "arm":
|
||||
+ flags.append("-Wl,--no-keep-memory")
|
||||
# rpath-link is irrelevant to wasm, see for more info https://github.com/emscripten-core/emscripten/issues/11076.
|
||||
if sysroot.path and multiarch_dir and target.os != "WASI":
|
||||
for d in ("lib", "usr/lib"):
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
Description: Remove an extra constant definition that is now being generated by newer versions of cbindgen (0.24),
|
||||
and causing build failures because it is defined in several places.
|
||||
Author: Olivier Tilloy <olivier.tilloy@canonical.com>
|
||||
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1773259
|
||||
Forwarded: not-needed
|
||||
|
||||
--- a/gfx/webrender_bindings/webrender_ffi.h
|
||||
+++ b/gfx/webrender_bindings/webrender_ffi.h
|
||||
@@ -73,8 +73,6 @@ struct WrPipelineInfo;
|
||||
struct WrPipelineIdAndEpoch;
|
||||
using WrPipelineIdEpochs = nsTArray<WrPipelineIdAndEpoch>;
|
||||
|
||||
-const uint64_t ROOT_CLIP_CHAIN = ~0;
|
||||
-
|
||||
} // namespace wr
|
||||
} // namespace mozilla
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
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 =
|
||||
3300
deb_patches/revert-crossbeam-crates-upgrade.patch
Normal file
3300
deb_patches/revert-crossbeam-crates-upgrade.patch
Normal file
File diff suppressed because it is too large
Load diff
35
deb_patches/webrtc-fix-compiler-flags-for-armhf.patch
Normal file
35
deb_patches/webrtc-fix-compiler-flags-for-armhf.patch
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# 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 != "") {
|
||||
|
|
@ -8,7 +8,7 @@ _DEPENDENCIES="wget git xvfb \
|
|||
xz-utils \
|
||||
gettext-base \
|
||||
curl python3 libjack-dev \
|
||||
python3-dev python-dev \
|
||||
python3-psutil python-psutil python3-dev python-dev \
|
||||
gnupg \
|
||||
autotools-dev \
|
||||
autoconf2.13 \
|
||||
|
|
|
|||
|
|
@ -47,23 +47,11 @@ ac_add_options --enable-dbus
|
|||
# Branding
|
||||
ac_add_options --enable-update-channel=release
|
||||
ac_add_options --with-app-name=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-app-basename=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 --allow-addon-sideload
|
||||
export MOZ_REQUIRE_SIGNING=
|
||||
|
||||
# System libraries
|
||||
# ac_add_options --with-system-nspr
|
||||
|
|
@ -77,11 +65,7 @@ ac_add_options --disable-updater
|
|||
ac_add_options --disable-tests
|
||||
|
||||
# obsoleted?
|
||||
# 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
|
||||
# mk_add_options MOZ_CRASHREPORTER=0
|
||||
|
||||
# options for ci / weaker build systems
|
||||
# mk_add_options MOZ_MAKE_FLAGS="-j4"
|
||||
|
|
@ -89,9 +73,6 @@ mk_add_options MOZ_TELEMETRY_REPORTING=0
|
|||
|
||||
# required for 95.0 for now, it seems
|
||||
ac_add_options --without-wasm-sandboxed-libraries
|
||||
|
||||
# experimental JXL support
|
||||
ac_add_options --enable-jxl
|
||||
END
|
||||
|
||||
# allow setting limited resource usage via ENV / CI:
|
||||
|
|
@ -118,6 +99,14 @@ END
|
|||
export RUSTFLAGS="-Cdebuginfo=0"
|
||||
|
||||
export LDFLAGS+=" -Wl,--no-keep-memory -Wl"
|
||||
# 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
|
||||
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
|
||||
cat >>${CI_PROJECT_DIR}/mozconfig <<END
|
||||
|
|
@ -139,25 +128,26 @@ END
|
|||
|
||||
fi
|
||||
|
||||
# hopefully the magic sauce that makes things build on 18.04 and later on work "everywhere":
|
||||
# hopefully the magic sauce that makes things build on 16.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/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/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"
|
||||
|
||||
# allow enabling JPEG XL in non-nightly browser
|
||||
patch -Np1 -i ${_PATCHES_DIR}/allow-JXL-in-non-nightly-browser.patch
|
||||
|
||||
# Remove some pre-installed addons that might be questionable
|
||||
patch -Np1 -i ${_PATCHES_DIR}/remove_addons.patch
|
||||
|
||||
# remove mozilla vpn ads
|
||||
patch -Np1 -i ${_PATCHES_DIR}/mozilla-vpn-ad2.patch
|
||||
|
||||
# KDE menu and unity menubar. patch order matters.
|
||||
patch -Np1 -i ${_PATCHES_DIR}/unity_kde/mozilla-kde.patch
|
||||
patch -Np1 -i ${_PATCHES_DIR}/unity_kde/firefox-kde.patch
|
||||
patch -Np1 -i ${_PATCHES_DIR}/unity_kde/unity-menubar.patch
|
||||
# Debian patch to enable global menubar
|
||||
# if [[ ! -z "${GLOBAL_MENUBAR}" ]];then
|
||||
# patch -Np1 -i ${_PATCHES_DIR}/unity-menubar.patch
|
||||
# fi
|
||||
|
||||
# experimentally re-included
|
||||
patch -Np1 -i ${_PATCHES_DIR}/unity-menubar.patch
|
||||
patch -Np1 -i ${_PATCHES_DIR}/mozilla-kde_after_unity.patch
|
||||
|
||||
# Disabling Pocket
|
||||
printf "\nDisabling Pocket\n";
|
||||
|
|
@ -168,14 +158,12 @@ patch -Np1 -i "${_PATCHES_DIR}/context-menu.patch"
|
|||
|
||||
patch -Np1 -i "${_PATCHES_DIR}/urlbarprovider-interventions.patch"
|
||||
|
||||
patch -Np1 -i "${_PATCHES_DIR}/unified-extensions-dont-show-recommendations.patch"
|
||||
# Remove Internal Plugin Certificates
|
||||
patch -Np1 -i "${_PATCHES_DIR}/sed-patches/remove-internal-plugin-certs.patch"
|
||||
|
||||
# allow SearchEngines option in non-ESR builds
|
||||
patch -Np1 -i "${_PATCHES_DIR}/sed-patches/allow-searchengines-non-esr.patch"
|
||||
|
||||
# fix broken(?)/unintended handling of autoconf file loading in flatpak/snap environments
|
||||
patch -Np1 -i "${_PATCHES_DIR}/flatpak_autoconf.patch"
|
||||
|
||||
# remove search extensions (experimental)
|
||||
# patch -Np1 -i "${_PATCHES_DIR}/search-config.patch"
|
||||
cp "${_SOURCE_REPO_DIR}/assets/search-config.json" services/settings/dumps/main/search-config.json
|
||||
|
|
@ -183,6 +171,10 @@ cp "${_SOURCE_REPO_DIR}/assets/search-config.json" services/settings/dumps/main/
|
|||
# stop some undesired requests (https://gitlab.com/librewolf-community/browser/common/-/issues/10)
|
||||
patch -Np1 -i "${_PATCHES_DIR}/sed-patches/stop-undesired-requests.patch"
|
||||
|
||||
# allow overriding the color scheme light/dark preference with RFP
|
||||
# deprecated / will be dropped soon
|
||||
# patch -Np1 -i ${_PATCHES_DIR}/allow_dark_preference_with_rfp.patch
|
||||
|
||||
# change some hardcoded directory strings that could lead to unnecessarily
|
||||
# created directories
|
||||
patch -Np1 -i ${_PATCHES_DIR}/mozilla_dirs.patch
|
||||
|
|
@ -197,24 +189,12 @@ patch -Np1 -i ${_PATCHES_DIR}/allow-ubo-private-mode.patch
|
|||
# add custom uBO assets (on first launch only)
|
||||
patch -Np1 -i ${_PATCHES_DIR}/custom-ubo-assets-bootstrap-location.patch
|
||||
|
||||
#
|
||||
patch -Np1 -i ${_PATCHES_DIR}/faster-package-multi-locale.patch
|
||||
|
||||
# ui patches
|
||||
|
||||
# remove references to firefox from the settings UI, change text in some of the links,
|
||||
# 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/handlers.patch
|
||||
|
||||
#
|
||||
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/hide-default-browser.patch
|
||||
|
||||
# Add LibreWolf logo to Debugging Page
|
||||
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/lw-logo-devtools.patch
|
||||
|
||||
#
|
||||
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/privacy-preferences.patch
|
||||
|
||||
|
|
@ -230,22 +210,13 @@ patch -Np1 -i ${_PATCHES_DIR}/ui-patches/remove-organization-policy-banner.patch
|
|||
# hide "snippets" section from the home page settings, as it was already locked.
|
||||
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/remove-snippets-from-home.patch
|
||||
|
||||
# add patch to hide website appearance settings
|
||||
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/website-appearance-ui-rfp.patch
|
||||
# add warning that sanitizing exceptions are bypassed by the options in History > Clear History when LibreWolf closes > Settings
|
||||
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/sanitizing-description.patch
|
||||
|
||||
# pref pane
|
||||
patch -Np1 -i ${_PATCHES_DIR}/librewolf-pref-pane.patch
|
||||
|
||||
# firefox view
|
||||
patch -Np1 -i ${_PATCHES_DIR}/ui-patches/firefox-view.patch
|
||||
|
||||
# new prefs (view, ubo)
|
||||
patch -Np1 -i ${_PATCHES_DIR}/librewolf-prefs.patch
|
||||
|
||||
# fix telemetry removal, see https://gitlab.com/librewolf-community/browser/linux/-/merge_requests/17, for example
|
||||
patch -Np1 -i ${_PATCHES_DIR}/disable-data-reporting-at-compile-time.patch
|
||||
|
||||
# allows hiding the password manager (from the lw pref pane) / via a pref
|
||||
patch -Np1 -i ${_PATCHES_DIR}/hide-passwordmgr.patch
|
||||
|
||||
rm -rf source
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ fi
|
|||
|
||||
export MOZ_NOSPAM=1
|
||||
export MOZBUILD_STATE_PATH="${_MOZBUILD}"
|
||||
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system
|
||||
export MACH_USE_SYSTEM_PYTHON=1
|
||||
|
||||
if [[ $CARCH == 'aarch64' ]]; then
|
||||
export MOZ_DEBUG_FLAGS=" "
|
||||
|
|
@ -70,7 +70,7 @@ cd $srcdir;
|
|||
rm -f mozconfig
|
||||
|
||||
# install cbindgen
|
||||
cargo install --version 0.24.3 cbindgen
|
||||
cargo install --version 0.20.0 cbindgen
|
||||
|
||||
if [[ $CARCH == 'aarch64' ]]; then
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ LAUNCHER_SCRIPT=$3;
|
|||
CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(realpath $(dirname $0)/../)}
|
||||
_SCRIPT_FOLDER=$(realpath $(dirname $0));
|
||||
_EXTRACTED_TARBALL_FOLDER=$_SCRIPT_FOLDER/librewolf;
|
||||
_SETTINGS_TAG=${SETTINGS_TAG:-'7.4'}
|
||||
_SETTINGS_TAG=${SETTINGS_TAG:-'6.0'}
|
||||
_SETTINGS_REPO='https://gitlab.com/librewolf-community/settings.git';
|
||||
|
||||
# Extracts the binary tarball
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue