Bug 50901

Summary: univention-apache-vhost is not installed by default
Product: UCS Reporter: Dirk Wiesenthal <wiesenthal>
Component: ApacheAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Jannik Ahlers <ahlers>
Severity: normal    
Priority: P5 CC: ahlers, hahn
Version: UCS 4.4   
Target Milestone: UCS 4.4-3-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Bug Report What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034 Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:

Description Dirk Wiesenthal univentionstaff 2020-03-06 15:24:47 CET
unvention-apache-vhost, provider of the command univention-add-vhost, is a recommendation of univention-apache. Apparently, this is not enough for all systems to install the package during a univention-upgrade.

As Apps rely on that command, we need to add this package to the dependencies rather than the recommendations.
Comment 1 Dirk Wiesenthal univentionstaff 2020-03-06 15:35:26 CET
Changed in
  univention-apache 11.0.1-15A~4.4.0.202003061526
Comment 2 Philipp Hahn univentionstaff 2020-03-09 08:14:17 CET
REOPEN: services/univention-apache/debian/control
…
Package: univention-apache
Depends: univention-apache-vhost
…
Package: univention-apache-vhost
Depends: univention-apache

You have created a circular dependency! With that `dpkg` no longer can calculate the installation order, which leads to "issues".
Comment 3 Dirk Wiesenthal univentionstaff 2020-03-09 11:00:49 CET
I adjusted the dependencies:
  univention-apache
now depends on
  univention-apache-vhost

while
  univention-apache-vhost
does not depend on
  univention-apache
instead, it only suggests it.

Strictly speaking, this is wrong. univention-apache-vhost does not work without univention-apache, while univention-apache may very well work without univention-apache-vhost. But we want this package to be installed, so we chose to cheat here.
Comment 4 Jannik Ahlers univentionstaff 2020-03-09 17:43:03 CET
Not a good solution, but it works.
Comment 5 Erik Damrose univentionstaff 2020-03-11 14:42:09 CET
<http://errata.software-univention.de/ucs/4.4/474.html>