Bug#887439: Clean up files of non-standard media types

Daniel Leidert dleidert at debian.org
Tue Jan 16 14:43:49 UTC 2018


Package: shared-mime-info
Version: 1.9-2
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

I'd like to report the behaviour observed in #684017 as bug against
shared-mime-info.

The chemical-mime-data package adds support for various MIME/file types
of the media type chemical/*. This media type has been proposed in 1996
to the IUPAC and neither accepted nor rejected (AFAIK). These MIME types
are in use since then.

IIRC there was not any interest by fd.o to add them to their own database
/usr/share/mime/packages/freedesktop.org.xml, so they have been added by
a separate project. Now I perfectly understand, that update-mime-database
warns about unregistered media types. But I don't understand, why it doesn't
care to purge the files it created from such media type definitions and
leaves e.g. /usr/share/mime/chemical/x-*.xml when removing chemical-mime-data.

These are the main reasons, why I consider this to be a bug in shared-mime-info:

- - The files created in /usr/share/mime/ are solely created by
  update-mime-database and not by the package installing a database into
  /usr/share/mime/packages/. Therefor update-mime-database is responsible
  for removing them.

- - The project itself defines, installs and removes media types, that have
  never been registered with the IANA and are not official MIME media types. 
  These media types are font, inode, x-content, x-epoc and x-scheme-handler.  
  update-mime-database.c defines them in const char *media_types[] and
  /usr/share/mime/packages/freedesktop.org.xml contains various subtypes
  of them.

Regards, Daniel








- -- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'unstable-debug'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages shared-mime-info depends on:
ii  libc6         2.26-4
ii  libglib2.0-0  2.54.3-1
ii  libxml2       2.9.4+dfsg1-6.1

shared-mime-info recommends no packages.

shared-mime-info suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEvu1N7VVEpMA+KD3HS80FZ8KW0F0FAlpeD6UACgkQS80FZ8KW
0F21uRAAi/Eu+4DwmvazAbUvagAv8UjNtf24sSWWjfe6ExDxtplYfPhgtP+lomY2
r0btAPMT4Y7Dn587zEjVkR1xuD937OE8EFEOg24QsUDynM+m2zoZR08Dfc5gAvgi
TWQaINOZymzMCwkobk6PxVuClZpqXIBpqvlLvBbM6wLzCcZLu0tHsh+FD+FgEAaC
pNB8gkyVQQaOumE7Hu03MmbiJmh/+QmQA2pL+zZl3klvjpCaRFiK/UnaXvF05kqU
saJkFA4skh0xLhep3JVOefbN1xkgB8tYTBkqA7qB/1MVuZBlxkq5HlCpzSIeueQ6
nxyb4y8R/k3WfHrlY11h4npYG+kBN8TfIbRMWVsqxmqSALDaPrXnS4ZQMAGdJEuj
yxz4Q72HEhVxothvaHkbBQu+/o1bDi45pH4DN0mRg5VgxNyZybR03BaHzH+SOOVb
NT/LH93bGT6iTK06yRuf1QNGY9DxKxV+I35+L98kGAaDVrT/IOgfAbLN2iPM8zeo
qjzCodzj8zJOSGuUwEVqtLGEWtPf8gV89IVJrQJuRL7WfzTW35WGIc+mvFQM/Crg
g1TZhIdd/Z8fIwzAy4fJad4/CJc3m99b7U/O6bmNMKdPiUuIxcYIKVTjWjo/hFsU
DJywQg3NSld9zqr5X0A5+tyVW79LbS8ewcM88/tz5kWj/1qzKwY=
=IIDV
-----END PGP SIGNATURE-----



More information about the Pkg-freedesktop-maintainers mailing list