#45354: gdk-pixbuf2 @2.31.1 Hidden dependency on shared-mime-info ------------------------+-------------------------------- Reporter: bgilbert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: | Port: gdk-pixbuf2 ------------------------+-------------------------------- When reading an image file, gdk-pixbuf has two ways to select an appropriate loader: via GIO format sniffing, or via magic numbers provided by the individual loaders. Any particular build of gdk-pixbuf uses only one of these methods. By default, gdk-pixbuf uses GIO format sniffing if the `shared-mime-info` database is available at compile time, and built-in sniffing otherwise. The `gdk-pixbuf2` package does not declare `shared-mime-info` as a build dependency, but apparently it is installed on the build servers, as GIO sniffing ends up enabled: {{{ $ nm -u /opt/local/lib/libgdk_pixbuf-2.0.dylib | grep g_content_type_guess _g_content_type_guess }}} Since `shared-mime-info` is also not declared as a runtime dependency, `port install gdk-pixbuf2` on a pristine system will install a gdk-pixbuf that refuses to open any image files. Possible fixes: 1. Add a `shared-mime-info` dependency to `glib2`, since GIO is really the component that uses the `shared-mime-info` database. 2. Add a `shared-mime-info` dependency to `gdk-pixbuf2`, and either build- depend on `shared-mime-info` or configure with `--enable-gio-sniffing`. 3. Configure `gdk-pixbuf2` with `--disable-gio-sniffing`. -- Ticket URL: <https://trac.macports.org/ticket/45354> MacPorts <http://www.macports.org/> Ports system for OS X