Skip to content

Commit 544ef31

Browse files
committed
openjdk: port to gnumake-4.4.1
Revert e6d4aec "revert back to gnumake-4.4 as gnumake-4.4.1 breaks the build" and aply the fix from openjdk/jdk#12992
1 parent 6ab299b commit 544ef31

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

  • pkgs/development/compilers/openjdk

pkgs/development/compilers/openjdk/17.nix

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
{ stdenv, lib, fetchurl, fetchFromGitHub, bash, pkg-config, autoconf, cpio
1+
{ stdenv, lib, fetchurl, fetchpatch, fetchFromGitHub, bash, pkg-config, autoconf, cpio
22
, file, which, unzip, zip, perl, cups, freetype, harfbuzz, alsa-lib, libjpeg, giflib
33
, libpng, zlib, lcms2, libX11, libICE, libXrender, libXext, libXt, libXtst
44
, libXi, libXinerama, libXcursor, libXrandr, fontconfig, openjdk17-bootstrap
55
, setJavaClassPath
66
, headless ? false
77
, enableJavaFX ? false, openjfx
88
, enableGnome2 ? true, gtk3, gnome_vfs, glib, GConf
9-
# Hold back make-4.4 as 4.4.1 breaks the build:
10-
# https://github.com/NixOS/nixpkgs/issues/219513
11-
, gnumake44
129
}:
1310

1411
let
@@ -29,7 +26,7 @@ let
2926
sha256 = "sha256-zPpINi++3Ct0PCwlwlfhceh/ploMkclw+MgeI9dULdc=";
3027
};
3128

32-
nativeBuildInputs = [ gnumake44 pkg-config autoconf unzip ];
29+
nativeBuildInputs = [ pkg-config autoconf unzip ];
3330
buildInputs = [
3431
cpio file which zip perl zlib cups freetype harfbuzz alsa-lib libjpeg giflib
3532
libpng zlib lcms2 libX11 libICE libXrender libXext libXtst libXt libXtst
@@ -61,6 +58,14 @@ let
6158
url = "https://git.alpinelinux.org/aports/plain/community/openjdk17/FixNullPtrCast.patch?id=41e78a067953e0b13d062d632bae6c4f8028d91c";
6259
sha256 = "sha256-LzmSew51+DyqqGyyMw2fbXeBluCiCYsS1nCjt9hX6zo=";
6360
})
61+
62+
# Fix build for gnumake-4.4.1:
63+
# https://github.com/openjdk/jdk/pull/12992
64+
(fetchpatch {
65+
name = "gnumake-4.4.1";
66+
url = "https://github.com/openjdk/jdk/commit/9341d135b855cc208d48e47d30cd90aafa354c36.patch";
67+
hash = "sha256-Qcm3ZmGCOYLZcskNjj7DYR85R4v07vYvvavrVOYL8vg=";
68+
})
6469
] ++ lib.optionals (!headless && enableGnome2) [
6570
./swing-use-gtk-jdk13.patch
6671
];

0 commit comments

Comments
 (0)