News for hackers. Stuff that matters.
Re:Limiting the power of package installation in Debian by nine_k on Friday November 16, 2018 @09:59AM (#18469150)
Running arbitrary code may be needed if you want to upgrade an existing installation in-place. Imagine that you are upgrading to a new major version and want to migrate the existing configuration to a new format.

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.

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)
Re:Limiting the power of package installation in Debian by tinus_hn on Friday November 16, 2018 @06:40PM (#18472870)
And then you have moved stuff around and solved absolutely nothing, but you have created a new, permanent surface for security issues.