Bug 18924 - univention-install-* sollte /etc/* nicht in debian/conffiles hinzufügen
univention-install-* sollte /etc/* nicht in debian/conffiles hinzufügen
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCR - Info Files
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 3.0 - MS2
Assigned To: Philipp Hahn
Moritz Muehlenhoff
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-06 14:00 CEST by Philipp Hahn
Modified: 2011-12-13 15:49 CET (History)
2 users (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):
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 2010-07-06 14:00:32 CEST
/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.
Comment 1 Philipp Hahn univentionstaff 2011-05-18 13:31:39 CEST
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}).
Comment 2 Moritz Muehlenhoff univentionstaff 2011-09-29 11:41:54 CEST
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
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2011-12-13 15:49:33 CET
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"