temurin-build: makejdk-any-platform.sh -s, -d parameters do not work as they are supposed to

Using -s which is expected to be given as an absolute PATH does not work - it gets appended to the workspace directory where makejdk-any-platform.sh is invoked. This example output was from trying to set them both to directories under /home/sxa/jdk11:

Didn't find any existing openjdk repository at /home/sxa/openjdk-build/workspace/home/sxa/jdk11/src//home/sxa/jdk11/src so cloning the source to openjdk
git clone --depth=1 https://github.com/adoptopenjdk/openjdk-jdk11u.git /home/sxa/openjdk-build/workspace//home/sxa/jdk11/src/src
Cloning into '/home/sxa/openjdk-build/workspace//home/sxa/jdk11/src/src'...
checkoutRequiredCodeToBuild:
  workspace = /home/sxa/openjdk-build/workspace//home/sxa/jdk11/src/src
  BUILD_VARIANT = hotspot
  TAG = 
  BRANCH = dev

Same is true of -d rendering both more or less useless.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

makejdk-any-platform.sh requires a parameter to specify which JDK to build. If you run it without any parameters it will say:

[sxa@fedora openjdk-build]$ ./makejdk-any-platform.sh
Starting ./makejdk-any-platform.sh to configure, build (Adoptium)OpenJDK binary
Please provide a java version to build as an argument
[sxa@fedora openjdk-build]$ 

So the normal thing to do would be to run ./makejdk-any-platform.sh jdk.

To use -s (which is to specify a directory on your local machine to clone to) you need to tell it which directory to use for the -s option e.g.

[sxa@fedora openjdk-build]$ ./makejdk-any-platform.sh
Starting ./makejdk-any-platform.sh to configure, build (Adoptium)OpenJDK binary
Please provide a java version to build as an argument
[sxa@fedora openjdk-build]$ 

If you run ./makejdk-any-platform.sh -h it will give you more information on the parameters, or just look at the source of that help page which is in https://github.com/adoptium/temurin-build/blob/master/makejdk-any-platform.1

Hi @smlambert can I take on this?