Bug 11792

Summary: glib: RRECOMMENDS shared-mime-info
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Patrick Ohly <patrick.ohly>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: clopez, jku, meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 2.4 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Patrick Ohly 2017-07-14 14:17:55 UTC
g_file_info_get_attribute_string() is not fully functional without shared-mime-info. For example, a .xml.gz files is recognized as plain text file, leading to the error elsewhere reported as https://github.com/hughsie/fwupd/issues/38. I ran into the same problem on OE.

Let's add a RRECOMMENDS_${PN} to glib-2.0 which lists shared-mime-info. Then the lib works out-of-the box while people who like to trim the installation can still do so via BAD_RECOMMENDATIONS.
Comment 1 Jussi Kukkonen 2017-07-15 09:59:14 UTC
I think this makes sense.

the mime DB is ~2.2MB -- or 200kB if we removed comments...
Comment 2 Jussi Kukkonen 2017-07-18 07:46:41 UTC
(In reply to comment #1)
> the mime DB is ~2.2MB -- or 200kB if we removed comments...

It's really a bit worse: The installed version is split into 800 small xml files! With 4k block size that means ~3.6 MB.

I took this thinking it was trivial to do before heading for holidays but... sorry Ross, I'm resetting the assignee.
Comment 3 Jussi Kukkonen 2017-08-12 08:06:32 UTC
For a little more context: gdk-pixbuf already has a RDEPENDS on shared-mime-info for GIO image type sniffing (currently behind a packageconfig but upstream has already made that non-configurable and the recipe will soon follow).
Comment 4 Ross Burton 2017-09-05 15:09:13 UTC
Patch on the list to just add the dependency as a recommends.

I have a cunning plan for the space issue...
Comment 5 Ross Burton 2017-09-05 15:14:12 UTC
https://bugzilla.yoctoproject.org/show_bug.cgi?id=12046 is the plan
Comment 6 Ross Burton 2017-09-18 18:02:45 UTC
oe-core 51e4f9ca5368af5cefa26f4ca50b282e858982f8 has addition of the recommends.