<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/febdd3d5d663b63462ee9f7f58ef6353cdaa7604">https://github.com/macports/macports-ports/commit/febdd3d5d663b63462ee9f7f58ef6353cdaa7604</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 febdd3d5d66 ssed: Fix implicit declaration of functions
</span>febdd3d5d66 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit febdd3d5d663b63462ee9f7f58ef6353cdaa7604
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun Feb 14 00:26:05 2021 -0600
<span style='display:block; white-space:pre;color:#404040;'> ssed: Fix implicit declaration of functions
</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/62291
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Also modernize checksums.
</span>---
textproc/ssed/Portfile | 7 +++-
textproc/ssed/files/implicit.patch | 68 ++++++++++++++++++++++++++++++++++++++
2 files changed, 74 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/ssed/Portfile b/textproc/ssed/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e18114492e6..bbba2573fa4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/ssed/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/ssed/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,6 +2,10 @@ PortSystem 1.0
</span>
name ssed
version 3.62
<span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 997ed98147539e67934c5756bf37a11b7125f4ab \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 af7ff67e052efabf3fd07d967161c39db0480adc7c01f5100a1996fec60b8ec4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 855644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> categories textproc
license GPL-2+
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,10 +19,11 @@ long_description This is a version of sed based on GNU sed. It is not a \
</span> homepage http://sed.sourceforge.net/
master_sites http://sed.sourceforge.net/grabbag/ssed/ freebsd
distname sed-${version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 8f35882af95da4e5ddbf3de1add26f79
</span>
depends_lib port:libiconv port:gettext
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles implicit.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args --program-prefix=s \
--mandir=${prefix}/share/man --infodir=${prefix}/share/info \
--with-libiconv-prefix=${prefix} \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/ssed/files/implicit.patch b/textproc/ssed/files/implicit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9382f8c41e1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/ssed/files/implicit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,68 @@
</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;'>+conftest.c:51:7: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+getopt.c:576:30: error: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+getopt.c:655:21: error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+utils.c:96:4: error: implicit declaration of function 'unlink' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+sed.c:178:3: error: implicit declaration of function 'initialize_mbcs' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2005-02-08 11:31:24.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2021-02-14 00:09:59.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3376,8 +3376,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (i = 0; i < 256; i++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (XOR (islower (i), ISLOWER (i))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || toupper (i) != TOUPPER (i))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit(2);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit (0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return 2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f conftest$ac_exeext
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -5738,7 +5738,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (!in)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ len = getline (&line, &siz, in);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return (len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 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;'>+ _ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/getopt.c.orig 2004-11-06 05:37:29.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/getopt.c 2021-02-14 00:18:13.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -43,6 +43,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;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Comment out all this code if we are using the GNU C Library, and are not
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ actually compiling the library itself. This code is part of the GNU C
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/utils.c.orig 2004-11-06 05:37:29.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/utils.c 2021-02-14 00:13:38.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -35,6 +35,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* HAVE_STDLIB_H */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef HAVE_UNISTD_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <unistd.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 "utils.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char *myname;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- sed/sed.c.orig 2004-11-11 08:33:59.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ sed/sed.c 2021-02-14 00:23:06.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -59,6 +59,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define ATOI(x) strtoul(x, NULL, 0)
</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;'>++extern void initialize_mbcs();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int extended_regexp_flags = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* If set, fflush(stdout) on every line output. */
</span></pre><pre style='margin:0'>
</pre>