mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Klaus Schwartz
12.56.2019 b6371953a12aef76f6483c3b20d5b3dd2fba11d5
default-jre-headless dependency for deb package (#89)

OpenDJ doesn't need Java GUI in some (most?) cases, but still requires full jre as must have dependency.

Right now it can be tricked by installing opendj with following commands:
```
apt-get install default-jre-headless -y
dpkg -i --ignore-depends=default-jre opendj_4.4.3-1_all.deb
```

Everything works pretty fine so far except getting annoying message every attempt to install apt package:

```
root@localhost:~# apt-get install some-other-package
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
opendj : Depends: default-jre but it is not going to be installed or
java6-runtime or
java7-runtime
```


This patch alteres dependency in `opendj_X.Y.Z_all.deb` from `default-jre` to `default-jre-headless | default-jre` which solves the issue.
1 files modified
2 ■■■ changed files
opendj-packages/opendj-deb/resources/control/control 2 ●●● patch | view | raw | blame | history
opendj-packages/opendj-deb/resources/control/control
@@ -3,7 +3,7 @@
Section: misc
Priority: optional
Architecture: all
Depends: default-jre | java6-runtime | java7-runtime
Depends: default-jre-headless | default-jre | java6-runtime | java7-runtime
Homepage: [[deb.doc.homepage.url]]
Maintainer: [[deb.maintainer]]
Description: [[deb.product.name]]