<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/3eefacb5f21f6a9817b3010587d329f55e8f3b35">https://github.com/macports/macports-ports/commit/3eefacb5f21f6a9817b3010587d329f55e8f3b35</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 3eefacb5f21 autoconf: Fix AC_FUNC_MMAP to avoid implicit func
</span>3eefacb5f21 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 3eefacb5f21f6a9817b3010587d329f55e8f3b35
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Thu Jul 27 01:28:51 2023 -0500
<span style='display:block; white-space:pre;color:#404040;'> autoconf: Fix AC_FUNC_MMAP to avoid implicit func
</span>---
devel/autoconf/Portfile | 3 +-
devel/autoconf/files/AC_FUNC_MMAP.patch | 59 +++++++++++++++++++++++++++++++++
2 files changed, 61 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/autoconf/Portfile b/devel/autoconf/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c6df3527c01..cc2f7f4b2ab 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/autoconf/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/autoconf/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortSystem 1.0
</span> name autoconf
epoch 1
version 2.71
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> categories devel
# the license is GPL-3+ with an exception:
# https://www.gnu.org/licenses/autoconf-exception.html
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,6 +40,7 @@ checksums rmd160 baa56c2b1e9b2c3d6bffaeb936fa8fbf55318caa \
</span> sha256 f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4
patchfiles use-macports-tools.patch
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append AC_FUNC_MMAP.patch
</span> post-patch {
# Stop build from trying to regenerate this after patching.
touch ${worksrcpath}/man/autoreconf.1
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/autoconf/files/AC_FUNC_MMAP.patch b/devel/autoconf/files/AC_FUNC_MMAP.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2f2729a48a3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/autoconf/files/AC_FUNC_MMAP.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,59 @@
</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:135:14: error: implicit declaration of function 'getpagesize' 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;'>+https://bugs.gentoo.org/898816
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=028526149ee804617a302ccef22cc6adbda681b0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=33c26d2700f927432c756ccf7a4fc89403d35b95
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/autoconf/functions.m4.orig 2021-01-28 14:46:48.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/autoconf/functions.m4 2023-07-27 01:25:27.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1281,21 +1281,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ VM page cache was not coherent with the file system buffer cache
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ like early versions of FreeBSD and possibly contemporary NetBSD.)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ For shared mappings, we should conversely verify that changes get
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- propagated back to all the places they're supposed to be.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- Grep wants private fixed already mapped.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- The main things grep needs to know about mmap are:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- * does it exist and is it safe to write into the mmap'd area
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- * how to use it (BSD variants) */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ propagated back to all the places they're supposed to be. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <fcntl.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/mman.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-/* This mess was copied from the GNU getpagesize.h. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifndef HAVE_GETPAGESIZE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef getpagesize
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # ifdef _SC_PAGESIZE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# define getpagesize() sysconf(_SC_PAGESIZE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# else /* no _SC_PAGESIZE */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define getpagesize() sysconf (_SC_PAGESIZE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# elif defined _SC_PAGE_SIZE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define getpagesize() sysconf (_SC_PAGE_SIZE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# elif HAVE_GETPAGESIZE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int getpagesize ();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # ifdef HAVE_SYS_PARAM_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <sys/param.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # ifdef EXEC_PAGESIZE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1319,16 +1317,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # else /* no HAVE_SYS_PARAM_H */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define getpagesize() 8192 /* punt totally */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # endif /* no HAVE_SYS_PARAM_H */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# endif /* no _SC_PAGESIZE */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif /* no HAVE_GETPAGESIZE */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</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;'>+ int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ main (void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *data, *data2, *data3;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char *cdata2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- int i, pagesize;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ long i, pagesize;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int fd, fd2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pagesize = getpagesize ();
</span></pre><pre style='margin:0'>
</pre>