Bug 42287 - Recursive package dependency
Recursive package dependency
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: pkgdb
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Philipp Hahn
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-06 13:12 CEST by Philipp Hahn
Modified: 2021-05-25 16:00 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Cleanup
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2016-09-06 13:12:35 CEST
ERROR:root:Recursion univention-management-console-module-pkgdb -> univention-pkgdb-
Comment 1 Ingo Steuwer univentionstaff 2020-07-03 20:52:39 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Comment 2 Philipp Hahn univentionstaff 2020-07-04 15:20:40 CEST
The recursive package dependency still exists and leads to unpredictable installations and upgrade behavior.

The problem here is that bin:univention-pkgdb is both the meta-package being used to install the component, but also contains all the server configuration files, UDL module, scripts, ….
As the meta-package it want to pull in the UMC module package, but that one depends on the server package as it contains a hard-coded use of PostgreSQL via UNIX socket in /usr/lib/python2.7/dist-packages/univention/pkgdb.py:542 for open_database_connection(…, pkgdbu=True)
This can be fixed easily by only using the UNIX connection if the UMC is running on the same host as the PostgreSQL database.

[feature/ucs5] bcfb2aab08 Bug #42287 pkgdb: Break package dependency cycle
 doc/changelog/changelog-5.0-0.xml                  |  2 +-
 services/univention-pkgdb/debian/changelog         |  6 +++++
 services/univention-pkgdb/debian/control           | 26 ++++++++--------------
 services/univention-pkgdb/debian/rules             | 11 ++-------
 .../univention-pkgdb/pyshared/univention/pkgdb.py  |  7 ++++--
 5 files changed, 23 insertions(+), 29 deletions(-)
Comment 3 Dirk Wiesenthal univentionstaff 2020-07-06 14:40:19 CEST
Cycle gone: OK
Codechange: OK
Changelog: OK
Comment 4 Florian Best univentionstaff 2021-05-25 16:00:21 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".