Mailinglist Archive: opensuse-packaging (66 mails)

< Previous Next >
Re: [opensuse-packaging] What's happened with shared-mime-info?
  • From: Stefan Brüns <stefan.bruens@xxxxxxxxxxxxxx>
  • Date: Mon, 18 May 2020 17:23:46 +0200
  • Message-id: <8167814.V2C3sDv5cE@bacchus>
On Monday, 18 May 2020 16:21:03 CEST Dave Plater wrote:
On 18/05/2020 15:50, Patrick Shanahan wrote:
* Dave Plater <dplater.list@xxxxxxxxx> [05-18-20 09:35]:
On 5/18/20, Patrick Shanahan <paka@xxxxxxxxxxxx> wrote:
* Dave Plater <dplater.list@xxxxxxxxx> [05-18-20 04:02]:
Hi, package openSUSE:Factory/buzztrax started to fail to build around
9 May due to a shared-mime-info directory no longer existing, in fact
none of the files under /usr/share/mime/application exist anymore and
the directories under /usr/share/mime/ such as audio don't exist
anymore. I searched the changes file and the packages NEWS file but
can't find any information about this change, is this possibly as a
result of the switch to meson build?

07:58 crash:~ > l /usr/share/mime/audio/* |wc -l
58
07:58 crash:~ > l /usr/share/mime/application/* |wc -l
559
openSUSE Tumbleweed 20200516

or perhaps I don't understand

Try rpm -q --whatprovides /usr/share/mime/audio it was
shared-mime-info at the beginning of the month.

yes,

09:49 crash:~ > rpm -q --whatprovides /usr/share/mime/accessories
error: file /usr/share/mime/accessories: No such file or directory
09:49 crash:~ > rpm -q --whatprovides /usr/share/mime/application
shared-mime-info-2.0-2.1.x86_64

This is rpm -ql shared-mime-info
/usr/bin/update-mime-database
/usr/lib/rpm/macros.d/macros.shared-mime-info
/usr/share/doc/packages/shared-mime-info
/usr/share/doc/packages/shared-mime-info/NEWS
/usr/share/doc/packages/shared-mime-info/README.md
/usr/share/gettext/its/shared-mime-info.its
/usr/share/gettext/its/shared-mime-info.loc
/usr/share/licenses/shared-mime-info
/usr/share/licenses/shared-mime-info/COPYING
/usr/share/man/man1/update-mime-database.1.gz
/usr/share/mime/application
/usr/share/mime/packages/freedesktop.org.xml
/usr/share/pkgconfig/shared-mime-info.pc

Trying to install anything in /usr/share/mime/*, with the sole exception of /
usr/share/mime/packages/*.xml, is a packaging bug.

Any other file below /usr/share/mime/ is a cache, created/updated by the
update-mime-database file trigger.

Claiming ownership of a file below e.g. /usr/share/mime/audio/ is wrong, as
the mime type may be registered from several packages.

https://specifications.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-0.18.html#idm45709761658688
---
Each application provides only a single XML source file, which is installed in
the packages directory as described above.
---

Regards,

Stefan

--
Stefan Brüns / Bergstraße 21 / 52062 Aachen
phone: +49 241 53809034 mobile: +49 151 50412019
< Previous Next >
Follow Ups