[79664] trunk/dports/devel/libnotify/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Wed Jun 22 14:27:21 PDT 2011


Revision: 79664
          http://trac.macports.org/changeset/79664
Author:   jeremyhu at macports.org
Date:     2011-06-22 14:27:20 -0700 (Wed, 22 Jun 2011)
Log Message:
-----------
libnotify: Don't install on Lion

Yes, I know it installs and runs fine, but when libnotify.dylib is present in
${prefix}/lib, it causes problems when linking future binaries.  This results
in miscelaneous build failures and runtime failures that are difficult to
diagnose.

Rather than subject users to these problems, it is better to disable this port
until we can come up with a good solution for Lion.

Modified Paths:
--------------
    trunk/dports/devel/libnotify/Portfile

Modified: trunk/dports/devel/libnotify/Portfile
===================================================================
--- trunk/dports/devel/libnotify/Portfile	2011-06-22 20:49:33 UTC (rev 79663)
+++ trunk/dports/devel/libnotify/Portfile	2011-06-22 21:27:20 UTC (rev 79664)
@@ -28,6 +28,28 @@
     patchfiles-append   patch-libnotify-notification-c.diff
 }
 
+platform darwin 11 {
+    pre-fetch {
+        # This port installs ${prefix}/lib/libnotify.dylib which gets
+        # picked up at link time instead of /usr/lib/system/libnotify.dylib
+        # leading to many build failures across MacPorts when it is installed.
+        #
+        # For now, let's block this port on Lion while we investigate our options.
+        ui_error "This port causes problems on Lion, so it will not be installed."
+        error "libnotify is not supported on Lion."
+    }
+
+    pre-activate {
+        # This port installs ${prefix}/lib/libnotify.dylib which gets
+        # picked up at link time instead of /usr/lib/system/libnotify.dylib
+        # leading to many build failures across MacPorts when it is installed.
+        #
+        # For now, let's block this port on Lion while we investigate our options.
+        ui_error "This port causes problems on Lion, so it will not be installed."
+        error "libnotify is not supported on Lion."
+    }
+}
+
 depends_build       port:pkgconfig
 depends_lib         port:gtk2 port:dbus-glib
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110622/4512201a/attachment.html>


More information about the macports-changes mailing list