Commit Graph

83 Commits

Author SHA1 Message Date
teutat3s
b48b3d94a9 electron-source: fix build with node_openssl_path
using boringssl. It has been backported to version 41 and 42.
2026-07-25 09:12:16 +02:00
teutat3s
450726460d electron-source.electron_43: init at 43.1.0
- Changelog: https://github.com/electron/electron/releases/tag/v43.0.0
- Changelog: https://github.com/electron/electron/releases/tag/v43.1.0

- Diff: https://github.com/electron/electron/compare/refs/tags/v43.0.0...v43.1.0

Synced `gnFlags` with https://github.com/electron/electron/blob/v43.1.0/build/args/all.gn and removed all flags that are no longer in use by either electron 41, 42, 43.
- `v8_builtins_profiling_log_file` was removed in 29750dda08 (and backported for all electron versions)
- `dawn_use_built_dxc` was removed in 9b740594fb
- `clang_unsafe_buffers_paths` was removed in 041ada1586
- `enterprise_cloud_content_analysis` was removed in 76c5257fea
- `node_openssl_path` using boringssl was added in version 43 e4a5c5a3b9
2026-07-17 08:35:07 +02:00
teutat3s
f995734340 electron-source.electron_40: remove
electron 40 is EOL.
2026-07-14 16:52:40 +02:00
TomaSajt
ec419f35be electron-source: remove unused patches 2026-06-01 23:49:08 +02:00
Yureka
5de6a24a66 electron: update.py: fetch missing-hashes
Co-authored-by: teutat3s <10206665+teutat3s@users.noreply.github.com>
2026-05-17 18:49:39 +02:00
Dimitar Nestorov
104ae1c350 electron: fix for Yarn 4.14 2026-05-09 10:59:38 +03:00
teutat3s
889f33c909 electron_40: fix build 2026-04-09 18:40:54 +02:00
teutat3s
f5b75578b4 electron_41: remove no longer needed patch
Upstream removed skia patch_dir in 21f9474f4f
2026-04-09 18:27:00 +02:00
Yureka
75f3ff834f electron_39: fix build 2026-03-14 21:04:18 +01:00
Yureka
31309a4d30 electron_41: fix build 2026-03-14 21:03:24 +01:00
Yureka
4fb0462ecc electron-source.electron_37: remove 2026-02-02 16:26:55 +01:00
TomaSajt
707e8a2736 electron-source.electron_{37,38,39}: updates, use yarn-berry 2026-01-21 14:31:48 +01:00
Ihar Hrachyshka
a269d900c4 treewide: remove remaining meta = with lib; 2025-12-14 15:16:00 -05:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Yureka
8ac5939e56 electron_38: fix build with Rust 1.91 2025-11-15 01:28:01 +01:00
Yureka
1665d3827b electron_38: fix build with Rust 1.90.0 2025-11-07 07:12:51 +01:00
Yureka
4a781922b3 electron-source.electron_36: remove 2025-11-04 15:36:01 +01:00
Yureka
4dc9b83879 electron_39: fix build 2025-11-02 14:12:10 +01:00
teutat3s
bbfed5a734 team-list: add electron team 2025-10-16 18:43:39 +02:00
Luna Nova
5af48ce05c electron: fix LLVM 21+ build by backporting patch
chromium <139's histogram_macros_internal.h contains a UB static cast
that causes a compile error for LLVM 21+

return static_cast<Enum>(base::to_underlying(Enum::kMaxValue) + 1);
→
integer value 4 is outside the valid range of values [0, 3] for the enumeration type 'LandlockState'
→
error: static assertion expression is not an integral constant expression
   UMA_HISTOGRAM_ENUMERATION("Security.Sandbox.LandlockState", landlock_state);

applying upstream fix from https://chromium-review.googlesource.com/c/chromium/src/+/6633292

A static cast to an enum type that is outside the range of enum values
was defined to be undefined behavior in February 2014 in
https://cplusplus.github.io/CWG/issues/1766.html
2025-09-22 19:08:30 -07:00
teutat3s
ccf4fe5b84 electron-source.electron_38: init at 38.0.0
https://github.com/electron/electron/releases/tag/v38.0.0
2025-09-10 11:16:11 +02:00
Yureka
283050e8c7 electron: fix build with rust 1.89.0 2025-08-19 20:03:47 +02:00
Yureka
4f0917ea13 electron: clean up unused patches 2025-08-19 12:18:27 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Yureka
3ed8e14f90 electron: fix building with rust 1.87 2025-06-07 15:31:07 +02:00
Yureka
65540e5447 electron: distinguish between revs and tags 2025-05-14 22:15:26 +02:00
teutat3s
8d92119c54 electron-source.electron_36: init at 36.1.0
- Changelog: https://github.com/electron/electron/releases/tag/v36.0.0
- Changelog: https://github.com/electron/electron/releases/tag/v36.0.1
- Changelog: https://github.com/electron/electron/releases/tag/v36.1.0
2025-05-04 18:05:36 +02:00
K900
aece6a0c1f Merge remote-tracking branch 'origin/master' into staging-next 2025-04-11 21:17:42 +03:00
Sandro Jäckel
6da0232e3c electron: simplify usage of headers 2025-04-10 21:41:09 +02:00
Emily
774ee2926c [staging-next] electron_{33,34}: fix build by adding patch to use adler2 lib (#396606) 2025-04-07 16:20:16 +02:00
TomaSajt
c22285ed1e electron_{33,34}: fix build by adding patch to use adler2 lib 2025-04-06 22:19:48 +02:00
Yureka
fbca92b00c electron: use gclientUnpackHook from gclient2nix 2025-04-05 10:06:16 +02:00
teutat3s
506d38b432 electron-source: try to avoid log spam
As a precaution and to avoid problems with hydra builds that had to
be fixed in the past. References: ce04dc5 (#378988) and 3f514d3.
2025-03-23 18:29:36 +01:00
teutat3s
5213e7eef4 electron: node_module_version should be int
FAILED: gen/third_party/electron_node/config.gypi
python3 ../../third_party/electron_node/tools/generate_config_gypi.py gen/third_party/electron_node/config.gypi --out-dir . --dep-file gen/third_party/electron_node/generate_config_gypi.d --node-gn-path //third_party/electron_node
Traceback (most recent call last):
  File "/build/src/out/Release/../../third_party/electron_node/tools/generate_config_gypi.py", line 113, in <module>
    main()
  File "/build/src/out/Release/../../third_party/electron_node/tools/generate_config_gypi.py", line 105, in main
    f.write(repr(translate_config(args.out_dir, config, v8_config)))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build/src/out/Release/../../third_party/electron_node/tools/generate_config_gypi.py", line 62, in translate_config
    'node_module_version': int(config['node_module_version']),
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '"133"'

Co-authored-by: Ljuzig <diamond.bertelli@gmail.com>
2025-03-23 18:29:36 +01:00
teutat3s
112942f614 electron: 35+ header generation needs ELECTRON_OUT_DIR
https://github.com/electron/electron/pull/44657
e4bd0cd3dc/script/node/generate_node_headers.py (L34-L39)

Co-authored-by: TomaSajt <62384384+TomaSajt@users.noreply.github.com>
Co-authored-by: Emily <git@emilylange.de>
2025-03-23 18:29:35 +01:00
teutat3s
eb66169545 electron: remove duplicate use_qt flag
We already set it in chromium/common.nix, see 062eb42eba.
2025-03-23 18:29:35 +01:00
teutat3s
d88a16d926 electron-source: cleanup unused patch for electron 32
This patch is no longer needed, because we don't build electron 32 from
source anymore since #383660.
2025-03-12 11:28:32 +01:00
TomaSajt
6fa5cb30e5 electron{,-bin}: add tomasajt as a maintainer 2025-03-07 17:15:38 +01:00
emilylange
c2488574f9 electron-source.electron_32: remove as it's EOL
d6f4982522/docs/tutorial/electron-timelines.md
2025-03-06 13:30:27 +01:00
emilylange
67866f730b electron-source.electron_32: 32.3.1 -> 32.3.2
- Changelog: https://github.com/electron/electron/releases/tag/v32.3.2
- Diff: https://github.com/electron/electron/compare/refs/tags/v32.3.1...v32.3.2
- Fixes CVE-2025-0611
- Fixes CVE-2025-0612
- Fixes CVE-2025-0999
2025-03-03 19:31:50 +01:00
emilylange
3f514d36a7 electron_32: fix log spam when building on x86_64-linux as well
Follow-up to ce04dc5edc.

Turns out the very same log spam is happening on x86_64-linux and not
just on aarch64-linux but hydra.nixos.org does not enforce the log limit
of 64mb for some reason.

I should have figured.
2025-02-15 20:37:12 +01:00
emilylange
ce04dc5edc electron_32: fix log spam when building on aarch64-linux
clang-19 deprecation warnings on aarch64-linux specifically are causing
the log grow beyond h.n.o's log limit of 64mb, which in turn causes the
build to get killed.

To work around this, likely until electron_32 is EOL in a month, we
simply disable those deprecation warnings. We still have another things
causing unnecessary logs, but this should be good enough for now.

https://hydra.nixos.org/build/283952243
2025-02-03 02:11:37 +01:00
emilylange
cd1c17d82b electron-source.electron_31: remove as it's EOL
2745771a22/docs/tutorial/electron-timelines.md

Ref: aa01edd16171b78d740abcbe81ca5ad9ba44576b
2025-01-15 12:55:05 +01:00
TomaSajt
e045b360f3 electron-source: copy node_headers.tar to new 'header' output 2025-01-06 16:48:57 +01:00
emilylange
0e3cc16329 electron_31: fix build after llvm bump
This fixes the following build errors:

~~~
[2607/50420] CXX obj/third_party/perfetto/src/tracing/client_api_without_backends/track_event_legacy.o
FAILED: obj/third_party/perfetto/src/tracing/client_api_without_backends/track_event_legacy.o
clang++ -MD -MF [...]
In file included from ../../third_party/perfetto/src/tracing/track_event_legacy.cc:17:
In file included from ../../third_party/perfetto/include/perfetto/tracing/track_event_legacy.h:26:
In file included from ../../third_party/perfetto/include/perfetto/tracing/track_event.h:20:
../../third_party/perfetto/include/perfetto/tracing/internal/track_event_data_source.h:331:20: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
  331 |     Base::template Trace([](typename Base::TraceContext ctx) { ctx.Flush(); });
      |                    ^
[...]
6 errors generated.
~~~

and

~~~
FAILED: obj/electron/electron_lib/keyboard_util.o
clang++ -MD -MF [...]
../../electron/shell/common/keyboard_util.cc:19:30: error: constexpr function never produces a constant expression [-Winvalid-constexpr]
   19 | constexpr CodeAndShiftedChar KeyboardCodeFromKeyIdentifier(
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../electron/shell/common/keyboard_util.cc:111:33: note: non-constexpr function 'find' cannot be used in a constant expression
  111 |   if (auto* const iter = Lookup.find(str); iter != Lookup.end())
      |                                 ^
../../base/containers/flat_tree.h:310:18: note: declared here
  310 |   const_iterator find(const Key& key) const;
      |                  ^
1 error generated.
~~~

This is happening since staging has been merged into master, which
included both a rustc and llvm bump.

Note that we inherit the llvm that rustc exposes.

Co-Authored-By: K900 <me@0upti.me>
2024-12-29 16:25:42 +01:00
Silvan Mosberger
84d4f874c2 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 78e9caf153
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00
Wolfgang Walther
217d3132cf various: remove unused substituteAll imports 2024-12-01 14:25:56 +01:00
Reno Dakota
52bf1163fa treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use
`lib.getLib` to access the `lib` output.
2024-11-07 10:27:41 +00:00
Tristan Ross
7ae81f12f9 electron_30-bin: mark as insecure because it's EOL, electron-source.electron_30: remove as it's EOL (#350549) 2024-10-30 19:52:23 -07:00
emilylange
87b49e9595 electron-source.electron_30: remove as it's EOL 2024-10-22 21:23:33 +02:00