[117341] trunk/dports/devel/libgit2
devans at macports.org
devans at macports.org
Sat Feb 22 18:39:41 PST 2014
Revision: 117341
https://trac.macports.org/changeset/117341
Author: devans at macports.org
Date: 2014-02-22 18:39:41 -0800 (Sat, 22 Feb 2014)
Log Message:
-----------
libgit2: blind patch to fix build on SL, maintainer update (#42579).
Modified Paths:
--------------
trunk/dports/devel/libgit2/Portfile
Added Paths:
-----------
trunk/dports/devel/libgit2/files/
trunk/dports/devel/libgit2/files/patch-strnlen-posix.h.diff
Modified: trunk/dports/devel/libgit2/Portfile
===================================================================
--- trunk/dports/devel/libgit2/Portfile 2014-02-23 01:32:00 UTC (rev 117340)
+++ trunk/dports/devel/libgit2/Portfile 2014-02-23 02:39:41 UTC (rev 117341)
@@ -32,6 +32,8 @@
configure.dir ${workpath}/build
build.dir ${configure.dir}
+patchfiles patch-strnlen-posix.h.diff
+
post-extract {
file mkdir ${configure.dir}
}
Added: trunk/dports/devel/libgit2/files/patch-strnlen-posix.h.diff
===================================================================
--- trunk/dports/devel/libgit2/files/patch-strnlen-posix.h.diff (rev 0)
+++ trunk/dports/devel/libgit2/files/patch-strnlen-posix.h.diff 2014-02-23 02:39:41 UTC (rev 117341)
@@ -0,0 +1,22 @@
+--- src/posix.h.orig 2014-02-22 12:30:23.000000000 +0100
++++ src/posix.h 2014-02-22 12:35:02.000000000 +0100
+@@ -93,6 +93,19 @@
+ # define p_strnlen strnlen
+ #endif
+
++#ifdef __APPLE__
++#include <Availability.h>
++#if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
++static size_t
++strnlen (const char *string, size_t maxlen)
++{
++ const char *end = memchr (string, '\0', maxlen);
++ return end ? (size_t) (end - string) : maxlen;
++}
++# define p_strnlen strnlen
++#endif
++#endif
++
+ #ifdef NO_READDIR_R
+ # include <dirent.h>
+ GIT_INLINE(int) p_readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140222/7103ff53/attachment.html>
More information about the macports-changes
mailing list