conda-forge / openjdk-feedstock

A conda-smithy repository for openjdk.
BSD 3-Clause "New" or "Revised" License
4 stars 35 forks source link

Missing $JAVA_HOME/release file #153

Closed beenje closed 6 months ago

beenje commented 6 months ago

Solution to issue cannot be found in the documentation.

Issue

I'm trying to compile a new version of pogo a java package but compilation is failing with:

2024-04-11T11:51:01.3835400Z Error: failed to create JrtFileSystem from /home/conda/feedstock_root/build_artifacts/pogo_1712836091275/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/jvm
2024-04-11T11:51:01.3838111Z java.io.FileNotFoundException: /home/conda/feedstock_root/build_artifacts/pogo_1712836091275/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/jvm/release (No such file or directory)

This is with openjdk 19. I checked 21.0.2 and see that the file $JAVA_HOME/release is not part of the conda-forge openjdk package.

I don't know much about java but it seems like this file is required by some plugins. Same error on all platforms.

Installed packages

# packages in environment at /Users/benjaminbertrand/miniconda/envs/test-java:
#
# Name                    Version                   Build  Channel
libcxx                    16.0.6               hd57cbcb_0    conda-forge
libzlib                   1.2.13               h8a1eda9_5    conda-forge
openjdk                   21.0.2               h2d185b6_0    conda-forge

Environment info

active environment : test-java
    active env location : /Users/benjaminbertrand/miniconda/envs/test-java
            shell level : 1
       user config file : /Users/benjaminbertrand/.condarc
 populated config files : /Users/benjaminbertrand/.condarc
          conda version : 23.7.4
    conda-build version : 3.24.0
         python version : 3.10.8.final.0
       virtual packages : __archspec=1=x86_64
                          __osx=14.4.1=0
                          __unix=0=0
       base environment : /Users/benjaminbertrand/miniconda  (writable)
      conda av data dir : /Users/benjaminbertrand/miniconda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /Users/benjaminbertrand/miniconda/pkgs
                          /Users/benjaminbertrand/.conda/pkgs
       envs directories : /Users/benjaminbertrand/miniconda/envs
                          /Users/benjaminbertrand/.conda/envs
               platform : osx-64
             user-agent : conda/23.7.4 requests/2.28.1 CPython/3.10.8 Darwin/23.4.0 OSX/14.4.1 solver/libmamba conda-libmamba-solver/23.7.0 libmambapy/1.4.9
                UID:GID : 501:20
             netrc file : None
           offline mode : False
h-vetinari commented 6 months ago

Interesting. It looks like we may need to separately execute https://github.com/openjdk/jdk21u/blob/master/make/ReleaseFile.gmk