[39130] trunk/dports/lang/ghc

gwright at macports.org gwright at macports.org
Sat Aug 9 10:22:36 PDT 2008


Revision: 39130
          http://trac.macosforge.org/projects/macports/changeset/39130
Author:   gwright at macports.org
Date:     2008-08-09 10:22:34 -0700 (Sat, 09 Aug 2008)
Log Message:
-----------
Patch a socket bug and minor Portfile change to allow "port build"
to change to the working directory.

Modified Paths:
--------------
    trunk/dports/lang/ghc/Portfile

Added Paths:
-----------
    trunk/dports/lang/ghc/files/patch-libraries-network-Socket.hsc.diff

Modified: trunk/dports/lang/ghc/Portfile
===================================================================
--- trunk/dports/lang/ghc/Portfile	2008-08-09 16:59:28 UTC (rev 39129)
+++ trunk/dports/lang/ghc/Portfile	2008-08-09 17:22:34 UTC (rev 39130)
@@ -4,6 +4,7 @@
 
 name		ghc
 version		6.8.3
+revision	1
 categories	lang
 maintainers	gwright at macports.org
 platforms	darwin
@@ -48,7 +49,8 @@
 		patch-libraries-hpc-hpc.cabal.diff			\
 		patch-libraries-hpc-hpc.buildinfo.in.diff		\
 		patch-libraries-hpc-configure.ac.diff			\
-		patch-libraries-hpc-aclocal.m4.diff
+		patch-libraries-hpc-aclocal.m4.diff			\
+		patch-libraries-network-Socket.hsc.diff
 
 depends_lib	port:readline \
 		port:gmp
@@ -203,7 +205,7 @@
 #}
 
 build	{
-	system "env DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib ${build.cmd}"
+	system "cd ${worksrcpath} && env DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib ${build.cmd}"
 }
 
 # This should not be necessary, but it seems to work around a bug

Added: trunk/dports/lang/ghc/files/patch-libraries-network-Socket.hsc.diff
===================================================================
--- trunk/dports/lang/ghc/files/patch-libraries-network-Socket.hsc.diff	                        (rev 0)
+++ trunk/dports/lang/ghc/files/patch-libraries-network-Socket.hsc.diff	2008-08-09 17:22:34 UTC (rev 39130)
@@ -0,0 +1,11 @@
+--- libraries/network/Network/Socket.hsc.sav	2008-08-08 21:12:59.000000000 -0700
++++ libraries/network/Network/Socket.hsc	2008-08-08 19:32:52.000000000 -0700
+@@ -524,7 +524,7 @@
+ #if defined(darwin_TARGET_OS)
+ 	zeroMemory p (#const sizeof(struct sockaddr_in6))
+ #endif
+-#if defined(netbsd_TARGET_OS)
++#if defined(SIN6_LEN)
+ 	(#poke struct sockaddr_in6, sin6_len) p ((#const sizeof(struct sockaddr_in6)) :: Word8)
+ #endif
+ 	(#poke struct sockaddr_in6, sin6_family) p ((#const AF_INET6) :: CSaFamily)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080809/78412d5d/attachment.html 


More information about the macports-changes mailing list