3
0
Fork 0
forked from mirrors/nixpkgs
Commit graph

847 commits

Author SHA1 Message Date
S. Nordin Abouzahra dbe008a52a firefox: remove python2 dependency
Python 2 is no longer required to build Firefox.
2021-01-13 08:06:48 -05:00
S. Nordin Abouzahra 7415d0589d firefox: overhaul LTO
Enable LTO support on Linux by default again.

Add patch to fix dependentlibs.list generation under LTO. This is
necessary for fixing firefox-wayland crashing when built with LTO.

Add makeFlags which set ar, ranlib, and nm to be llvm-ar, llvm-ranlib
and llvm-nm when building with llvm-based LTO. (bmo#1480005)
2021-01-13 08:06:48 -05:00
S. Nordin Abouzahra 40b4eb1c52 firefox: simplify NIX_LDFLAGS usage
This was required to solve the XPCOMGlueLoad error when building with
LTO. However, it turns out libxul.so is supposed to have some libraries
that are reported as not found by ldd. Setting the RPATH worked around
the error as it forced dependency resolution but failed to fix the real
issue of broken generation of dependentlibs.list.

The libraries that are reported as not found by ldd are supposed to be
dlopened through the logic found in nsXPCOMGlue.cpp. However since the
generation of dependentlibs.list is broken under LTO this did not
happen. Instead of pulling libwayland-client.so from the GTK libraries
it found the stub library first (libmozwayland.so). The stub library
causes (as it should) wl_display_connect to always return NULL which is
the cause of the segmentation fault and LTO breaking wayland support.

Remove the hardcoded path used for the XPCOMGlueLoad error workaround
in NIX_LDFLAGS. libunwind is still unfortunately needed. Once the issue
of the generation of dependentlibs.list being borked is fixed it should
remedy the wayland crash issue on LTO.
2021-01-13 08:06:47 -05:00
S. Nordin Abouzahra a277fca1c4 firefox: remove patchelf usage
Firefox has a number of optional dependencies that get dlopened.
Instead of using patchelf to set the RPATH use LD_LIBRARY_PATH.
The motivation for this is we already set LD_LIBRARY_PATH in the
wrapper on Linux.
2021-01-13 08:06:46 -05:00
S. Nordin Abouzahra 80e863c52c firefox: clean up optionals
Change `lib.optionals a [ b ]` to `lib.optional a b`.
2021-01-13 08:06:45 -05:00
S. Nordin Abouzahra 96c34702e9 firefox: restrict system NSPR workaround
It only affected FF80 so place an upper bound restriction. See
bmo#1661096 for details.

This fixes substituteStream() warnings about missing patterns which
appeared in the logs.
2021-01-13 08:06:45 -05:00
S. Nordin Abouzahra c6f113a3f4 firefox: remove superfluous NIX_CFLAGS_COMPILE
It was added for nspr and nss back in the 55.0.3 to 56.0 upgrade. It
also served as a workaround for an undeclared gio-unix-2.0 dependency.
Sometime afterwards nspr was removed, leaving just the two. Since then,
upstream has added a declaration for gio-unix-2.0 (in FF62). As for the
nss include it seemingly has no purpose since current firefox builds
with it removed.
2021-01-13 08:06:44 -05:00
Florian Franzen 70523a5e04 firefox-esr-78: 78.5.0 -> 78.6.1 2021-01-08 15:01:56 +01:00
Florian Franzen ba229388ca firefox: 84.0.1 -> 84.0.2 2021-01-08 14:44:04 +01:00
Vladimír Čunát 85c8f75393
Merge #107603: firefox*: 84.0 -> 84.0.1 2020-12-28 08:39:21 +01:00
Martin Weinelt 445cb38134
Merge pull request #106815 from mayflower/firefox-pipewire-fix-106812
firefox-wayland: fix ScreenCast #106812
2020-12-25 19:35:47 +01:00
ajs124 fee53b73a5 firefox: 84.0 -> 84.0.1 2020-12-25 17:56:16 +01:00
Christian Albrecht 5a7530e762
firefox-wayland: fix screen sharing using pipewire
After the fedora patches for screen sharing using pipewire got updated
for Firefox 83 (pipewire was inlined there), the nixpkgs buildInput
pipewire got stripped from the resulting firefox binary and so firefox
was unable to actually get the shared stream from the running pipewire
service.

Adding pipewire to the firefox binary with `patchelf --add-needed`
makes it atually get the stream from the service.

Fixes: #106812
2020-12-16 22:30:32 +01:00
ajs124 26e0135eed firefox: 83.0 -> 84.0 2020-12-16 17:49:31 +01:00
Luis Hebendanz 1c8c134972 firefox: wrapper updating an addon perserves addon settings 2020-12-15 22:02:34 +01:00
Martin Weinelt 6a163d2dea
Merge pull request #105894 from ryneeverett/firefox-xdg
firefox: Prefix $PATH with xdg_utils
2020-12-11 22:17:39 +01:00
ryneeverett 36436ee8ac firefox: Prefix $PATH with xdg_utils
This is required for certain URIs that require launching external
programs (e.g. mailto:, magnet:, or irc:) or setting the default browser
via xdg-settings.

Resolve #92751.

Comparable to #96922.
2020-12-07 15:43:53 +00:00
Andreas Rammhold dc6971ccf9 firefox: drop maintainership
After the recent wrapper and plugin purge outbreak where as the only
active listed maintainer of the package I didn't even get a chance to
comment (e.g. via comment or review request) I do not want to continue
maintaining this package anymore.
2020-12-06 21:24:50 +01:00
Luis Hebendanz d3a6a124cf firefox: fix wrapper removing existing addons by default 2020-12-04 17:53:14 +01:00
Jörg Thalheim 3cd6bc103d
Merge branch 'master' into firefox-nix-addon-support 2020-12-03 07:20:16 +00:00
Jörg Thalheim 9712bbdf74
firefoxaddon: formatting nitpicks 2020-12-02 09:53:53 +01:00
Luis Hebendanz cc421679e2
Update pkgs/applications/networking/browsers/firefox/wrapper.nix
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-12-02 09:40:54 +01:00
Luis Hebendanz 397597f731
Added fetchfirefoxaddon 2020-12-02 09:40:53 +01:00
Luis Hebendanz eedee46f2f
Adding nix firefox extension support 2020-12-02 09:40:52 +01:00
Andreas Rammhold afcbecc144
firefox: remove unused "imports"
These haven't been used in some time and there is no point in keeping
them around. They just clutter the file right now.
2020-11-30 10:26:45 +01:00
Andreas Rammhold cdff2a832c
firefox: add aarch64 SIMD patch
This patch fixes compilation on aarch64 that broke somewhere between the
upgrade to the lateste rustc and the firefox 82 to 83 upgrade.

The patch has been submitted upstream and can probably be removed on the
next version bump.
2020-11-30 10:24:46 +01:00
Andreas Rammhold 1d0225adc0
firefox: move the no-buildconfig-ffx76 patch into common
This patch has been used on all our flavors for some time now. We can
just move it to the common expression.
2020-11-30 10:09:05 +01:00
Frederik Rietdijk 29f1edf2f3 thunderbird, firefox, firefox-esr: set big-parallel
Firefox and Thunder time out nearly everytime. Hopefully giving them
more resources will prevent this from happening.
2020-11-29 11:45:08 +01:00
Guillaume Girol a7f06aa7b5
Merge pull request #103930 from yvesf/firefox-disable-lto-issue-reference
firefox: fix wayland-lto issue reference number
2020-11-24 20:36:54 +00:00
Andreas Rammhold ccb42da9a9
firefox-esr-78: 78.4.1esr -> 78.5.0esr 2020-11-18 20:13:23 +01:00
Andreas Rammhold fddfa3915c
firefox: 82.0.3 -> 83.0 2020-11-18 20:13:23 +01:00
Andreas Rammhold c1cfe8b84e
firefox: fallback to nss_3_53 when version is below 83 2020-11-18 20:13:23 +01:00
Andreas Rammhold 398cdab5ce
firefox: prepare pipewire patches for firefox 83 2020-11-18 20:13:23 +01:00
Yves Fischer 794b8f9a9e firefox: fix wayland-lto issue reference number 2020-11-15 20:22:04 +01:00
Andreas Rammhold d93868a92b
firefox-esr: 78.4.0esr -> 78.4.1esr 2020-11-15 14:36:01 +01:00
Andreas Rammhold 046002f472
firefox: 82.0.2 -> 82.0.3 2020-11-15 14:36:01 +01:00
Robert Hensing 739b762e56 Revert "firefox: set build timeout at eight hours"
The default timeout is 10h on Hydra currently, so this timeout
setting is pointless or counterproductive.
This commit seems to have been made in error
https://github.com/NixOS/nixpkgs/pull/96767#issuecomment-724104413

This reverts commit c57fedb14b.
2020-11-11 18:39:04 +01:00
Vladimír Čunát eb3fd61bb6
firefox-esr: fix build by using older rust
It's probably the same issue as with thunderbird.
2020-11-07 14:54:38 +01:00
Andreas Rammhold df2d47cd39
Merge pull request #102266 from NixOS/firefox-82.02
firefox{,-bin}: 80.0 -> 80.0.2
2020-11-01 19:34:37 +01:00
Andreas Rammhold f4490bb28a
firefox: 82.0 -> 82.0.2 2020-10-31 19:34:23 +01:00
Doron Behar c8a7e4da0a firefox/wrapper: Use plasma-browser-integration correctly
Don't rely on the attribute from the aliases.nix, as ofborg checks that
in PRs.
2020-10-30 20:37:58 +02:00
S. Nordin Abouzahra 57ea265674 firefox: place alsaLib in lib search patch
libcubeb has dlopened libraries for awhile now. In nixpkgs there was
support for the PulseAudio backend doing this, however the ALSA backend
support was missed and caused issue #79310 (no sound with ALSA). This
gives ALSA users the ability to hear sound once again.
2020-10-29 22:21:12 -04:00
Andreas Rammhold bca15c82d8 firefox: disable LTO by default due to segfaults with wayland
As discussed in #101429 firefox 82 started crashing when used with
wayland. A brief investigation showed that this appears to be rooted
within the LTO support that was recently added to the package. For the
time being, until someone figures out where the crashes are coming from,
we can just disable LTO.
2020-10-23 02:51:46 +02:00
Andreas Rammhold 6057ea490f firefox: 78.3.1esr -> 78.4.0esr 2020-10-20 16:29:09 +02:00
Andreas Rammhold ae2f5cccbb firefox: 81.0.2 -> 82.0 2020-10-20 16:29:07 +02:00
Andreas Rammhold b6b09ac7ae
Merge pull request #99922 from S-NA/wip/firefox-lto
firefox: add ltoSupport and enable it by default
2020-10-20 16:23:35 +02:00
taku0 560cc80818 firefox-esr: 78.3.0esr -> 78.3.1esr 2020-10-13 22:17:10 +09:00
taku0 05b955a133 firefox: 81.0 -> 81.0.2 2020-10-13 22:17:10 +09:00
S. Nordin Abouzahra aecd9ab1e4 firefox: disable LTO on Darwin
LTO in general is broken on Darwin (see #19312).
2020-10-08 23:29:13 -04:00
S. Nordin Abouzahra 214c833589 firefox: let LTO on Darwin select its own linker 2020-10-08 21:55:23 -04:00