[90962] trunk/dports/sysutils/e2fsprogs
macsforever2000 at macports.org
macsforever2000 at macports.org
Mon Mar 19 16:38:32 PDT 2012
Revision: 90962
https://trac.macports.org/changeset/90962
Author: macsforever2000 at macports.org
Date: 2012-03-19 16:38:31 -0700 (Mon, 19 Mar 2012)
Log Message:
-----------
e2fsprogs: leopard build fix. (#33692)
Modified Paths:
--------------
trunk/dports/sysutils/e2fsprogs/Portfile
Added Paths:
-----------
trunk/dports/sysutils/e2fsprogs/files/patch-lib-ext2fs-inline.c.diff
Modified: trunk/dports/sysutils/e2fsprogs/Portfile
===================================================================
--- trunk/dports/sysutils/e2fsprogs/Portfile 2012-03-19 21:26:21 UTC (rev 90961)
+++ trunk/dports/sysutils/e2fsprogs/Portfile 2012-03-19 23:38:31 UTC (rev 90962)
@@ -35,6 +35,11 @@
configure.compiler llvm-gcc-4.2
}
+platform darwin 9 {
+ # hack around missing memalign (#33692)
+ patchfiles-append patch-lib-ext2fs-inline.c.diff
+}
+
universal_variant no
configure.args-append --enable-bsd-shlibs \
Added: trunk/dports/sysutils/e2fsprogs/files/patch-lib-ext2fs-inline.c.diff
===================================================================
--- trunk/dports/sysutils/e2fsprogs/files/patch-lib-ext2fs-inline.c.diff (rev 0)
+++ trunk/dports/sysutils/e2fsprogs/files/patch-lib-ext2fs-inline.c.diff 2012-03-19 23:38:31 UTC (rev 90962)
@@ -0,0 +1,14 @@
+--- lib/ext2fs/inline.c.orig 2011-10-17 03:20:24.000000000 +0200
++++ lib/ext2fs/inline.c 2012-03-19 22:28:38.000000000 +0100
+@@ -60,7 +60,10 @@
+ return EXT2_ET_NO_MEMORY;
+ }
+ #else
+-#error memalign or posix_memalign must be defined!
++ *(void **) ptr = (align > 16) ? valloc(size) : malloc(size);
++ if (*(void **)ptr == NULL) {
++ return EXT2_ET_NO_MEMORY;
++ }
+ #endif
+ #endif
+ return 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120319/50b70ebd/attachment.html>
More information about the macports-changes
mailing list