couchdb-pkg
couchdb-pkg copied to clipboard
Nouveau Debian package depends on Java 11
The debian package for Nouveau declares a dependency on default-jre-headless. In turn this depends on a specific version of the JRE that the user may not want to install. For example, in Ubuntu Jammy, default-jre-headless depends on openjdk-11-jre-headless.
Expected Behavior
User can decide which version of Java to use with Nouveau, and does not need to install the specific version required by default-jre-headless.
Current Behavior
Installing couchdb-nouveau will also install default-jre-headless, and a specific Java version determined by the operating system.
Possible Solution
One option:
- Remove
default-jre-headlessfrom the Depends line indebian/control.in. Thejava11-runtime-headlessdependency remains a virtual dependency provided by Java 11 or any subsequent version. - Remove, or comment out,
JAVA_HOME=/usr/lib/jvm/default-javafromcouchdb-nouveau.default. This path is provided by default-jre-headless. - In
couchdb-nouveau.service, changeexec ${JAVA_HOME}/bin/javatoexec ${JAVA_HOME:-/usr}/bin/java. This will still allowJAVA_HOMEto be configured in/etc/default/couchdb-nouveau, but will default to /usr/bin/java if it is not set (which in turn will use whatever update-alternatives) has picked.
Another option:
- Remove
default-jre-headlessfrom the Depends line indebian/control.in. - Replace JAVA_HOME in
couchdb-nouveau.defaultwith JAVA, and make it default to/usr/bin/java - In
couchdb-nouveau.service, changeexec ${JAVA_HOME}/bin/javatoexec ${JAVA}. This allows the java executable to be selected. As nouveau does not invoke any other Java tooling, it should not be necessary to setJAVA_HOMEadditionally.
Steps to Reproduce (for bugs)
- Build packages for 3.4.0 RC4
- Try to install couchdb and couchdb-nouveau
Context
I'd like to install couchdb-nouveau without requiring the version of Java depended on by default-jre-headless
Your Environment
- Version used: 3.4.0-RC4
- Browser Name and version: n/a
- Operating System and version (desktop or mobile): Ubuntu Jammy
- Link to your project: n/a