corretto25: init at 25.0.1.9.1 (#472392)
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
{
|
||||
fetchFromGitHub,
|
||||
gradle_9,
|
||||
jdk25,
|
||||
lib,
|
||||
stdenv,
|
||||
rsync,
|
||||
pandoc,
|
||||
runCommand,
|
||||
testers,
|
||||
}:
|
||||
|
||||
let
|
||||
corretto = import ./mk-corretto.nix rec {
|
||||
inherit
|
||||
lib
|
||||
stdenv
|
||||
rsync
|
||||
runCommand
|
||||
testers
|
||||
;
|
||||
jdk = jdk25;
|
||||
gradle = gradle_9;
|
||||
version = "25.0.1.9.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "corretto";
|
||||
repo = "corretto-25";
|
||||
rev = version;
|
||||
hash = "sha256-eAjepqxp5LVQgP/HcxwwdjbXxy5jUOJC4HYntcHNX0o=";
|
||||
};
|
||||
extraNativeBuildInputs = [ pandoc ];
|
||||
};
|
||||
in
|
||||
corretto.overrideAttrs (
|
||||
final: prev: {
|
||||
patches = (prev.patches or [ ]) ++ [
|
||||
# See patches in openjdk/generic.nix.
|
||||
./remove_removal_of_wformat_during_test_compilation.patch
|
||||
];
|
||||
}
|
||||
)
|
||||
@@ -6,6 +6,7 @@
|
||||
stdenv,
|
||||
gradle,
|
||||
extraConfig ? [ ],
|
||||
extraNativeBuildInputs ? [ ],
|
||||
rsync,
|
||||
runCommand,
|
||||
testers,
|
||||
@@ -29,11 +30,14 @@ jdk.overrideAttrs (
|
||||
finalAttrs: oldAttrs: {
|
||||
inherit pname version src;
|
||||
|
||||
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [
|
||||
jdk
|
||||
gradle
|
||||
rsync
|
||||
];
|
||||
nativeBuildInputs =
|
||||
oldAttrs.nativeBuildInputs
|
||||
++ [
|
||||
jdk
|
||||
gradle
|
||||
rsync
|
||||
]
|
||||
++ extraNativeBuildInputs;
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
@@ -41,11 +45,25 @@ jdk.overrideAttrs (
|
||||
let
|
||||
extra_config = builtins.concatStringsSep " " extraConfig;
|
||||
in
|
||||
''
|
||||
(oldAttrs.postPatch or "")
|
||||
+ ''
|
||||
# The rpm/deb task definitions require a Gradle plugin which we don't
|
||||
# have and so the build fails. We'll simply remove them here because
|
||||
# they are not needed anyways.
|
||||
rm -rf installers/linux/universal/{rpm,deb}
|
||||
# have and so the build fails. We'll simply empty them here because
|
||||
# they are not needed anyways. The directories are kept because Gradle
|
||||
# still expects them.
|
||||
rm -rf installers/linux/universal/{rpm,deb}/{*,.*}
|
||||
|
||||
# These fixes are necessary as long as we use Gradle 9 to build
|
||||
# Corretto but upstream is not yet using it. I.e. as long as upstream
|
||||
# hasn't fixed compatibility with Gradle 9 issues.
|
||||
find /build/source/installers -type d -exec cp /build/source/version.txt {}/version.txt \;
|
||||
find /build/source/installers -name 'build.gradle' -exec sed -i '/fileMode =/d' {} \;
|
||||
for d in source pre-build; do
|
||||
# These subprojects (see settings.gradle) don't exist. Create them
|
||||
# here so that Gradle doesn't complain.
|
||||
mkdir /build/source/$d
|
||||
cp /build/source/version.txt /build/source/$d/version.txt
|
||||
done
|
||||
|
||||
# `/usr/bin/rsync` is invoked to copy the source tree. We don't have that.
|
||||
for file in $(find installers -name "build.gradle"); do
|
||||
@@ -74,6 +92,7 @@ jdk.overrideAttrs (
|
||||
file=$(find ./installers -name 'amazon-corretto-${version}*.tar.gz')
|
||||
tar -xzf $file -C $dir
|
||||
mv $dir/amazon-corretto-* $dir/jdk
|
||||
chmod +x $dir/jdk/bin/*
|
||||
''
|
||||
+ oldAttrs.postBuild or "";
|
||||
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
diff --git a/make/common/TestFilesCompilation.gmk b/make/common/TestFilesCompilation.gmk
|
||||
index fd1c54eaf..c1e240a19 100644
|
||||
--- a/make/common/TestFilesCompilation.gmk
|
||||
+++ b/make/common/TestFilesCompilation.gmk
|
||||
@@ -112,7 +112,7 @@ define SetupTestFilesCompilationBody
|
||||
CXXFLAGS := $$(TEST_CFLAGS) $$($1_CFLAGS) $$($1_CFLAGS_$$(name)), \
|
||||
LD_SET_ORIGIN := $$($1_LD_SET_ORIGIN), \
|
||||
LDFLAGS := $$($1_LDFLAGS) $$($1_LDFLAGS_$$(name)), \
|
||||
- DISABLED_WARNINGS_gcc := format undef unused-but-set-variable \
|
||||
+ DISABLED_WARNINGS_gcc := undef unused-but-set-variable \
|
||||
unused-const-variable unused-function unused-value \
|
||||
unused-variable, \
|
||||
DISABLED_WARNINGS_clang := format-nonliteral \
|
||||
@@ -4151,6 +4151,7 @@ with pkgs;
|
||||
corretto11 = javaPackages.compiler.corretto11;
|
||||
corretto17 = javaPackages.compiler.corretto17;
|
||||
corretto21 = javaPackages.compiler.corretto21;
|
||||
corretto25 = javaPackages.compiler.corretto25;
|
||||
|
||||
inherit (callPackage ../development/compilers/crystal { })
|
||||
crystal_1_14
|
||||
|
||||
@@ -47,6 +47,7 @@ in
|
||||
corretto11 = callPackage ../development/compilers/corretto/11.nix { };
|
||||
corretto17 = callPackage ../development/compilers/corretto/17.nix { };
|
||||
corretto21 = callPackage ../development/compilers/corretto/21.nix { };
|
||||
corretto25 = callPackage ../development/compilers/corretto/25.nix { };
|
||||
|
||||
openjdk8 = mkOpenjdk "8";
|
||||
openjdk11 = mkOpenjdk "11";
|
||||
|
||||
Reference in New Issue
Block a user