#44165: Incomplete mpkg of gtk2 port ----------------------------------+-------------------------------- Reporter: manuel.op.de.coul@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gtk2 | ----------------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: mpkg incomplete => Old description:
I encountered a problem with the .mpkg file created with the command sudo port mpkg gtk2 When this package is installed on a clean Mac, the application that uses it can not display image files. This is confirmed because the gtk2 package contains a gtk-demo program in /opt/local/share/gtk-2.0/demo and when you click on the Images widget example button ïn this program you see a broken image together with error messages like "failed to load image". It happens on all OSX versions 10.6, 10.7, 10.8 and 10.9. After a long search for the problem I noticed that the folder /opt/local/share/mime on the clean Mac contained fewer files than on the machine with Macports on it. After copying all the missing files it finally worked! I had already sought the problem in the immodules cache (which is created with gtk-query-immodules-2.0) and found no problem with it, but noticed that it contains MIME names. So apparently gtk2 gives up loading an image if the MIME name cannot be resolved.
Please fix this. Of course I don't know if it's simply a missing dependency in the gtk2 package or a fault in the mpkg/mdmg code. But gtk2 needs the MIME database included. Thanks,
Manuel Op de Coul
New description: I encountered a problem with the .mpkg file created with the command {{{ sudo port mpkg gtk2 }}} When this package is installed on a clean Mac, the application that uses it can not display image files. This is confirmed because the gtk2 package contains a gtk-demo program in /opt/local/share/gtk-2.0/demo and when you click on the Images widget example button ïn this program you see a broken image together with error messages like "failed to load image". It happens on all OSX versions 10.6, 10.7, 10.8 and 10.9. After a long search for the problem I noticed that the folder /opt/local/share/mime on the clean Mac contained fewer files than on the machine with Macports on it. After copying all the missing files it finally worked! I had already sought the problem in the immodules cache (which is created with gtk-query-immodules-2.0) and found no problem with it, but noticed that it contains MIME names. So apparently gtk2 gives up loading an image if the MIME name cannot be resolved. Please fix this. Of course I don't know if it's simply a missing dependency in the gtk2 package or a fault in the mpkg/mdmg code. But gtk2 needs the MIME database included. Thanks, Manuel Op de Coul -- Comment: Which mime files were missing, and which port provides them? -- Ticket URL: <https://trac.macports.org/ticket/44165#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X