<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f91afa422c15b08f834b9e44820f1acbaf31c11e">https://github.com/macports/macports-ports/commit/f91afa422c15b08f834b9e44820f1acbaf31c11e</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 f91afa4 openttd: fix build failure due to const char * rvalue
</span>f91afa4 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f91afa422c15b08f834b9e44820f1acbaf31c11e
</span>Author: Ken Cunningham <ken.cunningham.webuse@gmail.com>
AuthorDate: Sat Jun 17 08:28:22 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> openttd: fix build failure due to const char * rvalue
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> newer compilers flag setting a char * to a
</span><span style='display:block; white-space:pre;color:#404040;'> const char * as an error
</span>---
games/openttd/Portfile | 3 ++-
games/openttd/files/patch-src-fileio-const-char.diff | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/openttd/Portfile b/games/openttd/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0966eb9..8350c70 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/games/openttd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/openttd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,7 +49,8 @@ if {${name} eq ${subport}} {
</span>
patchfiles patch-config.lib-remove-deployment-target.diff \
patch-src__music__cocoa_m.cpp-support-new-audio-api.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-src__video__cocoa__wnd_quartz.mm-avoid-removed-cmgetsystemprofile.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-src__video__cocoa__wnd_quartz.mm-avoid-removed-cmgetsystemprofile.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-src-fileio-const-char.diff
</span>
configure.env-append \
CFLAGS_BUILD="${configure.cflags}" \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/openttd/files/patch-src-fileio-const-char.diff b/games/openttd/files/patch-src-fileio-const-char.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..1512ec8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/openttd/files/patch-src-fileio-const-char.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/fileio.cpp.orig 2017-06-16 21:51:32.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/fileio.cpp 2017-06-16 21:51:46.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1034,7 +1034,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bool success = false;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef WITH_COCOA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- char *app_bundle = strchr(exe, '.');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ char *app_bundle = (char *)strchr(exe, '.');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ while (app_bundle != NULL && strncasecmp(app_bundle, ".app", 4) != 0) app_bundle = strchr(&app_bundle[1], '.');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (app_bundle != NULL) app_bundle[0] = '\0';
</span></pre><pre style='margin:0'>
</pre>