Bug 2009974
| Summary: | libjvm.so not found | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Iñaki Ucar <i.ucar86> |
| Component: | R | Assignee: | Tom "spot" Callaway <spotrh> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 36 | CC: | ahughes, ashundi, billcrawford1970, i.ucar86, jerboaa, jvanek, mageia-java, spotrh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-04-04 16:05:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Iñaki Ucar
2021-10-02 15:10:09 UTC
Adding @spot to the CC. Maybe the R spec is doing something wrong, but this used to work. Simpler example:
$ podman run --rm -it fedora:32
# dnf -y install R
# ll $(R CMD config JAVA_HOME)
lrwxrwxrwx. 1 root root 21 Oct 29 13:31 /usr/lib/jvm/jre -> /etc/alternatives/jre
However, since F33 on (so I suspect this is since some recent Java 11 update):
$ podman run --rm -it fedora:33
# dnf -y install R
# ll $(R CMD config JAVA_HOME)
ls: cannot access '/usr/lib/jvm/java-11-openjdk-11.0.11.0.9-0.fc33.x86_64': No such file or directory
Wrong path. The R spec uses %{_jvmdir} in %post to set the proper paths: https://src.fedoraproject.org/rpms/R/blob/rawhide/f/R.spec#_861. So apparently %{_jvmdir} takes a wrong path?
I found the issue. Alternatives creation was moved to posttrans: - https://src.fedoraproject.org/rpms/java-11-openjdk/blob/rawhide/f/java-11-openjdk.spec#_2503 - https://src.fedoraproject.org/rpms/java-1.8.0-openjdk/blob/rawhide/f/java-1.8.0-openjdk.spec#_2674 So the call to javareconf must be moved to posttrans too. Issue moved to the R component. This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36. This was fixed in https://src.fedoraproject.org/rpms/R/pull-request/6 |