#1095496 java-common: please provide libjvm.so path for reverse build dependencies

#1095496#5
Date:
2025-02-08 13:51:58 UTC
From:
To:
Dear Maintainer,

When a package builds agains libjvm.so, it is not trivial to know libjvm.so
path. includes are provided but not linking info.

It would be great to have ome variable in /usr/share/java/java_defaults.mk
documenting libjvm.so path.

I found an upstream bug report[1] that tells me it depends on the jvm
variant. For src:uwsgi-plugin-java, I went with a non ideal solution[2].
Some other seem to brute force[3] libjvm.so location.

I think Debian should provide some easier and more determistic way.

Thanks,

Alex

[1] https://bugs.openjdk.org/browse/JDK-8273494
[2] https://salsa.debian.org/uwsgi-team/uwsgi-plugin-java/-/commit/d00bfabf30201ef940b7ff192609b792612463c1
[3] https://github.com/Kitware/CMake/commit/983291669dade10e5225389b07f6a7329d9c2d3a