Commit Graph

1056 Commits

Author SHA1 Message Date
github-actions[bot]
c58a108aaa
Merge master into staging-next 2022-04-16 06:01:08 +00:00
squalus
f681f8f18b librewolf: 99.0-1 -> 99.0.1-3 2022-04-14 09:18:34 -07:00
Vladimír Čunát
d5d94127fd
Merge branch 'staging-next' into staging
Minor conflicts; I hope I didn't mess up:
	pkgs/development/tools/misc/binutils/default.nix
	pkgs/games/openjk/default.nix
2022-04-14 09:53:21 +02:00
Martin Weinelt
07c6d44239
firefox: 99.0 -> 99.0.1
https://www.mozilla.org/en-US/firefox/99.0.1/releasenotes/
2022-04-12 15:40:44 +02:00
github-actions[bot]
28c6c88d42
Merge staging-next into staging 2022-04-10 00:02:52 +00:00
squalus
00db31b93c librewolf: 98.0.2-1 -> 99.0-1 2022-04-09 11:18:04 -07:00
github-actions[bot]
3dc8bd98b9
Merge staging-next into staging 2022-04-06 00:02:41 +00:00
Martin Weinelt
35ae0b7a1b
firefox: 91.7.1 -> 91.8.0
https://www.mozilla.org/en-US/firefox/91.8.0/releasenotes/
2022-04-06 00:18:37 +02:00
Martin Weinelt
e1e03e5bc2
firefox: 98.0.2 -> 99.0
https://www.mozilla.org/en-US/firefox/99.0/releasenotes/
2022-04-06 00:18:37 +02:00
ajs124
f3d301ab81 thunderbird{-bin}|firefox|librewolf: use nss_latest for regular releases
and nss_esr for esr releases
2022-04-03 13:14:07 +01:00
Bernardo Meurer
a158af0b1b
Merge pull request #165964 from mweinelt/firefox-hwdec 2022-03-29 09:16:18 -07:00
Martin Weinelt
6cdf69546b
firefox: allow RDD sandbox access to gpu drivers
Firefox uses a sandboxing model that only allows access to paths that
were previously explicitly granted. We can only add granular permissions
to a specific sandbox by patching, because setting LD_LIBRARY_PATH would
affect all of them.

To use hardware decoding via VA-API with Firefox 98.0.2 one needs to
head to `about:config` and enable `media.ffmpeg.vaapi.enabled`.

Closes: #157061
2022-03-29 15:44:06 +02:00
Bernardo Meurer
0e3d0d844e
Merge pull request #166078 from mweinelt/firefox-drm
firefox: fix drmSupport flag
2022-03-28 12:49:42 -07:00
Martin Weinelt
2cb9593cad firefox: always build with clang
Both LTO and PGO require the use of clang so I think its easier to just
stick with clang for all builds, so PGO and LTO could in theory be used
without each other.
2022-03-28 21:42:49 +02:00
Martin Weinelt
4cf4a7b848 firefox: add pname to throw message
https://github.com/NixOS/nixpkgs/pull/164646#discussion_r835879348
2022-03-28 21:42:49 +02:00
Martin Weinelt
05a6b3c2b7 librewolf: disable pgo support
Starts profiling, starts librewolf, but gets stuck and never terminates.
2022-03-28 21:42:49 +02:00
Martin Weinelt
0d3772f645 firefox: add profile-guided optimization
Lo and behold, we're finally catching up with Mozillas very own firefox
build in terms of speed.

PGO is an optimization technique in which in a first step we create a
build that supports instrumentation, meaning we can use it to create a
profile of how the browser behaved during usage. Then in a second pass
we create the final build that uses the acquired profiling data to
optimize the browser for the workload it actually received during
profiling.

The downside is that with PGO we now need to build Firefox twice, which
increases the build time from around 20 minutes to roughly 50 minutes.

In the Speedometer 2.0 benchmark multiple tests could see a
responsiveness improvemeant around 20-25%, which makes the increased
build time well worth it.

Sadly this benefit seems limited to x86_64-linux, builds on
aarch64-linux get stuck during profiling and I haven't found out why.

Finally, after a long time, we can say:

Closes: #76484
Supersedes: #129503
2022-03-28 21:42:49 +02:00
Martin Weinelt
2a32474802
firefox: fix drmSupport flag
In #109133 @alyssais discovered that the drmSupport flag stopped
working. This is because Mozilla decided around Firefox 51
(mozbz#1289634) to swap the default values and our flag was asking for
the wrong thing all along.

Since this flag has now been enabled for multiple years, disabling it
would mean a regression for our users. Leaving it enabled should be
unproblematic since it only controls whether Firefox shows the EME nagbar,
that allows to enable Widevine CDM, when a site requests it. The choice is
therefore completely up to the enduser.

Disabling this nagbar is still possible at runtime by setting
`browser.eme.ui.enabled` to `false`. If Widevine CDM was inadvertently
enabled it can be disabled at `media.gmp-widevinecdm.enabled`.

Supersedes: #109133
2022-03-28 18:12:02 +02:00
squalus
af9f2e4611 librewolf: 98.0-1 -> 98.0.2-1 2022-03-24 20:41:39 -07:00
Martin Weinelt
b3529accfb
firefox: reformat, sort, cleanup
It is normal for such a large derivation to accumulate mixed codestyles
over all those years making it harder to maintain.

By splitting up dependencies to one per line I noticed two unused
dependencies (hunspell, sqlite) that were removed in this change.

Also most lists are now sorted alphabetically, so reasoning about them
has become much easier.

Lists now use the same style for indentation and concat, and environment
variables are all defined in preConfigure as opposed to bare in the
derivation.

The object dir, firefox build directory, is now in a predictable
directory at ${pwd}/mozobj as opposed to ${pwd}/obj-@CONFIG_GUESS@,
saving us one wildcard expansion. This is also a good prepration for the
PGO build where we need to reference bits inside this directory.

Added a few comments and clarified others from what I've learned how the
firefox build works.
2022-03-23 17:03:42 +01:00
Martin Weinelt
178d447610
firefox: pass pciutils via wrapper instead of patching it 2022-03-23 17:03:42 +01:00
Martin Weinelt
51e5f33899
firefox: fix system libffi usage
Since Firefox 51 the --enable-system-ffi flag was renamed to
--with-systemd-ffi when it moved to the javascript toolkit parts. Rename
the flag accordingly and reintroduce the dependency.

mozbz#1294803
2022-03-23 17:03:41 +01:00
Martin Weinelt
08ea534e67
firefox: drop darwin support
Darwin support was marked broken in 2019 with Firefox 69 and has missed
therefore missed out and not been tested on the following 29 major
releases since.

It cannot be supported again without a darwin user stepping up to take
care and work on and test every major release, which hasn't happened
since I took over maintainership.

The recommendation of the people that tend to the firefox source build
is for darwin users to use firefox-bin instead.
2022-03-23 17:03:41 +01:00
Martin Weinelt
71d879b16b
firefox: drop pipewire from build inputs
Firefox does not support passing pipewire as a system library and
instead relies on a vendored copy it ships. We keep the flag because it
is tied into the wrapper, because we still need to have access to its
libraries at runtime.
2022-03-23 17:03:41 +01:00
Martin Weinelt
48eabf6838
firefox: drop hint regarding system cairo
Building with system cairo has been unsupported since Firefox 60
(mozbz#1432751) and the flag was removed in 2021 with Firefox 92
(mozbz#1722653).
2022-03-23 17:03:41 +01:00
Martin Weinelt
25e22d96ba
firefox: enable necko wifi scanner
Tied to the geolocation support flag. On Linux this uses the DBus
interface of NetworkManager to query visible accesspoints and relay them
to Mozilla location service in return for position approximation.
2022-03-23 17:03:41 +01:00
Martin Weinelt
e921e84e9d
firefox: don't set BUILD_OFFICIAL
It was removed in 2009 in favor of MOZILLA_OFFICIAL

mozbz#435923
2022-03-23 17:03:40 +01:00
Martin Weinelt
cfcc611cb4
firefox: use our own libwebp 2022-03-23 17:03:40 +01:00
Martin Weinelt
2f31fe95fd
firefox: rename patches arg to extraPatches
This is for consistency with other extra arguments that can be handed to
firefox common.nix.

Also pull the patch phase of the derivation closer together and use the
same list concat style as elsewhere.
2022-03-23 17:03:40 +01:00
Martin Weinelt
350f1345a7
firefox: unpin autoconf & icu, drop yasm
Let's not be the package that is stuck on arbitrarily old dependency
versions that should be removed anyway.
2022-03-23 17:03:40 +01:00
Martin Weinelt
3ec7f8d487
firefox: set consistent remoting name
With Firefox 98.0 the remoting name now depends on the update channel
(mozbz#1752418), which resulted in a weird app_id/wmclass of
`firefox-default`, which broke window association in GNOME and likely
other desktops.

Fixes: #165107
2022-03-23 02:13:20 +01:00
Martin Weinelt
06518a4991
firefox: 98.0.1 -> 98.0.2
https://www.mozilla.org/en-US/firefox/98.0.2/releasenotes/
2022-03-23 02:10:19 +01:00
squalus
3a46b6e1c4 librewolf: 97.0.2-1 -> 98.0-1 2022-03-16 10:46:22 -07:00
Vladimír Čunát
f48c1fda6b
Merge branch 'master' into staging-next
Conflict in pkgs/development/libraries/libvirt/default.nix
required manual adjustments.  The fetched patch is already in src.
I checked that libvirt builds.
2022-03-15 09:52:04 +01:00
Martin Weinelt
8dddd3f08a
Merge pull request #164056 from r-ryantm/auto-update/firefox-esr-91-unwrapped 2022-03-14 18:19:48 +01:00
Martin Weinelt
552cfc008a
firefox: 98.0 -> 98.0.1
https://www.mozilla.org/en-US/firefox/98.0.1/releasenotes/
2022-03-14 16:49:34 +01:00
github-actions[bot]
0ed928e4ab
Merge master into staging-next 2022-03-14 12:01:26 +00:00
R. Ryantm
7f25d6e079 firefox-esr-91-unwrapped: 91.7.0esr -> 91.7.1esr 2022-03-13 23:36:36 +00:00
Martin Weinelt
1530477650
firefox: enable RLBox sandboxing
https://hacks.mozilla.org/2021/12/webassembly-and-back-again-fine-grained-sandboxing-in-firefox-95/

Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2022-03-14 00:17:28 +01:00
github-actions[bot]
201cc2f89b
Merge master into staging-next 2022-03-09 00:02:05 +00:00
Martin Weinelt
ec6dcf1c99
Merge pull request #163197 from mweinelt/firefox98-srcbuild 2022-03-08 22:43:41 +01:00
Vladimír Čunát
f4e21f15d7
Merge #163194: firefox-bin: 97.0.2 -> 98.0
Also firefox-esr: 91.6.1esr -> 91.7.0esr
(but not plain `firefox`)
2022-03-08 20:57:37 +01:00
Martin Weinelt
99e731b05b
Merge pull request #162922 from squalus/librewolf 2022-03-08 19:12:40 +01:00
Martin Weinelt
7e5b346bd4 firefox: 97.0.2 -> 98.0
https://www.mozilla.org/en-US/firefox/98.0/releasenotes/
2022-03-07 20:54:11 +01:00
Martin Weinelt
0b59e7976a
firefox: prune maintainer list 2022-03-07 20:49:23 +01:00
Martin Weinelt
3c0a13d2d5
firefox-esr: 91.6.1esr -> 91.7.0esr
https://www.mozilla.org/en-US/firefox/91.7.0/releasenotes/
2022-03-07 20:49:19 +01:00
arcnmx
8fcde13ce7 firefox-bin: disable automatic updates 2022-03-06 07:54:10 -08:00
squalus
537bdc0f62 librewolf: 97.0.1-1 -> 97.0.2-1 2022-03-05 11:52:14 -08:00
Martin Weinelt
b2f3e4165e
firefox-esr: 91.6.0esr -> 91.6.1esr
https://www.mozilla.org/en-US/firefox/91.6.1/releasenotes/
https://www.mozilla.org/en-US/security/advisories/mfsa2022-09/

Fixes: CVE-2022-26485, CVE-2022-26486
2022-03-05 02:03:50 +01:00
Martin Weinelt
2dea8d9145
firefox: 97.0.1 -> 97.0.2
https://www.mozilla.org/en-US/firefox/97.0.2/releasenotes/
https://www.mozilla.org/en-US/security/advisories/mfsa2022-09/

Fixes: CVE-2022-26485, CVE-2022-26486
2022-03-05 02:03:07 +01:00