[88178] trunk/dports/x11/quartz-wm

jeremyhu at macports.org jeremyhu at macports.org
Wed Dec 21 09:42:56 PST 2011


Revision: 88178
          http://trac.macports.org/changeset/88178
Author:   jeremyhu at macports.org
Date:     2011-12-21 09:42:53 -0800 (Wed, 21 Dec 2011)
Log Message:
-----------
quartz-wm: Build fix for Leopard, #32609

Modified Paths:
--------------
    trunk/dports/x11/quartz-wm/Portfile

Added Paths:
-----------
    trunk/dports/x11/quartz-wm/files/
    trunk/dports/x11/quartz-wm/files/leopard.patch

Modified: trunk/dports/x11/quartz-wm/Portfile
===================================================================
--- trunk/dports/x11/quartz-wm/Portfile	2011-12-21 17:20:55 UTC (rev 88177)
+++ trunk/dports/x11/quartz-wm/Portfile	2011-12-21 17:42:53 UTC (rev 88178)
@@ -22,6 +22,9 @@
 use_autoreconf  yes
 autoreconf.args -fvi
 
+patchfiles      leopard.patch
+patch.args      -p1
+
 depends_build   port:xorg-util-macros \
                 port:pkgconfig  
 

Added: trunk/dports/x11/quartz-wm/files/leopard.patch
===================================================================
--- trunk/dports/x11/quartz-wm/files/leopard.patch	                        (rev 0)
+++ trunk/dports/x11/quartz-wm/files/leopard.patch	2011-12-21 17:42:53 UTC (rev 88178)
@@ -0,0 +1,32 @@
+commit debceb4a7fc39af77a98365a4012e988c3a3aad7
+Author: Jeremy Huddleston <jeremyhu at apple.com>
+Date:   Tue Dec 20 21:26:24 2011 -0800
+
+    Link with -undefined dynamic_lookup
+    
+    dock-support.o contains some symbols which may not be present at link
+    time on older OS versions.  These symbols are annotated with weak_import
+    and checked for at runtime, so it was possible to build on Snow Leopard
+    and run on Leopard, but it was not possible to build on Leopard since
+    these symbols are not available at link time.  This change makes it
+    possible to build on Leopard and places the burden of resolving those
+    symbols on dyld.
+    
+    Resolves: https://trac.macports.org/ticket/32609
+    
+    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 1eeb8c6..30ea33b 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -28,7 +28,8 @@ AM_CFLAGS = $(QUARTZWM_CFLAGS) $(CWARNFLAGS)
+ quartz_wm_LDFLAGS = $(QUARTZWM_LIBS) \
+ 	-framework AppKit \
+ 	-framework Foundation \
+-	-framework ApplicationServices
++	-framework ApplicationServices \
++	-undefined dynamic_lookup
+ 
+ quartz_wm_LDADD = dock-support.o
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111221/a7fed428/attachment.html>


More information about the macports-changes mailing list