Re: diversion/conffile
>>"Josselin" == Josselin Mouette <josselin.mouette@ens-lyon.org> writes:
Josselin> At least, the linuxlogo package diverts /etc/issue from
Josselin> base-files, and it seems to work properly.
What does dpkg do when base-files changes /etc/issue? How do
conffile replacement and diversions interact?
And why is this not a violation of:
======================================================================
11.7.4. Sharing configuration files
-----------------------------------
Packages which specify the same file as a `conffile' must be tagged as
_conflicting_ with each other. (This is an instance of the general
rule about not sharing files. Note that neither alternatives nor
diversions are likely to be appropriate in this case; in particular,
`dpkg' does not handle diverted `conffile's well.)
The maintainer scripts must not alter a `conffile' of _any_ package,
including the one the scripts belong to.
If two or more packages use the same configuration file and it is
reasonable for both to be installed at the same time, one of these
packages must be defined as _owner_ of the configuration file, i.e.,
it will be the package which handles that file as a configuration
file. Other packages that use the configuration file must depend on
the owning package if they require the configuration file to operate.
If the other package will use the configuration file if present, but
is capable of operating without it, no dependency need be declared.
If it is desirable for two or more related packages to share a
configuration file _and_ for all of the related packages to be able to
modify that configuration file, then the following should be done:
1. One of the related packages (the "owning" package) will manage
the configuration file with maintainer scripts as described in
the previous section.
2. The owning package should also provide a program that the other
packages may use to modify the configuration file.
3. The related packages must use the provided program to make any
desired modifications to the configuration file. They should
either depend on the core package to guarantee that the
configuration modifier program is available or accept gracefully
that they cannot modify the configuration file if it is not.
(This is in addition to the fact that the configuration file may
not even be present in the latter scenario.)
======================================================================
manoj
preparing to file a serios bug against linuxlogo unless conviced otherwise
--
Riches: A gift from Heaven signifying, "This is my beloved son, in
whom I am well pleased." John D. Rockefeller, (slander by Ambrose
Bierce)
Manoj Srivastava <srivasta@debian.org> <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Reply to: