Stop managing mime support package on Debian
Summary
All apache2 packages on Debian 10 and later already have a hard dependency on the mime-support package. While mime-support still exists on Debian 12 as a transitonal package, upcoming Debian 13 has removed it entirely.
This sets the $mime_support_package to undefined so that the package isn't managed on Debian, since it doesn't need to be.
Additional Context
Currently, the module fails completely on Debian testing (upcoming release 13 codenamed trixie):
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mime-support' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package mime-support is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
media-types mailcap
E: Package 'mime-support' has no installation candidate
Error: /Stage[main]/Apache::Mod::Mime/Package[mime-support]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mime-support' returned
100: Reading package lists...
Building dependency tree...
Reading state information...
Package mime-support is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
media-types mailcap
E: Package 'mime-support' has no installation candidate
Notice: /Stage[main]/Apache::Mod::Mime/File[mime.conf]: Dependency Package[mime-support] has failures: true
Checklist
- [ ] 🟢 Spec tests.
- [ ] 🟢 Acceptance tests.
- [x] Manually verified. (For example
puppet apply)
IMHO the default should stay unchanged for Debian 11 and 12 for the time being. So maybe add something like this in params.pp:
if ($facts['os']['name'] == 'Debian' and versioncmp($facts['os']['release']['major'], '13') < 0) {...
IMHO the default should stay unchanged for Debian 11 and 12 for the time being. So maybe add something like this in params.pp:
Why, if the packaging already has a hard dependency then why not rely on that?
Accepting this change will allow Debian 12 users to get rid of the transitional, dummy package mime-support on their systems.
IMHO the default should stay unchanged for Debian 11 and 12 for the time being. So maybe add something like this in params.pp:
Why, if the packaging already has a hard dependency then why not rely on that?
Sorry, misunderstanding no my side please ignore my comment