Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions srcpkgs/firefox/patches/firefox-158-lto-thin.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Use thin lto.
--- a/config/makefiles/rust.mk
+++ b/config/makefiles/rust.mk
@@ -56,7 +56,7 @@
cargo_rustc_flags = $(CARGO_RUSTCFLAGS)
# Enable link-time optimization for release builds.
ifdef RUST_LIBRARY_LTO
-cargo_rustc_flags += -Clto
+cargo_rustc_flags += -Clto=thin
endif

ifdef CARGO_INCREMENTAL
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1657849
diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp
index ed958bc..9824433 100644
--- firefox-142.0.1/security/sandbox/linux/SandboxFilter.cpp 2025-08-27 05:19:55.000000000 +0200
+++ - 2025-08-27 13:34:45.154107444 +0200
@@ -1884,10 +1884,16 @@
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -1919,13 +1919,19 @@
return Allow();
case __NR_sched_get_priority_min:
case __NR_sched_get_priority_max:
+#ifndef __GLIBC__
+ case __NR_sched_setscheduler:
+#endif
return Allow();
// The OpenH264 plugin needs sched_getaffinity() in multithreaded mode;
// bug 2071378.
case __NR_sched_getaffinity:
case __NR_sched_getparam:
case __NR_sched_getscheduler:
- case __NR_sched_setscheduler: {
Expand All @@ -21,7 +22,7 @@ index ed958bc..9824433 100644
Arg<pid_t> pid(0);
return If(pid == 0, Allow()).Else(Trap(SchedTrap, nullptr));
}
@@ -2077,13 +2083,21 @@
@@ -2209,13 +2215,21 @@
case __NR_sched_getparam:
case __NR_sched_setparam:
case __NR_sched_getscheduler:
Expand All @@ -35,7 +36,7 @@ index ed958bc..9824433 100644
}

+#ifndef __GLIBC__
+ // sched_setscheduler gets special treatment here (bug 1657849):
+ // sched_setscheduler gets special treatment here (bug 1657849):
+ case __NR_sched_setscheduler:
+ return Allow();
+#endif
Expand Down
18 changes: 0 additions & 18 deletions srcpkgs/firefox/patches/fix-i686-build-moz-1792159.patch

This file was deleted.

12 changes: 0 additions & 12 deletions srcpkgs/firefox/patches/rust-lto-thin.patch

This file was deleted.

6 changes: 3 additions & 3 deletions srcpkgs/firefox/template
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/firefox-i18n".
#
pkgname=firefox
version=157.0.1
version=158.0
revision=1
_llvmver=22
build_helper="rust"
Expand All @@ -18,14 +18,14 @@ makedepends="nss-devel libjpeg-turbo-devel gtk+3-devel
$(vopt_if alsa alsa-lib-devel) $(vopt_if dbus dbus-glib-devel)
$(vopt_if pulseaudio pulseaudio-devel) $(vopt_if xscreensaver libXScrnSaver-devel)
$(vopt_if sndio sndio-devel) $(vopt_if jack jack-devel)"
depends="nss>=3.129 nspr>=4.39 desktop-file-utils hicolor-icon-theme pciutils"
depends="nss>=3.129 nspr>=4.39 desktop-file-utils hicolor-icon-theme pciutils libavcodec6"
short_desc="Mozilla Firefox web browser"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3.0-only AND LGPL-2.1-only AND LGPL-3.0-only AND MPL-2.0"
homepage="https://www.mozilla.org/firefox/"
changelog="https://www.mozilla.org/en-US/firefox/${version}/releasenotes/"
distfiles="${MOZILLA_SITE}/firefox/releases/${version/beta/b}/source/firefox-${version/beta/b}.source.tar.xz"
checksum=483bedee9059df2479e4531c443b1073c6ebaed3570bda0c164eb562ee241c4c
checksum=fc77f7801d7580a600af683cc367e261eb1ec74647e84a91b4a1e3c1dd5aa2bb

lib32disabled=yes

Expand Down
Loading