#45354: gdk-pixbuf2 @2.31.1 Hidden dependency on shared-mime-info --------------------------+---------------------- Reporter: bgilbert@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: gdk-pixbuf2 | --------------------------+---------------------- Changes (by devans@…): * status: assigned => closed * resolution: => fixed Comment: Confirmed that although, technically, neither glib2 nor gdkpixbuf2 depend on shared-mime-info, g_content_type_guess() does use it to guess mime type if present. If not, it doesn't fail but falls back to either 'text/plain' if it appears to text or 'application/octet-stream' otherwise. gdk- pixbuf2 will then fail to configure gio sniffing if shared-mime-info (including any previously cached mime data) is not available. Since glib2 can't depend on shared-mime-info due to the creation of a dependency loop, this means not just gdk-pixbuf2, but any port that wants to use this gio sniffing facility, needs to have shared-mime-info in its dependency tree at run time. Both gtk2 and gtk3 have shared-mime-info as a run time dependency so this is covered in many cases. Library dependency on shared-mime-info added to gdk-pixbuf2 and revision incremented in r126880 to ensure the presence of shared-mime-info when gdk-pixbuf2 is configured and run. Good catch, indeed! Thanks. -- Ticket URL: <https://trac.macports.org/ticket/45354#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X