Univention Bugzilla – Bug 18924
univention-install-* sollte /etc/* nicht in debian/conffiles hinzufügen
Last modified: 2011-12-13 15:49:33 CET
/usr/bin/univention-install-baseconfig /usr/bin/univention-install-config-registry /usr/bin/univention-install-config-registry-info /usr/bin/univention-install-service-info registrieren alle von ihnen installierte Dateien als sog. 'conffiles', egal ob diese unterhalb von /etc/ liegen oder nicht. Das ist problematisch, da "dh_installdeb" seinerseits alle Dateien unterhalb von /etc/ abermals registriert und deswegen alle diese Dateien doppelt vorhanden sind. Dies ist seit dpkg compatibility mode V3 Standard: (man dh_installdeb) > In V3 compatibility mode and higher, all files in the etc/ directory in a > package will automatically be flagged as conffiles by this program, so > there is no need to list them manually here. Dies verkompliziert die Handhabung von conffiles wie unter http://wiki.debian.org/DpkgConffileHandling beschrieben, da "dpkg-query -W -f='${Conffiles}'" dann doppelte Einträge liefert und der Test fehlschlägt. Die univention-install-*-Programme sollten ihrerseits debian/compat (und DH_VERBOSE) auswerten, und entsprechend Dateien unterhalb von /etc/ dem Kompatibilitätslevel entsprechend richtig behandeln.
Das ist behoben: u-install-* fügt die Dateien nicht länger in den debian/*.conffiles-Dateien hinzu. svn24083 ChangeLog: \item \ucrCommand{univention-install-config-registry} no longer explicitly adds the template files to the respective \ucsPath{debian/*.conffiles} files, since all files below \ucsPath{/etc/} are already implicitly flagges as conffiles by the Debian tool chain (\ucsBug{18924}).
Ich habe in einer 3.0-Umgebung univention-mozilla-firefox gebaut, dabei wurde keine .conffiles-Datei mehr erzeugt. Es sind auf einem aktuellen 3.0-System auch keine doppelten Einträge mehr vorhanden: root@master:/var/lib/dpkg/info# grep templates univention*conffiles | wc -l 261 root@master:/var/lib/dpkg/info# grep templates univention*conffiles | sort | uniq | wc -l 261
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"