Skip to content

Commit 7b53fc5

Browse files
committed
openjdk11: 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 544ef31 commit 7b53fc5

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

  • pkgs/development/compilers/openjdk

pkgs/development/compilers/openjdk/11.nix

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
{ stdenv, lib, fetchFromGitHub, bash, pkg-config, autoconf, cpio, file, which, unzip
1+
{ stdenv, lib, fetchpatch, fetchFromGitHub, bash, pkg-config, autoconf, cpio, file, which, unzip
22
, zip, perl, cups, freetype, harfbuzz, alsa-lib, libjpeg, giflib, libpng, zlib, lcms2
33
, libX11, libICE, libXrender, libXext, libXt, libXtst, libXi, libXinerama
44
, libXcursor, libXrandr, fontconfig, openjdk11-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
@@ -28,7 +25,7 @@ let
2825
sha256 = "sha256-QGOpMIrWwOtIcUY/CLbTRDvcVTG2xioZu46v+n+IIQ4=";
2926
};
3027

31-
nativeBuildInputs = [ gnumake44 pkg-config autoconf unzip ];
28+
nativeBuildInputs = [ pkg-config autoconf unzip ];
3229
buildInputs = [
3330
cpio file which zip perl zlib cups freetype harfbuzz alsa-lib libjpeg giflib
3431
libpng zlib lcms2 libX11 libICE libXrender libXext libXtst libXt libXtst
@@ -43,6 +40,14 @@ let
4340
./currency-date-range-jdk10.patch
4441
./increase-javadoc-heap.patch
4542
./fix-library-path-jdk11.patch
43+
44+
# Fix build for gnumake-4.4.1:
45+
# https://github.com/openjdk/jdk/pull/12992
46+
(fetchpatch {
47+
name = "gnumake-4.4.1";
48+
url = "https://github.com/openjdk/jdk/commit/9341d135b855cc208d48e47d30cd90aafa354c36.patch";
49+
hash = "sha256-Qcm3ZmGCOYLZcskNjj7DYR85R4v07vYvvavrVOYL8vg=";
50+
})
4651
] ++ lib.optionals (!headless && enableGnome2) [
4752
./swing-use-gtk-jdk10.patch
4853
];

0 commit comments

Comments
 (0)