[MacPorts] #60973: nodejs14: Can't install/update with CLT but without XCode
MacPorts
noreply at macports.org
Fri Sep 11 16:54:21 UTC 2020
#60973: nodejs14: Can't install/update with CLT but without XCode
-----------------------+----------------------
Reporter: xeron | Owner: ci42
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: nodejs14 |
-----------------------+----------------------
Comment (by posita):
Replying to [comment:4 posita]:
> Replying to [comment:2 ryandesign]:
> > Since nodejs14 is distributable, you could have received a binary
archive of 14.5.0 from our build server … .
>
> How does one do that? I'm apparently not able to install from the binary
archive: …
Posterity compiling from sources can adapt
[https://trac.macports.org/wiki/howto/InstallingOlderPort#install these
instructions]. Specifically,
[https://trac.macports.org/wiki/howto/InstallingOlderPort#Step3:Buildthedownloadedport
Step 3] would be:
{{{#!sh
$ cd devel/nodejs14
$ perl -p -i -e 's/^(\s*use_xcode\s*)yes(\s*)$/\1no\2/g' Portfile # no
longer require Xcode
$ git diff # verify your change
$ sudo port install
}}}
{{{git diff}}} should show:
{{{#!diff
diff --git a/devel/nodejs14/Portfile b/devel/nodejs14/Portfile
index c61efcdd59f..0e0567ee644 100644
--- a/devel/nodejs14/Portfile
+++ b/devel/nodejs14/Portfile
@@ -43,7 +43,7 @@ depends_lib port:icu \
port:python38 \
path:lib/libssl.dylib:openssl
-use_xcode yes
+use_xcode no
proc rec_glob {basedir pattern} {
set files [glob -directory $basedir -nocomplain -type f $pattern]
}}}
See [https://perldoc.perl.org/perlrun.html perlrun(1)] for details about
the above {{{perl}}} command.
--
Ticket URL: <https://trac.macports.org/ticket/60973#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list