<pre style='margin:0'>
Haren S (harens) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bb63c8a10ff8a6a16a289151f2762410954ad317">https://github.com/macports/macports-ports/commit/bb63c8a10ff8a6a16a289151f2762410954ad317</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 bb63c8a10ff vlang: link legacysupport dynamically
</span>bb63c8a10ff is described below
<span style='display:block; white-space:pre;color:#808000;'>commit bb63c8a10ff8a6a16a289151f2762410954ad317
</span>Author: Haren S <12570877+harens@users.noreply.github.com>
AuthorDate: Mon Apr 11 16:08:20 2022 +0000
<span style='display:block; white-space:pre;color:#404040;'> vlang: link legacysupport dynamically
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> During runtime, V couldn't find CLOCK_REALTIME on legacysupport systems when it was required.
</span><span style='display:block; white-space:pre;color:#404040;'> Try linking dynamically to fix this.
</span>---
lang/vlang/Portfile | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/vlang/Portfile b/lang/vlang/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 11ab96c3367..6233b5f60bb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/vlang/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/vlang/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,16 +8,15 @@ PortGroup makefile 1.0
</span>
# clock_gettime
legacysupport.newest_darwin_requires_legacy 15
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# link legacysupport statically for compilers
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-legacysupport.use_static yes
</span>
github.setup vlang v weekly.2022.13
github.tarball_from archive
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span>
name vlang
# Remove weekly from version number
version [string range ${version} 7 end]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://vlang.io/
</span>
description Simple, fast, safe, compiled language for developing maintainable software
long_description {*}${description}. Compiles itself in <1s with zero library dependencies. This port \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,7 +63,7 @@ compiler.blacklist-append {clang < 700} macports-clang-3.*
</span>
post-patch {
# https://github.com/vlang/v/issues/10796 - Set correct deployment target.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach f [list ${worksrcpath}/vlib/v/builder/cc.v ${vc_path}/v_win.c ${vc_path}/v.c] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f [list ${worksrcpath}/vlib/v/builder/cc.v ${vc_path}/v.c] {
</span> reinplace "s|-mmacosx-version-min=10.7|-mmacosx-version-min=${macosx_deployment_target}|" ${f}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -72,10 +71,10 @@ post-patch {
</span> copy -force ${filespath}/vup.v ${worksrcpath}/cmd/tools
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# -cg and -showcc allows for better error debugging
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -cg, -showcc and -show-c-output allows for better error debugging
</span> # local prevents fetching the V compiler during the build
build.args-append local=true \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- VFLAGS="-v -cg -showcc -prod -cc ${configure.cc} -cflags [shellescape ${configure.cflags}]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ VFLAGS="-v -cg -showcc -show-c-output -prod -cc ${configure.cc} -cflags [shellescape ${configure.cflags}]" \
</span> VC=${vc_path}
destroot {
</pre><pre style='margin:0'>
</pre>