[61466] trunk/dports/x11/xorg-libXt

jeremyhu at macports.org jeremyhu at macports.org
Fri Dec 11 17:08:18 PST 2009


Revision: 61466
          http://trac.macports.org/changeset/61466
Author:   jeremyhu at macports.org
Date:     2009-12-11 17:08:15 -0800 (Fri, 11 Dec 2009)
Log Message:
-----------
xorg-libXt: Don't use poll() on SnowLeopard either

Modified Paths:
--------------
    trunk/dports/x11/xorg-libXt/Portfile

Added Paths:
-----------
    trunk/dports/x11/xorg-libXt/files/
    trunk/dports/x11/xorg-libXt/files/0001-darwin-xnu-doesn-t-support-poll-on-ttys-on-the-maste.patch

Modified: trunk/dports/x11/xorg-libXt/Portfile
===================================================================
--- trunk/dports/x11/xorg-libXt/Portfile	2009-12-12 00:54:22 UTC (rev 61465)
+++ trunk/dports/x11/xorg-libXt/Portfile	2009-12-12 01:08:15 UTC (rev 61466)
@@ -4,6 +4,7 @@
 
 name            xorg-libXt
 version         1.0.7
+revision        1
 categories      x11 devel
 maintainers     jeremyhu openmaintainer
 description     X.org libXt
@@ -23,11 +24,18 @@
 use_bzip2   yes
 use_parallel_build      yes
 
-depends_build   port:pkgconfig
+depends_build   port:pkgconfig \
+		port:xorg-util-macros
 
 depends_lib     port:xorg-libsm \
                 port:xorg-libX11
 
+patchfiles 0001-darwin-xnu-doesn-t-support-poll-on-ttys-on-the-maste.patch
+patch.args -p1
+
+use_autoreconf yes
+autoreconf.args -fvi
+
 livecheck.type  regex
 livecheck.url   [lindex ${master_sites} 0]?C=M&O=D
 livecheck.regex libXt-(\\d+(?:\\.\\d+)*)

Added: trunk/dports/x11/xorg-libXt/files/0001-darwin-xnu-doesn-t-support-poll-on-ttys-on-the-maste.patch
===================================================================
--- trunk/dports/x11/xorg-libXt/files/0001-darwin-xnu-doesn-t-support-poll-on-ttys-on-the-maste.patch	                        (rev 0)
+++ trunk/dports/x11/xorg-libXt/files/0001-darwin-xnu-doesn-t-support-poll-on-ttys-on-the-maste.patch	2009-12-12 01:08:15 UTC (rev 61466)
@@ -0,0 +1,31 @@
+From b798093fc6cbcf35c095f3401586d2741adcd2cd Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston <jeremyhu at freedesktop.org>
+Date: Fri, 11 Dec 2009 17:04:23 -0800
+Subject: [PATCH] darwin: xnu doesn't support poll on ttys on the master side.
+
+<rdar://problem/7360546>
+
+Signed-off-by: Jeremy Huddleston <jeremyhu at freedesktop.org>
+---
+ configure.ac |    5 ++---
+ 1 files changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 077cd4c..5fdef59 100755
+--- a/configure.ac
++++ b/configure.ac
+@@ -61,9 +61,8 @@ AC_CHECK_HEADER([alloca.h], AC_DEFINE(INCLUDE_ALLOCA_H, 1, [Define to 1 if Xallo
+ 
+ # Map function checks to old Imake #defines
+ case $host_os in
+-	# darwin has poll() but can't be used to poll character devices
+-	# darwin10 (SnowLeopard) should be tested as well once released
+-	darwin7*) ;; darwin8*) ;; darwin9*) ;;
++	# darwin has poll() but can't be used to poll character devices (atleast through SnowLeopard)
++	darwin*) ;;
+ 	*)
+ 		AC_CHECK_FUNC(poll, AC_DEFINE(USE_POLL,1,
+ 	        	[Define to 1 if you have the "poll" function.]))
+-- 
+1.6.5.3
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091211/8b185646/attachment-0001.html>


More information about the macports-changes mailing list