<pre style='margin:0'>
tobypeterson pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/89c960c05de3a8ab3eccf40a753288a6712dab92">https://github.com/macports/macports-base/commit/89c960c05de3a8ab3eccf40a753288a6712dab92</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 89c960c0 Add a configure check for dlopen_preflight (support <10.5)
</span>89c960c0 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 89c960c05de3a8ab3eccf40a753288a6712dab92
</span>Author: Toby Peterson <toby@macports.org>
AuthorDate: Wed Jun 24 11:59:22 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> Add a configure check for dlopen_preflight (support <10.5)
</span>---
configure | 2 +-
configure.ac | 2 +-
src/config.h.in | 3 +++
src/machista1.0/libmachista.c | 2 ++
4 files changed, 7 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/configure b/configure
</span><span style='display:block; white-space:pre;color:#808080;'>index 9a4fd76b..16c22954 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/configure
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/configure
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6860,7 +6860,7 @@ done
</span> # Checks for library functions.
for ac_func in OSAtomicCompareAndSwap32 OSAtomicCompareAndSwap64 \
OSAtomicCompareAndSwapPtr __getdirentries64 clearenv copyfile \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- flock fls kqueue posix_spawn setmode \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dlopen_preflight flock fls kqueue posix_spawn setmode \
</span> sysctlbyname
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/configure.ac b/configure.ac
</span><span style='display:block; white-space:pre;color:#808080;'>index 195f1f7f..6471247c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/configure.ac
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/configure.ac
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -248,7 +248,7 @@ AC_CHECK_HEADERS([crt_externs.h err.h fcntl.h libkern/OSAtomic.h libproc.h limit
</span> # Checks for library functions.
AC_CHECK_FUNCS([OSAtomicCompareAndSwap32 OSAtomicCompareAndSwap64 \
OSAtomicCompareAndSwapPtr __getdirentries64 clearenv copyfile \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- flock fls kqueue posix_spawn setmode \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dlopen_preflight flock fls kqueue posix_spawn setmode \
</span> sysctlbyname])
# Check for library functions, replacements are in pextlib1.0/compat/
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/config.h.in b/src/config.h.in
</span><span style='display:block; white-space:pre;color:#808080;'>index 1f996755..ba963982 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/config.h.in
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/config.h.in
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -44,6 +44,9 @@
</span> and to 0 if you don't. */
#undef HAVE_DECL_USERNAME_COMPLETION_FUNCTION
<span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Define to 1 if you have the `dlopen_preflight' function. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#undef HAVE_DLOPEN_PREFLIGHT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> /* Define to 1 if you have the <err.h> header file. */
#undef HAVE_ERR_H
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/machista1.0/libmachista.c b/src/machista1.0/libmachista.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 7dddce21..e06debe0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/machista1.0/libmachista.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/machista1.0/libmachista.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -467,9 +467,11 @@ int macho_parse_file(macho_handle_t *handle, const char *filepath, const macho_t
</span>
/* Open input file */
if ((fd = open(filepath, O_RDONLY)) < 0) {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#ifdef HAVE_DLOPEN_PREFLIGHT
</span> if (dlopen_preflight(filepath)) {
return MACHO_ECACHE;
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /* HAVE_DLOPEN_PREFLIGHT */
</span> return MACHO_EFILE;
}
</pre><pre style='margin:0'>
</pre>