<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/2cca5915d4f43a66bd4562a3bbfba3117ac1cca9">https://github.com/macports/macports-ports/commit/2cca5915d4f43a66bd4562a3bbfba3117ac1cca9</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 2cca591 libcdio: allow use of older gcc compilers
</span>2cca591 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 2cca5915d4f43a66bd4562a3bbfba3117ac1cca9
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Wed Oct 9 12:40:07 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> libcdio: allow use of older gcc compilers
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> by moving an in-function pragma
</span><span style='display:block; white-space:pre;color:#404040;'> using a newer gcc doesn't work on Tiger due to some
</span><span style='display:block; white-space:pre;color:#404040;'> pragma usage in the Tiger headers. gcc bug 50909, still open
</span>---
devel/libcdio/Portfile | 6 ++++--
.../files/patch-libcdio-lib-iso9660-move-pragma.diff | 20 ++++++++++++++++++++
2 files changed, 24 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libcdio/Portfile b/devel/libcdio/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a92f95a..3a978fb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libcdio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libcdio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,8 +36,10 @@ depends_lib-append \
</span> port:ncurses \
port:popt
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# iso9660.c:376: error: #pragma GCC diagnostic not allowed inside functions
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.blacklist *gcc-4.* *gcc-3.*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# move pragma outside of function so that older gcc versions can compile it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# using newer gcc versions on Tiger in these files doesn't work as FSF gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# doesn't understand the pramga usage in the Tiger headers - gcc bug 50909
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-libcdio-lib-iso9660-move-pragma.diff
</span>
# Required to get a newer libtool that understands -stdlib.
use_autoreconf yes
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libcdio/files/patch-libcdio-lib-iso9660-move-pragma.diff b/devel/libcdio/files/patch-libcdio-lib-iso9660-move-pragma.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..38989be
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libcdio/files/patch-libcdio-lib-iso9660-move-pragma.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git lib/iso9660/iso9660.c lib/iso9660/iso9660.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index bb514d9..bf8d6b3 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/iso9660/iso9660.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/iso9660/iso9660.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -361,6 +361,7 @@ iso9660_set_dtime(const struct tm *p_tm, /*out*/ iso9660_dtime_t *p_idr_date)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from a Unix time structure. timezone is given as an offset
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ correction in minutes.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#pragma GCC diagnostic ignored "-Wformat-truncation"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iso9660_set_ltime_with_timezone(const struct tm *p_tm,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int time_zone,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -373,7 +374,6 @@ iso9660_set_ltime_with_timezone(const struct tm *p_tm,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (!p_tm) return;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#pragma GCC diagnostic ignored "-Wformat-truncation"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ snprintf(_pvd_date, 17,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "%4.4d%2.2d%2.2d" "%2.2d%2.2d%2.2d" "%2.2d",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ p_tm->tm_year + 1900, p_tm->tm_mon + 1, p_tm->tm_mday,
</span></pre><pre style='margin:0'>
</pre>