Commit Graph

47 Commits

Author SHA1 Message Date
Martin Weinelt
e393b159ea openjdk: drop gtk2 support 2026-07-22 22:40:48 +02:00
Stefan Nürnberger
e09bc37026 openjdk11{, -headless}: fix UB in markOop
OpenJDK 11 misuses the low bits in pointers that have an assumed
alignment. This is undefined behavior and compiler optimizations break
the code at runtime, causing SIGSEGV in the garbage collector.

This was originally noticed for clang13, but GCC15 seems to
do similar optimizations now. The UB was removed in JDK14.

See https://bugs.openjdk.org/browse/JDK-8229258

This is a smaller version of the unsuccessful backport PR proposed upstream:
https://github.com/openjdk/jdk11u-dev/pull/1284

Removed the .github/workflows changes and everything from the markOop to
markWord rename and file move from the patch. I found a way to avoid most
of the `markOopDesc`->`markOop` renames with a typedef, and dropped the
changes to all architectures besides x86 and aarch64.

Fixes: https://github.com/nixos/nixpkgs/issues/526834
2026-06-22 19:05:28 +02:00
Ryan Omasta
5870c95dfa openjdk8{,_headless}: 8u472-b08 -> 8u502-b01 2026-05-12 05:49:10 -06:00
quantenzitrone
ace8e154a1 various: rename references from libXt to libxt
this shouldn't create any rebuilds
2026-02-06 00:29:25 +01:00
quantenzitrone
837ce569f8 various: rename references from libXtst to libxtst
this shouldn't create any rebuilds
2026-02-06 00:29:24 +01:00
quantenzitrone
f690155396 various: rename references from libXrender to libxrender
this shouldn't create any rebuilds
2026-02-06 00:29:19 +01:00
quantenzitrone
43cdce2c39 various: rename references from libXrandr to libxrandr
this shouldn't create any rebuilds
2026-02-06 00:29:06 +01:00
quantenzitrone
77837f424c various: rename references from libXi to libxi
this shouldn't create any rebuilds
2026-02-06 00:25:56 +01:00
quantenzitrone
5e4a1bdd9c various: rename references from libXinerama to libxinerama
this shouldn't create any rebuilds
2026-02-06 00:25:42 +01:00
quantenzitrone
f67b5966bb various: rename references from libXext to libxext
this shouldn't create any rebuilds
2026-02-06 00:25:36 +01:00
quantenzitrone
8382a53a4c various: rename references from libXcursor to libxcursor
this shouldn't create any rebuilds
2026-02-06 00:24:45 +01:00
quantenzitrone
55280fa564 various: rename references from libX11 to libx11
this shouldn't create any rebuilds
2026-02-06 00:24:34 +01:00
quantenzitrone
bf63af1851 libICE: rename references and deprecate alias
this shouldn't create any rebuilds
2026-02-04 22:59:00 +01:00
Maximilian Bosch
ebb1e59595 jdk8: fix build w/ glibc-2.42
Failing Hydra build: https://hydra.nixos.org/build/308320851

Upstream bug report: https://bugs.openjdk.org/browse/JDK-8354941
Only patching JDK8, newer versions received backports.
2026-01-03 20:39:42 +01:00
ghpzin
1b90b43e0c openjdk{8,11}: fix build with gcc15
- add "-std=gnu17" to `env.NIX_CFLAGS_COMPILE` for `openjdk8` and `openjdk11`

Similar to what archlinux and gentoo did:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65ea75ab7b558c1a7471eaf9ab542cee66631ea5
e2b65f230b
87ced23f8b

Fixes build failure of `openjdk8` with gcc15:
```
In file included from /build/source/hotspot/agent/src/os/linux/libproc_impl.h:30,
                 from /build/source/hotspot/agent/src/os/linux/salibelf.h:30,
                 from /build/source/hotspot/agent/src/os/linux/salibelf.c:25:
/build/source/hotspot/agent/src/os/linux/libproc.h:86:13: error: 'bool'
cannot be defined via 'typedef'
   86 | typedef int bool;
      |             ^~~~
/build/source/hotspot/agent/src/os/linux/libproc.h:86:13: note: 'bool'
is a keyword with '-std=c23' onwards
```

Fixes build failure of `openjdk11` with gcc15:
```
/build/source/src/java.base/unix/native/libnet/DefaultProxySelector.c:
In function 'getProxyByGProxyResolver':
/build/source/src/java.base/unix/native/libnet/DefaultProxySelector.c:389:16:
error: too many arguments to function 'g_proxy_resolver_lookup'; expected 0, have 4
  389 |     proxies = (*g_proxy_resolver_lookup)(resolver, uri, NULL, &error);
      |               ~^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
/build/source/src/java.base/unix/native/libnet/DefaultProxySelector.c:408:34:
error: too many arguments to function 'g_network_address_parse_uri'; expected 0, have 3
  408 |                                 (*g_network_address_parse_uri)(proxies[i], 0,
      |                                 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
```
2025-12-16 00:22:02 +03:00
Wolfgang Walther
c0ec79be1d maintainers: drop edwtjo
Reacted to 1 out of 384 maintainer pings in the least 180 days.
2025-12-09 21:09:02 +01:00
Galder Zamarreño
cfafc746ea openjfx23: drop 2025-11-04 15:36:51 +01:00
Galder Zamarreño
1c68856fbc temurin-{,jre-}bin-23: drop
Co-Authored-By: Leona Maroni <dev@leona.is>
2025-11-04 15:36:19 +01:00
Tom van Dijk
47513a1990 temurin-{,jre-}bin-24: drop, open{jdk,jfx}24: drop 2025-10-06 18:01:59 +02:00
Marie Ramlow
78c5ad9fa5 openjfx25: init at 25+29
`eclipse/updates/4.30/R-4.30-202312010110/plugins/org.eclipse.swt.gtk.linux.aarch64_3.124.200.v20231113-1355` has been manually added in deps.json,
as our gradle dependency lockfile generator currently cannot handle platform
specific dependencies like this one.
2025-09-26 17:21:21 +02:00
Marie Ramlow
1a86e6aba9 openjdk25: init at 25+36 2025-09-26 15:13:35 +02:00
Philip Taron
0e0e4c2c81 buildMavenPackage: use generate-cacerts.pl to populate trust store (#437528) 2025-09-17 13:44:42 +00:00
Florian Klink
55ef7dad42 buildMavenPackage: use generate-cacerts.pl to populate trust store
In some cases, NIX_SSL_CERT_FILE may point to variation of cacerts,
see https://github.com/NixOS/nixpkgs/issues/435467 for examples.

`keytool` is not happy with all certs in there, and requires some
special care.

Re-use the tooling we have to populate openjdk 8 with its
trust store, instead of our naïve approach.

The nixpkgs linter doesn't allow us to simply refer to the .pl file from
inside the openjdk directory, and re-exposing it only from the openjdk8
derivation as a passthru is also a bit annoying.

As suggested in PR review, expose the perl script via pkgs and use it
both for build-maven-package and the openjdk8 build.

Fixes #435467.
2025-09-17 16:14:30 +03:00
Matteo Pacini
9f30d96a72 openjdk8_headless: build fix 2025-09-02 21:32:13 +01:00
André Lima
1bc0ebeb67 jdk{8,11,17,23,24}: cleanup 2025-07-25 18:44:22 +01:00
André Lima
8f70ff81c0 jdk{8,11,17,23,24}: always enable __structuredAttrs 2025-07-25 18:40:54 +01:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
K900
3586f415ff jdk8: disable structuredAttrs
I don't know why this helps. I don't WANT to know why this helps.
This is a horrible hack.
2025-07-15 23:20:45 +03:00
Guillaume Girol
4f3fd5b70e openjdk: __structuredAttrs = true
needed for separateDebugInfo = true
2025-06-14 22:14:55 +02:00
FliegendeWurst
587cb48d7f jdk8: fix cross build 2025-05-13 10:57:56 +02:00
Tom van Dijk
62ae237a56 openjfx24: init at 24+29 2025-05-05 11:40:47 +02:00
Tom van Dijk
71dd692741 openjdk24: init at 24+36 2025-05-05 11:40:47 +02:00
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
FliegendeWurst
41f52f8a05 openjdk8: fix build with GCC 14 2024-11-27 08:55:49 +01:00
github-actions[bot]
d400562006 Merge staging-next into staging 2024-11-11 00:15:07 +00:00
github-actions[bot]
81f60ef90d Merge master into staging-next 2024-11-11 00:14:46 +00:00
Artturin
74dd18743f openjdk: Fix cross for most versions (#353952) 2024-11-09 21:21:20 +02:00
Tomo
c04d7170e0 team-list: establish java team
As discussed in #jdk:nixos.org on Matrix, the maintainers of the
Java ecosystem in Nixpkgs feel that a team for Java would be helpful.
2024-11-09 18:26:59 +00:00
Artturin
fc46586422 openjdk: Fix cross for most versions
`jdk8` cross still broken

Using `__spliced.depsBuildBuild` to reduce rebuilds/space usage because it does not seem to matter if
it's that or `buildHost`

`depsBuildBuild` `configure: error: Could not find required tool for BUILD_CC`

`zlib` in `nativeBuildInputs`

```
/build/source/src/java.base/share/native/libzip/Adler32.c:33:10: fatal error: zlib.h: No such file or directory
   33 | #include <zlib.h>
      |          ^~~~~~~~
compilation terminated.
make[4]: *** [lib/CoreLibraries.gmk:88: /build/source/build/linux-aarch64-server-release/buildjdk/support/native/java.base/libzip/Adler32.o] Error 1
make[4]: *** Waiting for unfinished jobs....
/build/source/src/java.base/share/native/libzip/CRC32.c:32:10: fatal error: zlib.h: No such file or directory
   32 | #include <zlib.h>
      |          ^~~~~~~~
compilation terminated.
/build/source/src/java.base/share/native/libzip/Deflater.c:35:10: fatal error: zlib.h: No such file or directory
   35 | #include <zlib.h>
      |          ^~~~~~~~
compilation terminated.
make[4]: *** [lib/CoreLibraries.gmk:88: /build/source/build/linux-aarch64-server-release/buildjdk/support/native/java.base/libzip/CRC32.o] Error 1
make[4]: *** [lib/CoreLibraries.gmk:88: /build/source/build/linux-aarch64-server-release/buildjdk/support/native/java.base/libzip/Deflater.o] Error 1
make[3]: *** [Main.gmk:191: java.base-libs] Error 2
make[2]: *** [make/Main.gmk:589: create-buildjdk-interim-image] Error 2
make[2]: *** Waiting for unfinished jobs....
ERROR: Build failed for target 'images' in configuration 'linux-aarch64-server-release' (exit code 2)
Stopping javac server
```
2024-11-08 21:59:38 +02:00
github-actions[bot]
bdce452570 Merge staging-next into staging 2024-10-25 12:06:07 +00:00
Steven Keuchel
b006420383 openjdk: add riscv64-linux to platforms 2024-10-25 10:15:04 +02:00
Emily
7bc545f5a8 openjdk{8,11,17,21,23}: remove obsolete version logic 2024-10-24 20:44:00 +01:00
Emily
fe4e4a1ae2 openjdk17: 17.0.12+7 -> 17.0.13+11
Drop an upstreamed patch, and update another for upstream changes.
2024-10-24 20:44:00 +01:00
Emily
bb161ee138 openjdk{8,11,17,21,23}: add update script 2024-10-24 15:04:56 +01:00
Emily
9bad08529e openjdk{8,11,17,21,23}: deduplicate into generic.nix 2024-10-24 15:04:55 +01:00
Emily
77acd709f9 openjdk: format generic.nix with nixfmt-rfc-style 2024-10-23 16:42:34 +01:00
Emily
a25242518c openjdk: copy latest version into generic.nix 2024-10-23 16:42:34 +01:00