Skip to content
Permalink
Browse files

p5-file-rsyncp: fix build on Mavericks; add p5.18 subport

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@118332 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
ryandesign committed Mar 31, 2014
1 parent 152fb2c commit 87c1a32d16d094385ed9c065361ca159c58f2d39
Showing with 22 additions and 1 deletion.
  1. +3 −1 perl/p5-file-rsyncp/Portfile
  2. +19 −0 perl/p5-file-rsyncp/files/patch-FileList.flist.c.diff
@@ -4,7 +4,7 @@
PortSystem 1.0
PortGroup perl5 1.0

perl5.branches 5.8 5.10 5.12 5.14 5.16
perl5.branches 5.8 5.10 5.12 5.14 5.16 5.18
perl5.setup File-RsyncP 0.70
revision 3
platforms darwin
@@ -17,3 +17,5 @@ use_parallel_build no

checksums sha1 5ef21c8b0a5e62cdc0d0bdf697a5bd9caaeafc94 \
rmd160 81b404338386e971b7238cc9597ad8c7c4a8e60a

patchfiles patch-FileList.flist.c.diff
@@ -0,0 +1,19 @@
https://rt.cpan.org/Public/Bug/Display.html?id=94323
--- FileList/flist.c.orig 2010-07-25 15:50:02.000000000 -0500
+++ FileList/flist.c 2014-03-30 19:02:07.000000000 -0500
@@ -726,6 +726,7 @@
* terminates. bufsize is the size of the destination buffer.
*
* Returns the index of the terminating byte. */
+#ifndef HAVE_STRLCPY
size_t strlcpy(char *d, const char *s, size_t bufsize)
{
size_t len = strlen(s);
@@ -736,6 +737,7 @@
d[len] = 0;
return ret;
}
+#endif

/* we need to supply our own strcmp function for file list comparisons
to ensure that signed/unsigned usage is consistent between machines. */

0 comments on commit 87c1a32

Please sign in to comment.
You can’t perform that action at this time.