Re: RFC Debian package upgrade with Config::Model
Jonas Smedegaard <email@example.com> writes:
>>I can either:
>>- tweak config-edit so that temp files for upgrades are stored in
>> /var/lib/config-model, something like:
>> config-edit -save_for_upgrade # creates temp file
>> config-edit -upgrade # use previous temp file
>>- arrange for the dh-upgrader script to store temp files in
>>First option is probably the best as it would be valid across distros.
> Is it sane to use /var/lib/config-model across distros?
I'd say yes. OS havings config files in /etc are mostly Unix. Almost all
unixes follow FHS .
> Hey - is it even sane to assume that the tool is (only) a distro tool?
On Debian, config-model could also be used to upgrade user config files
(in ~/.foo directories). The only hitch is that the
custom-data-saved-with-old-model part cannot be done.
Upgrade will be done by reading old data with new model. Which means
that some confusion may arise in corner cases when 'default' values are
changed. But it should work fine in most of the cases.
> To me it makes sense to use at the distro level for Debian, but I can
> imagine other uses than that too.
> I imagine providing the distro routines completely separate from the
> Config::Model libraries, to encourage alternative uses of the tool.
> Even as a separate source package. As such, it makes better sense to me
> to provide a debhelper script. How about calling it dh_config?
Why not ? The actual name may depend on what we want to achieve, like
upgrading config or installing a new config file ?
>>> (I might come up with an even better candidate: while I am involved
>>> in packaging icecast2 I do not really use it myself, so would not
>>> really know what options would be relevant to handle)
>>I'm all ears.
> Ask me later - too much other work piling up at the moment... :-/
>>PS: I've updated http://wiki.debian.org/PackageConfigUpgrade with the
>>first results of our current discussion. Some FIXMEs are still left.
> Sorry, still haven't found time to fully dive into it. Please do ping
> me later - and if not (long) before that, force me to look at it at
ok. No problem.
> Thanks for your work on this (to me) important mechanism!
You're welcome. I'm happy to find people that are interested in
config-model approach. :-)
All the best
"Delivering successful solutions requires giving people what they
need, not what they want." Kurt Bittner
domidumont at irc.freenode.net
ddumont at irc.debian.org