Re:Limiting the power of package installation in Debian
by heinrichhartman on Friday November 16, 2018 @10:15AM
(#18469244)
Well, for me this is a question who owns the config file:
* If the package owns the file, and the user is not supposed to make changes to it, then package updates may do whatever to the file on update. It's good practice though, to leave a copy of the old file in /lost+found.
* If the user is allowed to make modification, then the user owns it. The configuration syntax becomes and API and should be treated as such. Breaking changes should be rare, preceded by a deprecation period and announced as major versions. As you say, it's questionable if such updates can/should be automated.
Re:Limiting the power of package installation in Debian
by hashhar on Friday November 16, 2018 @04:43PM
(#18472205)
What about binary formats like gpg keyrings?
Re:Limiting the power of package installation in Debian
by gronne on Friday November 16, 2018 @10:13AM
(#18469237)
Easy, implement the config upgrade in the software (launcher) itself. 1. check config version on launch. 2. if old version upgrade.
Re:Limiting the power of package installation in Debian
by nine_k on Friday November 16, 2018 @10:25AM
(#18469297)
Yes, ideally, every version of software that changes any external data format (e.g. of config files) should always accept both new and old versions.
But, unfortunately, some software does not, and it still needs to be packaged.
Re:Limiting the power of package installation in Debian
by gronne on Friday November 16, 2018 @11:29AM
(#18469737)
True.
And the only effective solutions I can think of are extremely ressource intensive (man hours) and therefore unrealistic. (Lile wrapping non-compliant apps and using mandatory access control for enforcement)
This need not be an automatic action, though; you might choose to postpone the migration, and offer a separate tool for the user to run.
This prevents any packages from depending on such a package, though: they can no longer be automatically installed, because their dependency cannot, too.
This changes the concept of package management seriously enough.