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

MacPorts noreply at macports.org
Thu Sep 15 13:33:49 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 RJVB):

 Replying to [comment:10 mascguy]:
 > $ gfind /opt/local/share/mime -type f -print0 | gxargs -0 -r port
 provides

 ;) You know you can just do
 {{{
 port provides `find /opt/local/share/mime -depth`
 }}}

 I just tried the equivalent on Linux:
 {{{
 > apt contains /usr/share/mime/*
 dpkg-query: no path found matching pattern /usr/share/mime/aliases
 dpkg-query: no path found matching pattern /usr/share/mime/all
 dpkg-query: no path found matching pattern /usr/share/mime/application
 dpkg-query: no path found matching pattern /usr/share/mime/audio
 dpkg-query: no path found matching pattern /usr/share/mime/generic-icons
 dpkg-query: no path found matching pattern /usr/share/mime/globs
 dpkg-query: no path found matching pattern /usr/share/mime/globs2
 dpkg-query: no path found matching pattern /usr/share/mime/icons
 dpkg-query: no path found matching pattern /usr/share/mime/image
 dpkg-query: no path found matching pattern /usr/share/mime/inode
 dpkg-query: no path found matching pattern /usr/share/mime/magic
 dpkg-query: no path found matching pattern /usr/share/mime/message
 dpkg-query: no path found matching pattern /usr/share/mime/mime.cache
 dpkg-query: no path found matching pattern /usr/share/mime/model
 dpkg-query: no path found matching pattern /usr/share/mime/multipart
 libreoffice6.1-debian-menus, skrooge, shared-mime-info, scilab-cli,
 qtiplot, plasma-widget-lancelot, okteta, nautilus-data, massif-visualizer,
 code, virtualbox-6.1, packagekit, libakonadi-socialutils4, libakonadi-
 kde4, tracktion7, krita-data, kmymoney-common, kdevelop-data, kdepim-
 runtime, kdelibs5-data, kde-runtime-data, k3b-data, ib2014, hugin, gnash-
 common, gcr, fontforge, docutils-common, click, calligraplan, calligra-
 data, brasero-common, bluedevil, akonadi-server, zoom:
 /usr/share/mime/packages
 dpkg-query: no path found matching pattern /usr/share/mime/subclasses
 dpkg-query: no path found matching pattern /usr/share/mime/text
 dpkg-query: no path found matching pattern /usr/share/mime/treemagic
 dpkg-query: no path found matching pattern /usr/share/mime/types
 dpkg-query: no path found matching pattern /usr/share/mime/uri
 dpkg-query: no path found matching pattern /usr/share/mime/version
 dpkg-query: no path found matching pattern /usr/share/mime/video
 dpkg-query: no path found matching pattern /usr/share/mime/x-content
 dpkg-query: no path found matching pattern /usr/share/mime/x-epoc
 dpkg-query: no path found matching pattern /usr/share/mime/XMLnamespaces
 }}}

 That seems to confirm my hypothesis, and also suggests it'd be overkill to
 check each individual file. Esp. since that would require writing a
 directory scanner. Not that I've never done that in Tcl but it's a bit
 wordy.

 What I could do is invoke `port -v rev-upgrade | fgrep
 ${prefix}/share/mime` in the post-deactivate, which should give a list of
 any missing files ;)

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


More information about the macports-tickets mailing list