puppetlabs-apache icon indicating copy to clipboard operation
puppetlabs-apache copied to clipboard

Stop managing mime support package on Debian

Open jcharaoui opened this issue 1 year ago • 4 comments

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)

jcharaoui avatar Feb 20 '24 23:02 jcharaoui