<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/b2dda8abd93dad1740aa47fb159c303424852afc">https://github.com/macports/macports-ports/commit/b2dda8abd93dad1740aa47fb159c303424852afc</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 b2dda8abd93 lv: Fix implicit declaration of functions
</span>b2dda8abd93 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit b2dda8abd93dad1740aa47fb159c303424852afc
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Mon Dec 7 18:58:25 2020 -0600
<span style='display:block; white-space:pre;color:#404040;'> lv: 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/61512
</span>---
textproc/lv/Portfile | 31 +++++++++-----------
textproc/lv/files/implicit.patch | 62 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 76 insertions(+), 17 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/lv/Portfile b/textproc/lv/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 80615d8a366..a6bf4d2d530 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/lv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/lv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,8 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> PortSystem 1.0
name lv
version 4.51
revision 4
<span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 ae0d58b52dbf714f8b371f51ac87490ecba1c994 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 e1cd2e27109fbdbc6d435f2c3a99c8a6ef2898941f5d2f7bacf0c1ad70158bcf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 605082
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> categories textproc
maintainers nomaintainer
description Powerful Multilingual File Viewer / Grep
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,25 +18,16 @@ platforms darwin
</span> license GPL-2+
homepage http://www.ff.iij4u.or.jp/~nrt/lv/index.html
master_sites http://www.ff.iij4u.or.jp/~nrt/freeware/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-distfiles ${name}451.tar.gz
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-src_stream.c.diff \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-src_configure.diff \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-src_Makefile.in.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 85b70ae797f935741ec9a1cbe92f00e9 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 1a70299c27aa317a436976a557853858db4dcb5f \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 ae0d58b52dbf714f8b371f51ac87490ecba1c994
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${name}[string map {. {}} ${version}]
</span>
depends_lib port:ncurses
depends_run bin:bzcat:bzip2 \
bin:gzcat:gzip
<span style='display:block; white-space:pre;background:#ffe0e0;'>-worksrcdir ${name}451
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-pre-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_isset lesslikeslash]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-src_command.c.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-src_stream.c.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-src_configure.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-src_Makefile.in.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ implicit.patch
</span>
configure.cflags-append -I${prefix}/include/ncurses
configure.dir ${worksrcpath}/build
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,9 +55,9 @@ post-destroot {
</span>
default_variants +xz
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant lesslikeslash description {Make the behavior of the search command more similar to the one in Less} {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant with_xz requires xz description {Legacy compatibility variant} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant lesslikeslash description {Make the behavior of the search command more similar to the one in Less} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-src_command.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
variant xz description {Experimental support for XZ Utils} {
patchfiles-append xz_support.diff
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/lv/files/implicit.patch b/textproc/lv/files/implicit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3a84b4592f4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/lv/files/implicit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,62 @@
</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: 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: implicit declaration of function 'fork' 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: implicit declaration of function 'getpid' 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: implicit declaration of function 'getpgrp' 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: implicit declaration of function 'setpgrp' 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: implicit declaration of function 'wait' 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 'strncmp' with type 'int (const char *, const char *, 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 '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;'>+error: implicitly declaring library function 'toupper' with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/configure.orig 2020-12-07 18:25:30.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/configure 2020-12-07 18:36:45.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1186,8 +1186,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main () { int i; for (i = 0; i < 256; i++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-exit (0); }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) 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;'>+ EOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { (eval echo configure:1337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1372,6 +1372,9 @@
</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 <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/wait.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 <unistd.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int pid;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int pg1, pg2, pg3, pg4;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/guess.c.orig 2003-11-12 21:08:19.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/guess.c 2020-12-07 18:55:13.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -21,6 +21,7 @@
</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;'>+ #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;'>+ #include <import.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <decode.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/guesslocale.c.orig 2004-01-05 02:41:22.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/guesslocale.c 2020-12-07 18:55:41.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;'>+ #ifdef HAVE_SETLOCALE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <ctype.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 <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <locale.h>
</span></pre><pre style='margin:0'>
</pre>