<pre style='margin:0'>
Ryan Carsten Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/dfd9884cd7e63158f2ea3395d8a3755f1553b4bd">https://github.com/macports/macports-ports/commit/dfd9884cd7e63158f2ea3395d8a3755f1553b4bd</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 dfd9884cd7e gnucobol: Fix build failure with latest libxml2
</span>dfd9884cd7e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit dfd9884cd7e63158f2ea3395d8a3755f1553b4bd
</span>Author: Ryan Carsten Schmidt <ryandesign@macports.org>
AuthorDate: Fri Sep 20 21:39:05 2024 -0500
<span style='display:block; white-space:pre;color:#404040;'> gnucobol: Fix build failure with latest libxml2
</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/70848
</span>---
lang/gnucobol/Portfile | 2 ++
lang/gnucobol/files/libxml2.patch | 15 +++++++++++++++
2 files changed, 17 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gnucobol/Portfile b/lang/gnucobol/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 7d8536f5354..1f77cfbd3f2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gnucobol/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gnucobol/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,6 +31,8 @@ depends_lib-append port:db48 \
</span> port:gmp \
port:ncurses
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles libxml2.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.cppflags-append -I${prefix}/include/db48
configure.ldflags-append -L${prefix}/lib/db48
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gnucobol/files/libxml2.patch b/lang/gnucobol/files/libxml2.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d9ca73e524b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gnucobol/files/libxml2.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: call to undeclared function 'xmlCleanupParser'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://sourceforge.net/p/gnucobol/code/5295/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libcob/common.c.orig 2023-07-28 12:16:38.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libcob/common.c 2024-09-20 21:38:22.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -134,6 +134,7 @@
</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 (WITH_XML2)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <libxml/parser.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <libxml/xmlversion.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <libxml/xmlwriter.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span></pre><pre style='margin:0'>
</pre>