MacPorts on Lion (common issues, fixes, and workarounds)

Peter O'Gorman peter at pogma.com
Wed Jul 20 12:43:11 PDT 2011


On 07/20/2011 11:26 AM, Jeremy Huddleston wrote:

> 6) libnotify
>
> The libnotify port is disabled on Lion.  This blocks gnome,
> firefox-x11, and other ports.  There is a hacky workaround discussed
> in the Portfile, but it is recommended for *experts only* ... I
> really can't stress that enough.

Hi,

For libnotify, why not simply rename it in its Makefile.{am,in} to e.g. 
libnotify_g and adjust the .pc Libs field to have -lnotify_g instead of 
-lnotify.

Clients of the library that use the pkg-config to find it will still 
find it, but it won't conflict with the systems libnotify.

Of course there will be some things that will need to be patched, but 
then s/lnotify/lnotify_g/ should fix them too.

Peter


More information about the macports-dev mailing list