Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548676 - x11-misc/shared-mime-info-1.4: broken 'iso' files
Summary: x11-misc/shared-mime-info-1.4: broken 'iso' files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-05-05 11:24 UTC by i.Dark_Templar
Modified: 2015-05-25 22:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
iso.patch (iso.patch,609 bytes, patch)
2015-05-05 11:25 UTC, i.Dark_Templar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description i.Dark_Templar 2015-05-05 11:24:09 UTC
Problems with shared-mime-info lead kmimetypefinder to not recognizing some of hybrid iso images. Upstream should fix it in next release of shared-mime-info.

Reproducible: Always

Steps to Reproduce:
1. get usual and hybrid iso images
2. check their mime types via kmimetypefinder (kde-base/kmimetypefinder) or use Dolphin (kde-base/dolphin).
Actual Results:  
'application/x-cd-image' for usual iso images and 'text/plain' for most of hybrid iso images

Expected Results:  
'application/x-cd-image' for all iso images

Additional bug reports links:

https://bugs.kde.org/show_bug.cgi?id=346804
https://bugs.kde.org/show_bug.cgi?id=337035

For tests i've downloaded xubuntu-15.04-desktop-i386.iso from http://xubuntu.org/getxubuntu/. I guess using other images from that page would provide same results.
I've also downloaded FreeBSD-10.1-RELEASE-i386-bootonly.iso from ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/i386/ISO-IMAGES/10.1/
I have also already had some other images, including Gentoo install and livedvd ones.
Mime types are recognized more or less fine via "file --mime-type $filename" (application/x-iso9660-image), "mimetype $filename" (application/x-gamecube-rom), and "xdg-mime query filetype $filename" outside KDE session (it fallbacks on mimetype or file methods, while in KDE session it uses kmimetypefinder, which is affected)

Test results for kmimetypefinder:
$ for i in *.iso ; do echo -n -e "\n$i:\t" ; kmimetypefinder $i ; done

FreeBSD-10.1-RELEASE-i386-bootonly.iso: application/x-cd-image
(accuracy 20)

FreeBSD-10.1-RELEASE-i386-disc1.iso:    application/x-cd-image
(accuracy 20)

FreeBSD-9.3-RELEASE-i386-bootonly.iso:  application/x-cd-image
(accuracy 20)

install-x86-minimal-20140930.iso:       text/plain
(accuracy 5)

livedvd-x86-amd64-32ul-20140826.iso:    application/x-cd-image
(accuracy 20)

xubuntu-14.04.1-desktop-i386.iso:       text/plain
(accuracy 5)

xubuntu-15.04-desktop-i386.iso: text/plain
(accuracy 5)
Comment 1 i.Dark_Templar 2015-05-05 11:25:37 UTC
Created attachment 402712 [details, diff]
iso.patch

Patch from upstream fixing the issue.

After patching shared-mime-info
$ for i in *.iso ; do echo -n -e "\n$i:\t" ; kmimetypefinder $i ; done

FreeBSD-10.1-RELEASE-i386-bootonly.iso: application/x-cd-image
(accuracy 100)

FreeBSD-10.1-RELEASE-i386-disc1.iso:    application/x-cd-image
(accuracy 100)

FreeBSD-9.3-RELEASE-i386-bootonly.iso:  application/x-cd-image
(accuracy 100)

install-x86-minimal-20140930.iso:       application/x-cd-image
(accuracy 100)

livedvd-x86-amd64-32ul-20140826.iso:    application/x-cd-image
(accuracy 100)

xubuntu-14.04.1-desktop-i386.iso:       application/x-cd-image
(accuracy 100)

xubuntu-15.04-desktop-i386.iso: application/x-cd-image
(accuracy 100)
Comment 2 Andreas Proteus 2015-05-25 21:25:30 UTC
Same problem here.
Patch fixed it.
Thank you.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-05-25 22:36:06 UTC
Fixed, thanks for reporting!

+*shared-mime-info-1.4-r1 (25 May 2015)
+
+  25 May 2015; Alexandre Rostovtsev <tetromino@gentoo.org>
+  +shared-mime-info-1.4-r1.ebuild, +files/shared-mime-info-1.4-iso-1.patch,
+  +files/shared-mime-info-1.4-iso-2.patch:
+  Add upstream patches to fix ISO image detection (bug #548676, thanks to
+  i.Dark_Templar). Add epatch_user.