<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11792</bug_id>
          
          <creation_ts>2017-07-14 14:17:55 +0000</creation_ts>
          <short_desc>glib: RRECOMMENDS shared-mime-info</short_desc>
          <delta_ts>2017-09-18 18:02:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>clopez</cc>
    
    <cc>jku</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75035</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-07-14 14:17:55 +0000</bug_when>
    <thetext>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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75049</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-07-15 09:59:14 +0000</bug_when>
    <thetext>I think this makes sense.

the mime DB is ~2.2MB -- or 200kB if we removed comments...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75094</commentid>
    <comment_count>2</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-07-18 07:46:41 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; the mime DB is ~2.2MB -- or 200kB if we removed comments...

It&apos;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&apos;m resetting the assignee.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75825</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-08-12 08:06:32 +0000</bug_when>
    <thetext>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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76533</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-09-05 15:09:13 +0000</bug_when>
    <thetext>Patch on the list to just add the dependency as a recommends.

I have a cunning plan for the space issue...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76535</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-09-05 15:14:12 +0000</bug_when>
    <thetext>https://bugzilla.yoctoproject.org/show_bug.cgi?id=12046 is the plan</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76936</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-09-18 18:02:45 +0000</bug_when>
    <thetext>oe-core 51e4f9ca5368af5cefa26f4ca50b282e858982f8 has addition of the recommends.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>