<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2da3b23967cb44440dae15f300d19bfe432743f0">https://github.com/macports/macports-ports/commit/2da3b23967cb44440dae15f300d19bfe432743f0</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 2da3b23 lighttpd: fix build on Tiger
</span>2da3b23 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 2da3b23967cb44440dae15f300d19bfe432743f0
</span>Author: Ken Cunningham <ken.cunningham.webuse@gmail.com>
AuthorDate: Thu Jul 4 19:22:44 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> lighttpd: fix build on Tiger
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/58550
</span>---
www/lighttpd/Portfile | 3 ++-
www/lighttpd/files/patch-tigerfixes.diff | 42 ++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/lighttpd/Portfile b/www/lighttpd/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6a5cc8a..a75ca2e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/www/lighttpd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/lighttpd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,7 +52,8 @@ configure.args-append CC_FOR_BUILD="${configure.cc}" \
</span>
platform darwin {
depends_lib-append port:libev
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-conf-darwin.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-conf-darwin.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-tigerfixes.diff
</span> post-patch {
if {${os.major} <= 8} {
set user "www"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/lighttpd/files/patch-tigerfixes.diff b/www/lighttpd/files/patch-tigerfixes.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..8ce3b2f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/lighttpd/files/patch-tigerfixes.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,42 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+See: https://trac.macports.org/ticket/58550
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+fixes for Tiger build, but can be applied generally to all builds
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+also requires legacysupport PortGroup for *at functions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+kencu@macports.org
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/base.h src/base.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index f21973b..224d4f8 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/base.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/base.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7,6 +7,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/time.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__) && defined(__MACH__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <time.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "base_decls.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "buffer.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "array.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/mod_webdav.c src/mod_webdav.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 121e403..c0eb7d5 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/mod_webdav.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/mod_webdav.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2012,7 +2012,7 @@ webdav_prop_select_propnames (const plugin_config * const pconf,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(__APPLE__) && defined(__MACH__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__) && defined(__MACH__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <copyfile.h> /* fcopyfile() *//* OS X 10.5+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef HAVE_ELFTC_COPYFILE/* __FreeBSD__ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2045,7 +2045,7 @@ webdav_fcopyfile_sz (int ifd, int ofd, off_t isz)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*fcntl(ofd, F_SETFL, fcntl(ofd, F_GETFL, 0) & ~O_NONBLOCK);*/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #if defined(__APPLE__) && defined(__MACH__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #if defined(__APPLE__) && defined(__MACH__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (0 == fcopyfile(ifd, ofd, NULL, COPYFILE_ALL))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>