Bug 24156 - Prüfen auf Laufzeit-Abhängigkeit für univention-config-registry
Summary: Prüfen auf Laufzeit-Abhängigkeit für univention-config-registry
Status: RESOLVED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: ucslint
Version: UCS 3.0
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: Philipp Hahn
QA Contact:
URL:
Keywords:
Depends on: 22668
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-22 07:45 CEST by Philipp Hahn
Modified: 2012-07-12 10:05 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
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):
Customer ID:
Max CVSS v3 score:


Attachments
UCR lint (2.32 KB, text/plain)
2011-10-22 07:45 CEST, Philipp Hahn
Details
Build packages in topological order (1.23 KB, text/plain)
2011-10-22 07:52 CEST, Philipp Hahn
Details
UCR lint (7.88 KB, text/plain)
2011-12-01 07:32 CET, Philipp Hahn
Details
Add dependency tests (39.79 KB, patch)
2011-12-02 12:31 CET, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2011-10-22 07:45:13 CEST
Created attachment 3670 [details]
UCR lint

Bei den Arbeiten an univention-config, um ein vernünftigen Update-Pfad von
UCS-2.4 auf UCS-3.0 zu gewährleisten, ist das angehängte Skript entstanden, das
alle Pakete daraufhin untersucht, ob sie ausreichende Abhängigkeiten auf u-c
und u-b-f haben.
1. Wird ucr im preinst aufgerufen, ist ein Pre-Depends: u-c notwendig
2. Im postinst, prerm und postrm reicht ein Depends: u-c.
3. Wird eine debian/*.u-c-r-Datei genutzt, wird von u-i-c-r indirekt u-c im
postinst und prerm aufgerufen. Dafür ist auch ein Depends: u-c notwendig.
4. Wird init-autostart.lib verwendet, ist ein Depends: u-b-f notwendig.

Ferner sollte bei folgenden Fällen gewarnt werden:
5. Unreferenzierte debian/*.u-c-r-Dateien, für die es in debian/control keinen
zugehörigen Package-Eintrag gibt.
6. debian/*.u-c-r-Dateien, die auf nicht vorhandene Templates verweisen. (Das
erzeigt beim Build sowieso einen Fehler, von daher nicht unbedingt in ucslint
notwendig)
Comment 1 Philipp Hahn univentionstaff 2011-10-22 07:52:06 CEST
Created attachment 3671 [details]
Build packages in topological order

The attached script scans the debian/control file for dependencies and starts with the package, whose Build-Dependencies are satisfied. The new Debian packages are then added to a build repository, which is used to satisfy the dependencies of other packages.
Comment 2 Philipp Hahn univentionstaff 2011-12-01 07:32:44 CET
Created attachment 3925 [details]
UCR lint

First draft for Python UCS-lint module for checking dependencies of ucr
Comment 3 Philipp Hahn univentionstaff 2011-12-02 12:31:31 CET
Created attachment 3936 [details]
Add dependency tests

!init-autostart.lib korrigiert
+testsuit
Comment 4 Philipp Hahn univentionstaff 2012-07-12 10:05:04 CEST
svn34143, svn34144
ucslint_2.0.22-1 TBB