[MacPorts] #45396: shared-mime-info @1.3 update-mime-database output is not removed on deactivate

MacPorts noreply at macports.org
Thu Sep 15 12:26:18 UTC 2022


#45396: shared-mime-info @1.3 update-mime-database output is not removed on
deactivate
-------------------------------+----------------------
  Reporter:  bgilbert          |      Owner:  RJVB
      Type:  defect            |     Status:  assigned
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:
Resolution:                    |   Keywords:
      Port:  shared-mime-info  |
-------------------------------+----------------------

Comment (by mascguy):

 Replying to [comment:9 RJVB]:
 > Does this look correct?
 >
 > {{{
 > post-deactivate {
 >     # cleanup
 >     foreach f [glob -nocomplain ${prefix}/share/mime/*] {
 >         if {${f} ne "${prefix}/share/mime/packages"} {
 >             ui_debug "file delete -force ${f}"
 >         }
 >     }
 > }
 > }}}

 Since I don't have the tribal knowledge that our veteran members do, I'd
 like others to chime in as well. But based on a naive understanding of all
 of this - and some quick validation - that looks reasonable.

 Semi-confirmed via the following, which suggests your approach looks
 promising:

 {{{
 $ gfind /opt/local/share/mime -type f -print0 | gxargs -0 -r port provides
 | ggrep --invert-match "not provided by"
 /opt/local/share/mime/packages/avif.xml is provided by: libheif
 /opt/local/share/mime/packages/gcr-crypto-types.xml is provided by: gcr
 /opt/local/share/mime/packages/bluefish.xml is provided by: bluefish
 /opt/local/share/mime/packages/heif.xml is provided by: libheif
 /opt/local/share/mime/packages/glom.xml is provided by: glom
 /opt/local/share/mime/packages/freedesktop.org.xml is provided by: shared-
 mime-info
 /opt/local/share/mime/packages/gramps.xml is provided by: gramps
 /opt/local/share/mime/packages/org.bunkus.mkvtoolnix-gui.xml is provided
 by: mkvtoolnix-devel
 /opt/local/share/mime/packages/anjuta.xml is provided by: anjuta
 }}}

 Anyone else, thoughts...?

-- 
Ticket URL: <https://trac.macports.org/ticket/45396#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list