<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/96a2a9021cfeb38f5b7abff54fc5d599ec8ce214">https://github.com/macports/macports-ports/commit/96a2a9021cfeb38f5b7abff54fc5d599ec8ce214</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 96a2a9021cf a2ps: Fix implicit declaration of functions
</span>96a2a9021cf is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 96a2a9021cfeb38f5b7abff54fc5d599ec8ce214
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Dec 29 21:49:22 2020 -0600
<span style='display:block; white-space:pre;color:#404040;'> a2ps: 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/61729
</span>---
print/a2ps/Portfile | 4 +-
print/a2ps/files/implicit.patch | 122 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 125 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/print/a2ps/Portfile b/print/a2ps/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1bde18aefd9..05eda180e48 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/print/a2ps/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/print/a2ps/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,7 +18,9 @@ checksums md5 781ac3d9b213fa3e1ed0d79f986dc8c7 \
</span>
depends_build bin:psnup:psutils
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-contrib_sample_Makefile.in patch-lib__xstrrpl.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-contrib_sample_Makefile.in \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-lib__xstrrpl.c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ implicit.patch
</span>
pre-configure { reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/configure }
configure.args --with-medium=Letter \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/print/a2ps/files/implicit.patch b/print/a2ps/files/implicit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..137f382508c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/print/a2ps/files/implicit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,122 @@
</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: implicit declaration of function 'puts' 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;'>+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;'>+error: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+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;'>+error: implicit declaration of function 'ioctl' 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;'>+error: implicitly declaring library function 'abort' with type 'void (void) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2007-12-28 21:28:03.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2020-12-29 21:20:42.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23909,6 +23909,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cat >>conftest.$ac_ext <<_ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* end confdefs.h. */
</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;'>+ int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ main ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -24684,7 +24685,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cat >>conftest.$ac_ext <<_ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* end confdefs.h. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-int main () { exit (rename ("conftest.1", "conftest.2")); }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int main () { return rename("conftest.1", "conftest.2"); }
</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;'>+ if { (ac_try="$ac_link"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -27310,7 +27311,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ main ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit (malloc (0) ? 0 : 1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return malloc(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;'>+@@ -27391,7 +27392,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ main ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- exit (realloc (0, 0) ? 0 : 1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return realloc(0, 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/argmatch.c.orig 2007-12-28 19:37:53.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/argmatch.c 2020-12-29 21:19:51.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -22,6 +22,7 @@
</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;'>+ #ifdef STDC_HEADERS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <string.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;'>+--- lib/path-concat.c.orig 2007-12-28 19:37:54.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/path-concat.c 2020-12-29 21:22:53.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -31,7 +31,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-/* char *malloc (); */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef HAVE_STDLIB_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <stdlib.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;'>+ #ifndef DIRECTORY_SEPARATOR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define DIRECTORY_SEPARATOR '/'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/title.c.orig 2007-12-28 19:37:54.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/title.c 2020-12-29 21:28:02.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -29,6 +29,10 @@
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef HAVE_STRING_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <string.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;'>+ #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if __STDC__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <stdarg.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/tterm.c.orig 2007-12-28 19:37:54.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/tterm.c 2020-12-29 21:26:23.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -63,7 +63,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <termios.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;'>+-#ifdef HAVE_SYS_IOCTL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef HAVE_SYS_IOCTL_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <sys/ioctl.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;'>+--- lib/obstack.h.orig 2007-12-28 19:37:59.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/obstack.h 2020-12-29 21:41:26.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -109,6 +109,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef _OBSTACK_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define _OBSTACK_H 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef HAVE_CONFIG_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include "config.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;'>+ #ifdef __cplusplus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern "C" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/long-options.c.orig 2007-12-28 19:33:58.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/long-options.c 2020-12-29 21:44:25.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -22,6 +22,9 @@
</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;'>++#ifdef HAVE_STDLIB_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <getopt.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "closeout.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "long-options.h"
</span></pre><pre style='margin:0'>
</pre>