<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/99237c01c3d5e399715b0281c111d3c5b76eb382">https://github.com/macports/macports-ports/commit/99237c01c3d5e399715b0281c111d3c5b76eb382</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 99237c01c3d5e399715b0281c111d3c5b76eb382
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Thu Nov 26 13:03:18 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> vim: fix implicit-function-decl error
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> vim's configure script disables functionality that is available on macOS
</span><span style='display:block; white-space:pre;color:#404040;'> because the configure check incorrectly determines that some functions
</span><span style='display:block; white-space:pre;color:#404040;'> are not available because it does not include the headers to declare the
</span><span style='display:block; white-space:pre;color:#404040;'> functions. Since Apple made -Werror=implicit-function-declarations the
</span><span style='display:block; white-space:pre;color:#404040;'> default for Big Sur, the result of the configure check changed.
</span>---
editors/vim/Portfile | 4 +-
.../ce7be3a0e6f19bc85990bb8fcfe5e208944777b4.patch | 62 ++++++++++++++++++++++
2 files changed, 65 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/vim/Portfile b/editors/vim/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0e7da9320a5..4b7fb4c865c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/editors/vim/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/vim/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup github 1.0
</span> set vim_version 8.2
set vim_patchlevel 1719
github.setup vim vim ${vim_version}.${vim_patchlevel} v
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories editors
platforms darwin freebsd
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,6 +28,8 @@ depends_lib port:ncurses \
</span> port:gettext \
port:libiconv
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles ce7be3a0e6f19bc85990bb8fcfe5e208944777b4.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
set features [open ${worksrcpath}/src/feature.h a+]
puts $features "#define SYS_VIMRC_FILE \"${prefix}/etc/vimrc\""
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/vim/files/ce7be3a0e6f19bc85990bb8fcfe5e208944777b4.patch b/editors/vim/files/ce7be3a0e6f19bc85990bb8fcfe5e208944777b4.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..91eb09089c1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/vim/files/ce7be3a0e6f19bc85990bb8fcfe5e208944777b4.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;'>+From ce7be3a0e6f19bc85990bb8fcfe5e208944777b4 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Bram Moolenaar <Bram@vim.org>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Thu, 26 Nov 2020 20:11:11 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] patch 8.2.2056: configure fails when building with
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ implicit-function-declaration
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Problem: Configure fails when building with the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "implicit-function-declaration" error enabled, specifically on Mac.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Solution: Declear the functions like in the source code. (suggestion by
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Clemens Lang, closes #7380)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Upstream-Status: Backport [https://github.com/vim/vim/commit/ce7be3a0e6f19bc85990bb8fcfe5e208944777b4]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/auto/configure | 10 +++++++++-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/configure.ac | 10 +++++++++-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/version.c | 2 ++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 3 files changed, 20 insertions(+), 2 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/auto/configure b/src/auto/configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 13eaea6f853..d1359485b60 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./src/auto/configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./src/auto/configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -12350,10 +12350,18 @@ if test -c /dev/ptmx ; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
</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;'>++// These should be in stdlib.h, but it depends on _XOPEN_SOURCE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++char *ptsname(int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int unlockpt(int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int grantpt(int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</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;'>+-ptsname(0);grantpt(0);unlockpt(0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ptsname(0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ grantpt(0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ unlockpt(0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;
</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;'>+diff --git a/src/configure.ac b/src/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 457f2b82b13..010cc8f09ca 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./src/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./src/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3593,7 +3593,15 @@ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_CHECKING(for SVR4 ptys)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -c /dev/ptmx ; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_TRY_LINK([], [ptsname(0);grantpt(0);unlockpt(0);],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AC_TRY_LINK([
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// These should be in stdlib.h, but it depends on _XOPEN_SOURCE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++char *ptsname(int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int unlockpt(int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int grantpt(int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ptsname(0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ grantpt(0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ unlockpt(0);],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SVR4_PTYS),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_RESULT(no))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span></pre><pre style='margin:0'>
</pre>