Univention Bugzilla – Bug 22092
ucslint für UCS 3.0
Last modified: 2011-12-13 15:51:09 CET
ucslint muss noch für UCS 3.0 angepasst werden.
Das funktioniert aktuell noch nicht: ucs3:~/univention-directory-listener# dpkg -l ucslint Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten | Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/ Halb installiert/Trigger erWartet/Trigger anhängig |/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht) ||/ Name Version Beschreibung +++-===========================================-===========================================-====================================================================================================== ii ucslint 2.0.3-1.14.201105061822 ucslint - Univention packaging check tool ucs3:~/univention-directory-listener# dpkg -L ucslint /. /usr /usr/share /usr/share/pyshared /usr/share/pyshared/ucslint /usr/share/pyshared/ucslint/univention /usr/share/pyshared/ucslint/univention/ucslint /usr/share/pyshared/ucslint/univention/ucslint/0007-Changelog.py /usr/share/pyshared/ucslint/univention/ucslint/0008-Translations.py /usr/share/pyshared/ucslint/univention/ucslint/0002-CopyPasteErrors.py /usr/share/pyshared/ucslint/univention/ucslint/__init__.py /usr/share/pyshared/ucslint/univention/ucslint/0011-Control.py /usr/share/pyshared/ucslint/univention/ucslint/0006-CheckPostinst.py /usr/share/pyshared/ucslint/univention/ucslint/base.py /usr/share/pyshared/ucslint/univention/ucslint/0004-CheckUCR.py /usr/share/pyshared/ucslint/univention/ucslint/0009-Python.py /usr/share/pyshared/ucslint/univention/ucslint/0010-Copyright.py /usr/share/pyshared/ucslint/univention/ucslint/0001-CheckJoinScript.py /usr/share/python-support /usr/share/python-support/ucslint.public /usr/share/doc /usr/share/doc/ucslint /usr/share/doc/ucslint/changelog.Debian.gz /usr/bin /usr/bin/ucslint.py ucs3:~/univention-directory-listener# ucslint -bash: ucslint: Kommando nicht gefunden. ucs3:~/univention-directory-listener# ucslint.py using fallback ucslint.base instead of univention.ucslint.base using fallback ucslint.base instead of univention.ucslint.base Traceback (most recent call last): File "/usr/bin/ucslint.py", line 39, in <module> import ucslint.base as uub File "/usr/bin/ucslint.py", line 39, in <module> import ucslint.base as uub ImportError: No module named base ucs3:~/univention-directory-listener#
Das scheint noch nicht zu funktionieren: Aus /var/univention/buildsystem2//logs/ucs_3.0-0/ucs_3.0-0.pam-runasroot.201105100859.log.bz2: ... Setting up ucslint (2.0.4-2.16.201105091540) ... ... make[1]: Leaving directory `/var/build/temp/tmp.LAZpicMYoH/3.0-0-0/pam-runasroot/pam-runasroot-5.0.1' debian/rules override_dh_auto_test make[1]: Entering directory `/var/build/temp/tmp.LAZpicMYoH/3.0-0-0/pam-runasroot/pam-runasroot-5.0.1' ucslint using fallback ucslint.base instead of univention.ucslint.base Traceback (most recent call last): File "/usr/bin/ucslint", line 39, in <module> import ucslint.base as uub ImportError: No module named ucslint.base make[1]: *** [override_dh_auto_test] Error 1
Noch ein Problem: > Build auf dimma schlägt fehl: E:0007-2: latest changelog entry does not contain bug or ticket number Ursache ist hier, das durch unseren Build-Prozeß automatisch ein neuer ChnageLog-Eintrag generiert wird, um die Build-Nummer und den Zeitstempel in die Versionsnummer des Paketes zu bekommen. Der einzige Eintrag "* auto-build" enthält aber keine Referenz auf einen Bug oder ein Ticket, weshalb usclint jetzt den erfolgreichen Bau des Paketes verhindert. Als workaround würde es reicher, daraus erstmal eine Warnung zu machen, aber schöner wäre langfristig, wenn ucslint diesen letzten automatisch generierten ChangeLog-Eintrag ignoriert.
(In reply to comment #2) > make[1]: Entering directory > `/var/build/temp/tmp.LAZpicMYoH/3.0-0-0/pam-runasroot/pam-runasroot-5.0.1' > ucslint > using fallback ucslint.base instead of univention.ucslint.base > Traceback (most recent call last): > File "/usr/bin/ucslint", line 39, in <module> > import ucslint.base as uub > ImportError: No module named ucslint.base > make[1]: *** [override_dh_auto_test] Error 1 Fixed.
(In reply to comment #3) > Noch ein Problem: > > Build auf dimma schlägt fehl: E:0007-2: latest changelog entry does not contain bug or ticket number > > Als workaround würde es reicher, daraus erstmal eine Warnung zu machen, aber > schöner wäre langfristig, wenn ucslint diesen letzten automatisch generierten > ChangeLog-Eintrag ignoriert. Es wurde jetzt erstmal eine Warnung daraus gemacht. Das Parsen des Changelogfiles steht noch aus.
univention-install-config-registry-info wird automatisch von univention-install-config-registry aufgerufen, weshalb die Beschwerde von ucslint falsch ist: ucslint E:0004-26: ./debian/univention-maintenance.univention-config-registry-variables exists but debian/rules contains no univention-install-config-registry-info
(In reply to comment #6) > univention-install-config-registry-info wird automatisch von > univention-install-config-registry aufgerufen, weshalb die Beschwerde von > ucslint falsch ist: > > ucslint > E:0004-26: ./debian/univention-maintenance.univention-config-registry-variables > exists but debian/rules contains no univention-install-config-registry-info Ich habe daraus jetzt temporär eine Style-Meldung von gemacht, damit ich die anderen Pakete mit aktiviertem ucslint bauen kann. Sönke, ich denke der komplette Test sollte entfernt werden.
(In reply to comment #7) > (In reply to comment #6) > > ucslint > > E:0004-26: ./debian/univention-maintenance.univention-config-registry-variables > > exists but debian/rules contains no univention-install-config-registry-info > > Sönke, ich denke der komplette Test sollte entfernt werden. Test wurde entfernt.
Die bisherigen Punkte sind alle erledigt oder werden über weitere Bugs adressiert.
QA: OK → VERIFIED. (In reply to comment #0) > ucslint muss noch für UCS 3.0 angepasst werden. → OK, ucslint funktioniert generell für 3.0, Pakete können gebaut werden, die Tests laufen soweit korrekt durch. (In reply to comment #5) > > Noch ein Problem: > > Build auf dimma schlägt fehl: E:0007-2: latest changelog entry does not contain bug or ticket number > > Es wurde jetzt erstmal eine Warnung daraus gemacht. Das Parsen des > Changelogfiles steht noch aus. → OK, Test funktioniert und eine Warnung wird bei fehlgeschlagenem Test ausgegeben. (In reply to comment #8) > > > ucslint > > > E:0004-26: ./debian/univention-maintenance.univention-config-registry-variables > > > exists but debian/rules contains no univention-install-config-registry-info > > > > Sönke, ich denke der komplette Test sollte entfernt werden. > > Test wurde entfernt. → OK, Test nicht mehr vorhanden.
UCS 3.0-0 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte dieser Bug dupliziert werden: "Clone This Bug"