[MacPorts] #60973: nodejs14: Can't install/update with CLT but without XCode

MacPorts noreply at macports.org
Wed Feb 24 04:10:02 UTC 2021


#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):

 This also applies to `nodejs15`, but the technique described in comment:5
 no longer works with **''either''** `nodejs14` or `nodejs15`. Here is the
 configuration failure from my attempt with `nodejs15`, but `nodejs14`
 behaves nearly identically:

 {{{
 % cd …/devel/nodejs15
 % sudo perl -p -i -e 's/^(\s*use_xcode\s*)yes(\s*)$/\1no\2/g' Portfile
 % sudo port install
 --->  Computing dependencies for nodejs15
 --->  Fetching distfiles for nodejs15
 --->  Attempting to fetch node-v15.9.0.tar.xz from
 https://nodejs.org/dist/v15.9.0
 --->  Verifying checksums for nodejs15
 --->  Extracting nodejs15
 --->  Applying patches to nodejs15
 --->  Configuring nodejs15
 Error: Failed to configure nodejs15: configure failure: command execution
 failed
 Error: See /opt/local/macports/var/macports/logs/_opt_local_macports-
 ports_devel_nodejs15/nodejs15/main.log for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port nodejs15 failed
 % sudo cat /opt/local/macports/var/macports/logs/_opt_local_macports-
 ports_devel_nodejs15/nodejs15/main.log
 …
 :info:configure Executing:  cd "/opt/local/macports/var/macports/build
 /_opt_local_macports-ports_devel_nodejs15/nodejs15/work/node-v15.9.0" &&
 ./conf
 igure --prefix=/opt/local/macports --without-npm --with-intl=system-icu
 --shared-openssl --shared-openssl-
 includes=/opt/local/macports/include/openssl --shared-openssl-
 libpath=/opt/local/macports/lib --dest-cpu=x64
 :debug:configure system:  cd "/opt/local/macports/var/macports/build
 /_opt_local_macports-ports_devel_nodejs15/nodejs15/work/node-v15.9.0" &&
 ./config
 ure --prefix=/opt/local/macports --without-npm --with-intl=system-icu
 --shared-openssl --shared-openssl-includes=/opt/local/macports/include
 /openssl --shared-openssl-libpath=/opt/local/macports/lib --dest-cpu=x64
 :info:configure No receipt for 'com.apple.pkg.CLTools_Executables' found
 at '/'.
 :info:configure No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found
 at '/'.
 :info:configure No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at
 '/'.
 :info:configure Node.js configure: Found Python 3.9.2...
 :info:configure Traceback (most recent call last):
 :info:configure   File "tools/gyp/pylib/gyp/xcode_emulation.py", line
 1505, in XcodeVersion
 :info:configure     version_list = GetStdoutQuiet(["xcodebuild",
 "-version"]).splitlines()
 :info:configure   File "tools/gyp/pylib/gyp/xcode_emulation.py", line
 1568, in GetStdoutQuiet
 :info:configure     raise GypError("Error %d running %s" %
 (job.returncode, cmdlist[0]))
 :info:configure gyp.common.GypError: Error 1 running xcodebuild
 :info:configure During handling of the above exception, another exception
 occurred:
 :info:configure Traceback (most recent call last):
 …
 :info:configure   File "tools/gyp/pylib/gyp/xcode_emulation.py", line
 1554, in CLTVersion
 :info:configure     return re.search(regex, output).groupdict()["version"]
 :info:configure AttributeError: 'NoneType' object has no attribute
 'groupdict'
 :info:configure Command failed:  cd
 "/opt/local/macports/var/macports/build/_opt_local_macports-
 ports_devel_nodejs15/nodejs15/work/node-v15.9.0" && ./configure
 --prefix=/opt/local/macports --without-npm --with-intl=system-icu
 --shared-openssl --shared-openssl-includes=/opt/local/macports/
 include/openssl --shared-openssl-libpath=/opt/local/macports/lib --dest-
 cpu=x64
 :info:configure Exit code: 1
 …
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/60973#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list