Opened 10 years ago

Last modified 8 years ago

#44165 new defect

Incomplete mpkg of gtk2 port — at Initial Version

Reported by: manuel.op.de.coul@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.0
Keywords: Cc:
Port: gtk2, gdk-pixbuf2

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

Change History (0)

Note: See TracTickets for help on using tickets.