<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/e32a59a0e5373b559b928826c8f1a9f9ce889c5a">https://github.com/macports/macports-ports/commit/e32a59a0e5373b559b928826c8f1a9f9ce889c5a</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 e32a59a0e53 xmlto: Fix build with latest clang
</span>e32a59a0e53 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e32a59a0e5373b559b928826c8f1a9f9ce889c5a
</span>Author: Ryan Carsten Schmidt <ryandesign@macports.org>
AuthorDate: Thu Apr 4 05:47:42 2024 -0500
<span style='display:block; white-space:pre;color:#404040;'> xmlto: Fix build with latest clang
</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/69621
</span>---
textproc/xmlto/Portfile | 4 +--
textproc/xmlto/files/xmlif.l.patch | 50 ++++++++++++++++++++++++++++++++++++++
2 files changed, 52 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/xmlto/Portfile b/textproc/xmlto/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 914f121320d..6f7d735a1b5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/xmlto/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/xmlto/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,11 +4,10 @@ PortSystem 1.0
</span>
name xmlto
version 0.0.28
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 8
</span> categories textproc
license GPL-2+
installs_libs no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers nomaintainer
description Convert an XML document to another format based on XSL \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,6 +39,7 @@ depends_run port:docbook-xml \
</span> port:util-linux
patchfiles searchpath_local.patch \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ xmlif.l.patch \
</span> xml-catalog.patch
configure.env-append \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/xmlto/files/xmlif.l.patch b/textproc/xmlto/files/xmlif.l.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..63ea36f4a21
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/xmlto/files/xmlif.l.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,50 @@
</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: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+warning: implicit declaration of function ‘strncasecmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://pagure.io/xmlto/c/1375e2df75530cd198bd16ac3de38e2b0d126276
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://pagure.io/xmlto/c/412f97cdc00d2bbf7e8121012b49fc07b3fe3d2b
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://pagure.io/xmlto/c/8e34f087bf410bcc5fe445933d6ad9bae54f24b5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://pagure.io/xmlto/c/6fa6a0e07644f20abf2596f78a60112713e11cbe
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- xmlif/xmlif.l.orig 2015-02-11 06:20:51.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ xmlif/xmlif.l 2024-04-04 04:16:13.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -37,13 +37,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <strings.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define TRUE 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define FALSE 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static char **selections; /* selection tokens */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static int nselections; /* number of selections */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-static ifsense; /* sense of last `if' or unless seen */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static int ifsense; /* sense of last `if' or unless seen */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static char *attribute; /* last attribute scanned */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct stack_t {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -237,9 +238,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "config.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-int yywrap() {exit(0);};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int yywrap() {exit(0);}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-main(int argc, char *argv[])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int main(int argc, char *argv[])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int i;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -265,7 +266,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exit(1);
</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;'>+- yylex();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return yylex();
</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></pre><pre style='margin:0'>
</pre>