<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/daa97db0f396766735063fbd279dd17a73ec34c1">https://github.com/macports/macports-ports/commit/daa97db0f396766735063fbd279dd17a73ec34c1</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 daa97db0f39 janet: (Actually) fix builds on older systems this time..
</span>daa97db0f39 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit daa97db0f396766735063fbd279dd17a73ec34c1
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Tue Apr 27 11:26:44 2021 +0100
<span style='display:block; white-space:pre;color:#404040;'> janet: (Actually) fix builds on older systems this time..
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - Previous commit was lacking the patch files due to
</span><span style='display:block; white-space:pre;color:#404040;'> git finger trouble, mea culpa.
</span>---
lang/janet/Portfile | 14 ++++++++++++--
.../files/fix-janet_boot-link-legacysupport.diff | 13 +++++++++++++
lang/janet/files/use-nsgetenviron-on-apple.diff | 19 +++++++++++++++++++
3 files changed, 44 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/janet/Portfile b/lang/janet/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ede55be852c..6db19c7b62b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/janet/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/janet/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,11 +2,11 @@
</span>
PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup makefile 1.0
</span> PortGroup legacysupport 1.1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup makefile 1.0
</span>
github.setup janet-lang janet 1.15.5 v
<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 lang
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,6 +27,16 @@ checksums rmd160 1d77318cc48b524ee50a398c9e0a36bedac03cda \
</span> sha256 b65a83f27ec80b1db8e046aed6ac3eb5ed92d843bdbdc5f4d279f10664862de6 \
size 601152
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fixes passing correct link flags to boot_strap janet
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# and incorrect use of environ on MacOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.pre_args -p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fixes linking of boot strap binary on older systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append fix-janet_boot-link-legacysupport.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Correct use of NSGetEnviron() on Apple systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append use-nsgetenviron-on-apple.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> destroot.keepdirs ${destroot}${prefix}/lib/${name}
test.run yes
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/janet/files/fix-janet_boot-link-legacysupport.diff b/lang/janet/files/fix-janet_boot-link-legacysupport.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..f7bb139e571
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/janet/files/fix-janet_boot-link-legacysupport.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/Makefile b/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index da5e1260..d94c13f8 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -146,7 +146,7 @@ build/%.boot.o: src/%.c $(JANET_HEADERS) $(JANET_LOCAL_HEADERS) Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(CC) $(BOOT_CFLAGS) -o $@ -c $<
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build/janet_boot: $(JANET_BOOT_OBJECTS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(CC) $(BOOT_CFLAGS) -o $@ $(JANET_BOOT_OBJECTS) $(CLIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(BOOT_CFLAGS) -o $@ $(JANET_BOOT_OBJECTS) $(CLIBS) $(LDFLAGS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Now the reason we bootstrap in the first place
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build/c/janet.c: build/janet_boot src/boot/boot.janet
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/janet/files/use-nsgetenviron-on-apple.diff b/lang/janet/files/use-nsgetenviron-on-apple.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..87a9326f5b4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/janet/files/use-nsgetenviron-on-apple.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/core/os.c b/src/core/os.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 64cc1b34..886d9bf9 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/src/core/os.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/src/core/os.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -56,7 +56,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <dirent.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;'>+-extern char **environ;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <crt_externs.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define environ (*_NSGetEnviron())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</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;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef JANET_THREADS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <pthread.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span></pre><pre style='margin:0'>
</pre>