Skip to content

Commit

Permalink
8287754: Update jib GNU make dependency on Windows to latest cygwin b…
Browse files Browse the repository at this point in the history
…uild

Backport-of: af2de975cbc46ad91c736b110a2212cd32ba60a7
  • Loading branch information
GoeLin committed Jan 23, 2023
1 parent 571f5f5 commit 68c025b
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions make/conf/jib-profiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
* input.build_osenv
* input.build_osenv_cpu
* input.build_osenv_platform
* input.build_osenv_version
*
* For more complex nested attributes, there is a method "get":
*
Expand Down Expand Up @@ -1098,9 +1099,23 @@ var getJibProfilesDependencies = function (input, common) {
environment_path: common.boot_jdk_home + "/bin"
}

var makeBinDir = (input.build_os == "windows"
? input.get("gnumake", "install_path") + "/cygwin/bin"
: input.get("gnumake", "install_path") + "/bin");
var makeRevision = "4.0+1.0";
var makeBinSubDir = "/bin";
var makeModule = "gnumake-" + input.build_platform;
if (input.build_os == "windows") {
makeModule = "gnumake-" + input.build_osenv_platform;
if (input.build_osenv == "cygwin") {
var versionArray = input.build_osenv_version.split(/\./);
var majorVer = parseInt(versionArray[0]);
var minorVer = parseInt(versionArray[1]);
if (majorVer > 3 || (majorVer == 3 && minorVer >= 3)) {
makeRevision = "4.3+1.0";
} else {
makeBinSubDir = "/cygwin/bin";
}
}
}
var makeBinDir = input.get("gnumake", "install_path") + makeBinSubDir;

var dependencies = {
boot_jdk: boot_jdk,
Expand Down Expand Up @@ -1172,18 +1187,12 @@ var getJibProfilesDependencies = function (input, common) {
gnumake: {
organization: common.organization,
ext: "tar.gz",
revision: "4.0+1.0",

module: (input.build_os == "windows"
? "gnumake-" + input.build_osenv_platform
: "gnumake-" + input.build_platform),

revision: makeRevision,
module: makeModule,
configure_args: "MAKE=" + makeBinDir + "/make",

environment: {
"MAKE": makeBinDir + "/make"
},

environment_path: makeBinDir
},

Expand Down

1 comment on commit 68c025b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.