<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/15b3aba48317ad4976a28f42a3a94ec904691e82">https://github.com/macports/macports-ports/commit/15b3aba48317ad4976a28f42a3a94ec904691e82</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 15b3aba4831 ecl: backport patch for old Darwin
</span>15b3aba4831 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 15b3aba48317ad4976a28f42a3a94ec904691e82
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Thu Sep 14 17:55:40 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> ecl: backport patch for old Darwin
</span>---
lang/ecl/Portfile | 4 +++-
lang/ecl/files/environ-legacy-darwin.patch | 30 ++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ecl/Portfile b/lang/ecl/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 363f4300651..a4fd2f55167 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ecl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ecl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,6 +25,8 @@ if {${name} eq ${subport}} {
</span> master_sites https://common-lisp.net/project/ecl/static/files/release/
extract.suffix .tgz
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles environ-legacy-darwin.patch
</span> }
checksums rmd160 6ea701b142b78fc4c263e3aee7709f4254a8ccc9 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -76,7 +78,7 @@ if {${build_arch} eq "i386"} {
</span> configure.cxx_stdlib libstdc++
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-macports-xdg-data-dir.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-macports-xdg-data-dir.diff
</span>
post-patch {
reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/contrib/asdf/asdf.lisp
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ecl/files/environ-legacy-darwin.patch b/lang/ecl/files/environ-legacy-darwin.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..f5b10964e77
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ecl/files/environ-legacy-darwin.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,30 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://gitlab.com/embeddable-common-lisp/ecl/-/merge_requests/301
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/c/main.d src/c/main.d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index fbaae6674..532320792 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/c/main.d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/c/main.d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -46,6 +46,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "ecl_features.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "iso_latin_names.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__) && defined(HAVE_ENVIRON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <crt_externs.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;'>+ /******************************* EXPORTS ******************************/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if !defined(ECL_THREADS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -899,7 +903,12 @@ si_environ(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cl_object output = ECL_NIL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef HAVE_ENVIRON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char **p;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* Shared libraries do not have direct access to environ on Darwin */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define environ (*_NSGetEnviron())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif !defined(environ)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern char **environ;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (p = environ; *p; p++) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ output = CONS(ecl_make_constant_base_string(*p,-1), output);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span></pre><pre style='margin:0'>
</pre>