Commit Graph

278 Commits

Author SHA1 Message Date
github-actions[bot] 69117017f0
Merge master into staging-next 2024-04-28 18:01:03 +00:00
Martin Weinelt cf1efbbe19
buildMozillaMach: stop deleting the configure script
They're not autogenerated files any longer, and have been shipped as part
of the source tree since roughly Aug 2022.

Related: mozbz#1787977 ("Include configure in the tree")
Closes: #306937
2024-04-28 19:13:45 +02:00
Martin Weinelt 3faef42565
buildMozillaMach: stop polluting the hg tree
Moves the MOZ_OBJDIR into a path that is ignored through .hgignore, and
the MOZBUILD_STATE_PATH outside of the source root.

Closes: #306937
2024-04-28 16:13:25 +02:00
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
Nick Cao 034f0dbf72
firefox: enable webrtcSupport on riscv 2024-03-25 18:00:58 -04:00
a-n-n-a-l-e-e ce789e7e35
llvmPackages_{12,13,14,15,16,17,git}.{libcxx,libcxxabi}: merge libcxxabi into libcxx (#292043)
- merge libcxxabi into libcxx for LLVM 12, 13, 14, 15, 16, 17, and git.
- remove the link time workaround `-lc++ -lc++abi` from 58 packages as it is no longer required.
- fixes https://github.com/NixOS/nixpkgs/issues/166205
- provides alternative fixes for. https://github.com/NixOS/nixpkgs/issues/269548 https://github.com/NixOS/nix/issues/9640
- pkgsCross.x86_64-freebsd builds work again

This change can be represented in 3 stages
1. merge libcxxabi into libcxx -- files: pkgs/development/compilers/llvm/[12, git]/{libcxx, libcxxabi}
2. update stdenv to account for merge -- files: stdenv.{adapters, cc.wrapper, darwin}
3. remove all references to libcxxabi outside of llvm (about 58 packages modified)

### merging libcxxabi into libcxx
- take the union of the libcxxabi and libcxx cmake flags
- eliminate the libcxx-headers-only package - it was only needed to break libcxx <-> libcxxabi circular dependency
- libcxx.cxxabi is removed. external cxxabi (freebsd) will symlink headers / libs into libcxx.
- darwin will re-export the libcxxabi symbols into libcxx so linking `-lc++` is sufficient.
- linux/freebsd `libc++.so` is a linker script `LINK(libc++.so.1, -lc++abi)` making `-lc++` sufficient.
- libcxx/default.nix [12, 17] are identical except for patches and `LIBCXX_ADDITIONAL_LIBRARIES` (only used in 16+)
- git/libcxx/defaul.nix  does not link with -nostdlib when useLLVM is true so flag is removed. this is not much different than before as libcxxabi used -nostdlib where libcxx did not, so libc was linked in anyway.

### stdenv changes
- darwin bootstrap, remove references to libcxxabi and cxxabi
- cc-wrapper: remove c++ link workaround when libcxx.cxxabi doesn't exist (still exists for LLVM pre 12)
- adapter: update overrideLibcxx to account for a pkgs.stdenv that only has libcxx

### 58 package updates
- remove `NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}` as no longer needed
- swift, nodejs_v8 remove libcxxabi references in the clang override

https://github.com/NixOS/nixpkgs/pull/292043
2024-03-11 03:53:37 -07:00
Martin Weinelt bad0e53e48
Merge pull request #269817 from Infinidoge/fix/firefox-wrapper
buildMozillaMach: addon signing and sideloading fixes
2024-02-08 22:19:55 +01:00
Martin Weinelt c44ca8f999
firefox-unwrapped: 122.0 -> 122.0.1
https://www.mozilla.org/en-US/firefox/122.0.1/releasenotes/

mozbz#1875201 is wontfix for 122
2024-02-06 01:57:43 +01:00
Martin Weinelt 8e0ce57c63
buildMozillaMach: fix vp8/vp9 WebRTC video support
The WebRTC parts of Firefox 122.0 are unconditionally linked against the
vendored libvpx that they ship with This lead to an ABI mismatch¹, when
building with --with-system-libvpx, since our libvpx version differs.

An upstream fix is expected to be shipped in Firefox 122.0.1, which is
due in the next few days.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1875201#c11
2024-02-04 14:15:22 +01:00
Martin Weinelt e518462e6f
buildMozillaMach: use fixed build date
This makes building w/o PGO reproducible.
2024-01-31 02:31:56 +01:00
Martin Weinelt 72b7e5491b
buildMozillaMach: fix pgo configure flags
This broke when support for opt-in __structuredAttrs was added in
238a6053.

Fixes: #283563
2024-01-28 03:04:12 +01:00
Yureka 3219a1f449 firefox: move page size patch to buildMozillaMach 2023-11-28 23:21:37 +01:00
Martin Weinelt 3303ff548b
buildMozillaMach: prune patches
The oldest version we support is at 115 right now, so we can drop
everything older than that.
2023-11-28 03:58:48 +01:00
Martin Weinelt a72f24ef3b
buildMozillaMach: replace dbus workaround with upstream patch
https://bugzilla.mozilla.org/show_bug.cgi?id=1864083

The fix was targeted for Firefox 122.
2023-11-28 02:49:47 +01:00
Martin Weinelt a2502f79d1
buildMozillaMach: update no-buildconfig patch for 121+ 2023-11-27 15:45:37 +01:00
Infinidoge 491072e797
buildMozillaMach: allow overriding requireSigning/allowAddonSideload 2023-11-25 02:30:25 -05:00
Infinidoge 759a7cc50e
buildMozillaMach: passthru requireSigning/allowAddonSideload
Fixes wrapper-installed addons, which previously rejected valid browser configurations
2023-11-25 01:56:50 -05:00
Martin Weinelt c423e3dda7
Merge pull request #244591 from Infinidoge/fix/firefox-signing
buildMozillaMach: add options to disable signing requirement and to enable addon sideloading
2023-11-19 21:13:16 +01:00
Infinidoge 101fc1b99a
buildMozillaMach: support addon sideloading 2023-11-14 09:46:20 -05:00
Infinidoge c4c81ac8a2
buildMozillaMach: support disabling extension signing enforcement
Previously, derivations specified the environment variable themselves,
which did not actually disable signing enforcement.
2023-11-14 09:46:13 -05:00
Martin Weinelt 6f0c86b324
buildMozillaMach: set include path for dbus from version 120
Upstream issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1864083
2023-11-10 22:38:51 +01:00
Christoph Heiss e51dee59de
buildMozillaMach: allow distinct source and package versions
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-10-12 17:25:52 +02:00
Vladimír Čunát 82527892e4 firefox-esr: use nss_esr as intended
Firefox 115 is meant against nss 3.90, as you can see e.g. in
https://hg.mozilla.org/releases/mozilla-release/file/FIREFOX_115_0_3_RELEASE/security/nss/TAG-INFO
2023-09-06 17:08:52 +02:00
linsui ff526a0699 firefox: remove app.partner.nixos 2023-07-22 13:05:32 +08:00
Martin Weinelt 6ca03804b6
firefox-esr-102-unwrapped: 102.12.0esr -> 102.13.0esr
https://www.mozilla.org/en-US/firefox/102.13.0/releasenotes/
https://www.mozilla.org/en-US/security/advisories/mfsa2023-23/

Fixes: CVE-2023-37201, CVE-2023-37202, CVE-2023-37207, CVE-2023-37208,
       CVE-2023-37211
2023-07-04 17:29:07 +02:00
figsoda 7aab14cef1 buildMozillaMach: don't use lib.optional with a list 2023-06-22 19:43:51 -04:00
Artturi 920b833494
Merge pull request #238459 from SuperSamus/vm.max_map_count 2023-06-22 11:37:48 +03:00
Martino Fontana e1a6c85c2b nixos/sysctl: raise default vm.max_map_count to 1048576 2023-06-21 19:25:42 +02:00
Martin Weinelt e13e01a80a
buildMozilaMach: use latest icu from 115.0
The beta and devedition browsers already require icu73, so we need to
relax this pin again.

firefox-beta-unwrapped> 0:24.92 ERROR: Requested 'icu-i18n >= 73.1' but version of icu-i18n is 72.1
2023-06-20 22:41:20 +02:00
Kirill Radzikhovskyy 549e40bff0
buildMozillaMach: pin icu to 72
Fixes an issue where the timezone would not be correctly read, due to a
behavior change in icu 73, where the path to the timezone is now read
using realpath instead of readlink.

This leads lookups for /etc/localtime into the nix store, instead of
into /etc/zoneinfo, which gets blocked by sandboxing.

Reported upstream at https://bugzilla.mozilla.org/show_bug.cgi?id=1839287.
2023-06-20 16:08:13 +02:00
K900 a28218fdca buildMozillaMach: cherry-pick patches to fix ESR builds 2023-06-17 16:44:15 +03:00
Martin Weinelt c972d6df96
Merge pull request #217930 from SuperSandro2000/betterbird
betterbird: init at 102.8.0-bb30
2023-05-05 01:15:42 +02:00
Martin Weinelt 365041415b
buildMozillaMach: Apply musl compat patch up to 114.0
A slightly modified version landed in 114.0a1.

Related: mozbz#1830040
2023-04-28 20:28:54 +02:00
Yureka 7a32a141db firefox: fix indentation 2023-04-26 16:30:41 +02:00
Yureka bad5e4f489 firefox: enable pgo on musl 2023-04-26 16:30:41 +02:00
Yureka 94ccd5fdf8 pkgsMusl.firefox: fix build 2023-04-26 16:30:41 +02:00
Martin Weinelt b979f3be1f
firefox-unwrapped: Apply patch for mozbz#1803016
https://bugzilla.mozilla.org/show_bug.cgi?id=1803016

Resolves crashes on wayland, when the either component of the window size
wouldn't be divisible by the desktop scaling.

Unfortunately marked wontfix for Firefox 112, so we apply this patch
instead.

Closes: #226539
2023-04-19 14:41:28 +02:00
Martin Weinelt 55aa1bc362
firefox-esr-102-unwrapped: Drop obsolete rust-cbindgen patch
We don't have any consumer with a version older than 102.6.0 anymore.
2023-04-19 14:41:10 +02:00
Nick Cao 499e04ee3f
firefox-unwrapped: disable lto, crashreporter and webrtc support on RISC-V as they are not supported yet 2023-03-30 23:24:40 +08:00
jopejoe1 a74f2234b4 buildMozillaMach: add branding option to change the path where the branding is located 2023-03-23 19:10:48 +01:00
Martin Weinelt 9e4d592114
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/python-modules/eve/default.nix
2023-03-14 16:49:37 +01:00
Martin Weinelt ec8a9cddc8
firefox-unwrapped: 110.0.1 -> 111.0
https://www.mozilla.org/en-US/firefox/111.0/releasenotes/

Fixes: CVE-2023-28159, CVE-2023-25748, CVE-2023-25749, CVE-2023-25750,
       CVE-2023-25751, CVE-2023-28160, CVE-2023-28164, CVE-2023-28161,
       CVE-2023-28162, CVE-2023-25752, CVE-2023-28176, CVE-2023-28177
2023-03-14 16:00:36 +01:00
Sandro Jäckel 6b6f3f188c
buildMozillaMach: passthru application, extraPatches to be later used by betterbird package 2023-03-08 12:49:06 +01:00
Martin Weinelt 5aeab34845
Merge pull request #218301 from rrbutani/fix/separate-debuginfo-with-lld
Fix `separate-debug-info` with lld
2023-03-04 00:43:26 +00:00
Weijia Wang 11b07d930d firefox, spidermonkey: remove NIX_LDFLAGS
This commit reverts #210859, since aarch64-linux now uses GCC 12 by default.
2023-03-02 08:02:06 +02:00
Rahul Butani 45e58731b8
firefox: remove the `separate-debug-info` workaround
With the previous two commits, lld/LLVM stdenvs should now produce
`build-id`s that satisify `separate-debug-info.sh`
2023-02-25 12:50:23 -06:00
github-actions[bot] 578f1ba854
Merge master into staging-next 2023-01-26 18:01:29 +00:00
Weijia Wang 52a28708b8 treewide: mark #201254 2023-01-26 15:11:41 +01:00
Artturin fe1c7a1945 treewide: remove usages of header and stopNest
they're obsolete
2023-01-16 00:08:12 +02:00
Vladimír Čunát cdf02835eb
firefox: fixup build on aarch64-linux
It's the issue with old libgcc_s propagated via our glibc package; e.g.
https://github.com/NixOS/nixpkgs/pull/209113
2023-01-15 09:13:34 +01:00