[opensuse-packaging] What's happened with shared-mime-info?
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? Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
* Dave Plater <dplater.list@gmail.com> [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 -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 5/18/20, Patrick Shanahan <paka@opensuse.org> wrote:
* Dave Plater <dplater.list@gmail.com> [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
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
Try rpm -q --whatprovides /usr/share/mime/audio it was shared-mime-info at the beginning of the month. Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
* Dave Plater <dplater.list@gmail.com> [05-18-20 09:35]:
On 5/18/20, Patrick Shanahan <paka@opensuse.org> wrote:
* Dave Plater <dplater.list@gmail.com> [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 -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 18/05/2020 15:50, Patrick Shanahan wrote:
* Dave Plater <dplater.list@gmail.com> [05-18-20 09:35]:
On 5/18/20, Patrick Shanahan <paka@opensuse.org> wrote:
* Dave Plater <dplater.list@gmail.com> [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 but before I updated to the latest snapshot it was: rpm -ql shared-mime-info | grep audio /usr/share/mime/audio /usr/share/mime/audio/aac.xml /usr/share/mime/audio/ac3.xml /usr/share/mime/audio/amr-wb.xml /usr/share/mime/audio/amr.xml /usr/share/mime/audio/annodex.xml /usr/share/mime/audio/basic.xml /usr/share/mime/audio/flac.xml /usr/share/mime/audio/midi.xml /usr/share/mime/audio/mp2.xml /usr/share/mime/audio/mp4.xml /usr/share/mime/audio/mpeg.xml /usr/share/mime/audio/ogg.xml /usr/share/mime/audio/prs.sid.xml /usr/share/mime/audio/usac.xml /usr/share/mime/audio/vnd.dts.hd.xml /usr/share/mime/audio/vnd.dts.xml /usr/share/mime/audio/vnd.rn-realaudio.xml /usr/share/mime/audio/webm.xml /usr/share/mime/audio/x-adpcm.xml /usr/share/mime/audio/x-aifc.xml /usr/share/mime/audio/x-aiff.xml /usr/share/mime/audio/x-amzxml.xml /usr/share/mime/audio/x-ape.xml /usr/share/mime/audio/x-flac+ogg.xml /usr/share/mime/audio/x-gsm.xml /usr/share/mime/audio/x-iriver-pla.xml /usr/share/mime/audio/x-it.xml /usr/share/mime/audio/x-m4b.xml /usr/share/mime/audio/x-m4r.xml /usr/share/mime/audio/x-matroska.xml /usr/share/mime/audio/x-minipsf.xml /usr/share/mime/audio/x-mo3.xml /usr/share/mime/audio/x-mod.xml /usr/share/mime/audio/x-mpegurl.xml /usr/share/mime/audio/x-ms-asx.xml /usr/share/mime/audio/x-ms-wma.xml /usr/share/mime/audio/x-musepack.xml /usr/share/mime/audio/x-opus+ogg.xml /usr/share/mime/audio/x-pn-audibleaudio.xml /usr/share/mime/audio/x-psf.xml /usr/share/mime/audio/x-psflib.xml /usr/share/mime/audio/x-riff.xml /usr/share/mime/audio/x-s3m.xml /usr/share/mime/audio/x-scpls.xml /usr/share/mime/audio/x-speex+ogg.xml /usr/share/mime/audio/x-speex.xml /usr/share/mime/audio/x-stm.xml /usr/share/mime/audio/x-tta.xml /usr/share/mime/audio/x-voc.xml /usr/share/mime/audio/x-vorbis+ogg.xml /usr/share/mime/audio/x-wav.xml /usr/share/mime/audio/x-wavpack-correction.xml /usr/share/mime/audio/x-wavpack.xml /usr/share/mime/audio/x-xi.xml /usr/share/mime/audio/x-xm.xml /usr/share/mime/audio/x-xmf.xml /usr/share/mime/x-content/audio-cdda.xml /usr/share/mime/x-content/audio-dvd.xml /usr/share/mime/x-content/audio-player.xml I used grep to limit the output. Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
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@gmail.com> [05-18-20 09:35]:
On 5/18/20, Patrick Shanahan <paka@opensuse.org> wrote:
* Dave Plater <dplater.list@gmail.com> [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-inf... --- 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
On 18/05/2020 17:23, Stefan Brüns wrote:
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-inf... --- Each application provides only a single XML source file, which is installed in the packages directory as described above. ---
Regards,
Stefan
Just to make this clear, the package buzztrax which BuildRequires shared-mime-info which owns - /usr/share/mime/audio now fails because shared-mime-info no longer has ownership of this directory: [ 387s] buzztrax-0.10.2+git20191209-100.16.x86_64.rpm: directories not owned by a package: [ 387s] - /usr/share/mime/audio I'm surprised that such a major change in the package shared-mime-info wasn't documented. Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi, Fixed in https://build.opensuse.org/request/show/807255 Am 19.05.20 um 12:40 schrieb Dave Plater:
On 18/05/2020 17:23, Stefan Brüns wrote:
Claiming ownership of a file below e.g./usr/share/mime/audio/ is wrong, as the mime type may be registered from several packages.
-%attr(0644,root,root) %ghost %{_datadir}/mime/audio/x-bzt.xml -%attr(0644,root,root) %ghost %{_datadir}/mime/audio/x-bzt-xml.xml
Just to make this clear, the package buzztrax which BuildRequires shared-mime-info which owns - /usr/share/mime/audio now fails because shared-mime-info no longer has ownership of this directory: [ 387s] buzztrax-0.10.2+git20191209-100.16.x86_64.rpm: directories not owned by a package: [ 387s] - /usr/share/mime/audio
I'm surprised that such a major change in the package shared-mime-info wasn't documented.
Thanks Dave P
These RPMlint warnings probably need to be addressed too: buzztrax-plugins.x86_64: W: desktopfile-without-binary /usr/share/applications/buzztrax-songio-buzz.desktop buzztrax-edit the .desktop file is for a file not present in the package. You should check the requires or see if this is not a error buzztrax-plugins.x86_64: W: empty-%post buzztrax.x86_64: W: empty-%post buzztrax-plugins.x86_64: W: empty-%postun Regards, Ben -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Ben Greiner
-
Dave Plater
-
Patrick Shanahan
-
Stefan Brüns