<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a88157c725e53d68343ea761ae55d3d43308175d">https://github.com/macports/macports-ports/commit/a88157c725e53d68343ea761ae55d3d43308175d</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 a88157c nodejs8-12: fix build on older systems
</span>a88157c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit a88157c725e53d68343ea761ae55d3d43308175d
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Thu May 9 08:24:27 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> nodejs8-12: fix build on older systems
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> nodejs only builds against libc++ on macOS
</span><span style='display:block; white-space:pre;color:#404040;'> the errors building against libstdc++ headers are heavy
</span><span style='display:block; white-space:pre;color:#404040;'> nodejs does not link against any c++ libraries, so forcing
</span><span style='display:block; white-space:pre;color:#404040;'> it to build against libc++ is acceptable on all systems
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> the version of libuv bundled with node could be patched to work
</span><span style='display:block; white-space:pre;color:#404040;'> on systems < 10.7, but it's simpler to use the libuv port for these systems
</span>---
devel/nodejs10/Portfile | 19 ++++++++++++-------
devel/nodejs11/Portfile | 19 ++++++++++++-------
devel/nodejs12/Portfile | 19 ++++++++++++-------
devel/nodejs8/Portfile | 21 +++++++++++++--------
4 files changed, 49 insertions(+), 29 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/nodejs10/Portfile b/devel/nodejs10/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index fe7f1e6..1a33776 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/nodejs10/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/nodejs10/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,6 +1,12 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# on macOS nodejs only builds against libc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# this force is OK as node does not link against any other c++ libs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:libcxx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cxx_stdlib libc++
</span> PortGroup cxx11 1.1
name nodejs10
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -61,6 +67,12 @@ post-patch {
</span> reinplace "s|python|${configure.python}|" ${worksrcpath}/deps/v8/gypfiles/toolchain.gypi
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# use the system libuv instead of the bundled version, as it is fixed for older systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append path:lib/libuv.dylib:libuv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --shared-libuv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append --without-npm
configure.args-append --with-intl=small-icu
#configure.args-append --shared-openssl
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -242,13 +254,6 @@ destroot {
</span> ${docdir}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-fetch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${name} ${version} requires Mac OS X 10.7 or greater."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "incompatible Mac OS X version"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> livecheck.url ${homepage}dist/
livecheck.type regex
livecheck.regex {v(10\.\d+\.\d+)}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/nodejs11/Portfile b/devel/nodejs11/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 80fbf63..55f1b39 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/nodejs11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/nodejs11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,6 +1,12 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# on macOS nodejs only builds against libc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# this force is OK as node does not link against any other c++ libs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:libcxx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cxx_stdlib libc++
</span> PortGroup cxx11 1.1
name nodejs11
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -61,6 +67,12 @@ post-patch {
</span> reinplace "s|python|${configure.python}|" ${worksrcpath}/deps/v8/gypfiles/toolchain.gypi
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# use the system libuv instead of the bundled version, as it is fixed for older systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append path:lib/libuv.dylib:libuv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --shared-libuv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append --without-npm
configure.args-append --with-intl=small-icu
#configure.args-append --shared-openssl
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -244,13 +256,6 @@ destroot {
</span> ${docdir}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-fetch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${name} ${version} requires Mac OS X 10.7 or greater."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "incompatible Mac OS X version"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> livecheck.url ${homepage}dist/
livecheck.type regex
livecheck.regex {v(11\.\d+\.\d+)}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/nodejs12/Portfile b/devel/nodejs12/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e1e4174..5460262 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/nodejs12/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/nodejs12/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,6 +1,12 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# on macOS nodejs only builds against libc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# this force is OK as node does not link against any other c++ libs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:libcxx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cxx_stdlib libc++
</span> PortGroup cxx11 1.1
name nodejs12
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,6 +64,12 @@ post-patch {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# use the system libuv instead of the bundled version, as it is fixed for older systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append path:lib/libuv.dylib:libuv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --shared-libuv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append --without-npm
configure.args-append --with-intl=small-icu
#configure.args-append --shared-openssl
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -240,13 +252,6 @@ destroot {
</span> ${docdir}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-fetch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${name} ${version} requires Mac OS X 10.7 or greater."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "incompatible Mac OS X version"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> livecheck.url ${homepage}dist/
livecheck.type regex
livecheck.regex {v(\d+\.\d+\.\d+)}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/nodejs8/Portfile b/devel/nodejs8/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 620b75e..42a9eed 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/nodejs8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/nodejs8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,6 +3,12 @@
</span> PortSystem 1.0
PortGroup compiler_blacklist_versions 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# on macOS nodejs only builds against libc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# this force is OK as node does not link against any other c++ libs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:libcxx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cxx_stdlib libc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cxx11 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> name nodejs8
version 8.16.0
categories devel net
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,7 +37,7 @@ distname node-v${version}
</span>
depends_build port:pkgconfig
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:python27 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:python27 \
</span> path:lib/libssl.dylib:openssl
proc rec_glob {basedir pattern} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,6 +70,12 @@ post-patch {
</span> reinplace "s|python|${configure.python}|" ${worksrcpath}/deps/v8/gypfiles/toolchain.gypi
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# use the system libuv instead of the bundled version, as it is fixed for older systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append path:lib/libuv.dylib:libuv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --shared-libuv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append --without-npm
configure.args-append --with-intl=small-icu
configure.args-append --shared-openssl
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -200,13 +212,6 @@ destroot {
</span> ${docdir}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-fetch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${name} ${version} requires Mac OS X 10.7 or greater."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "incompatible Mac OS X version"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> livecheck.url ${homepage}dist/
livecheck.type regex
livecheck.regex {v(8\.\d+\.\d+)}
</pre><pre style='margin:0'>
</pre>