[MacPorts] #65826: nodejs16 @16.17.0_2: requires a full Xcode installation

MacPorts noreply at macports.org
Wed Sep 14 23:29:06 UTC 2022


#65826: nodejs16 @16.17.0_2: requires a full Xcode installation
-----------------------+----------------------
  Reporter:  JDLH      |      Owner:  ci42
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.7.2
Resolution:            |   Keywords:
      Port:  nodejs16  |
-----------------------+----------------------

Comment (by JDLH):

 Replying to [comment:4 kencu]:
 > you could check here from time to time to see when the buildbot has
 finished building it:
 >
 > http://packages.macports.com/nodejs16/
 >
 > and then install the prebuilt binary when it is available.

 That worked for me!

 I went to http://packages.macports.com/nodejs16/ , and found a list of
 entries like:
 {{{
 Index of /nodejs16
         Name    Last modified   Size
 Parent Directory                -
 nodejs16-16.13.2_0.darwin_18.x86_64.tbz2        2022-01-11 11:54
 21M
 nodejs16-16.13.2_0.darwin_18.x86_64.tbz2.rmd160 2022-01-11 11:54
 512
 nodejs16-16.13.2_0.darwin_19.x86_64.tbz2        2022-01-11 11:06
 21M
 nodejs16-16.13.2_0.darwin_19.x86_64.tbz2.rmd160 2022-01-11 11:06
 512
 nodejs16-16.13.2_0.darwin_20.arm64.tbz2 2022-01-11 21:20        21M
 nodejs16-16.13.2_0.darwin_20.arm64.tbz2.rmd160  2022-01-11 21:20
 512
 …elided…
 nodejs16-16.14.0_0.darwin_13.x86_64.tbz2        2022-02-09 12:58
 21M
 nodejs16-16.14.0_0.darwin_13.x86_64.tbz2.rmd160 2022-02-09 12:58
 512
 nodejs16-16.14.0_0.darwin_14.x86_64.tbz2        2022-02-09 13:22
 21M
 nodejs16-16.14.0_0.darwin_14.x86_64.tbz2.rmd160 2022-02-09 13:22
 512
 …elided…
 nodejs16-16.14.0_0.darwin_20.arm64.tbz2 2022-02-09 10:52        21M
 nodejs16-16.14.0_0.darwin_20.arm64.tbz2.rmd160  2022-02-09 10:52
 512
 …elided…
 }}}

 I figured out what version I wanted by:
 {{{% uname -rm
 21.6.0 arm64
 }}}

 So I searched for {{{_21.arm64}}}, starting with the last line of the web
 page and searching backwards:

 {{{
 nodejs16-16.17.0_2.darwin_21.arm64.tbz2 2022-09-12 03:56        21M
 nodejs16-16.17.0_2.darwin_21.arm64.tbz2.rmd160  2022-09-12 03:56
 512
 }}}

 I checked the version of my outdated nodejs16:

 {{{
 The following installed ports are outdated:
 nodejs16                       16.17.0_1 < 16.17.0_2
 }}}

 So, the binary archive on MacPorts has the version I need. Its create date
 is after I filed this ticket, which explains why my upgrade attempt failed
 before. I did a {{{port upgrade outdated}}}, and this worked for me:

 {{{
 --->  Computing dependencies for nodejs16
 --->  Fetching archive for nodejs16
 --->  Attempting to fetch nodejs16-16.17.0_2.darwin_21.arm64.tbz2 from
 https://packages.macports.org/nodejs16
 --->  Attempting to fetch nodejs16-16.17.0_2.darwin_21.arm64.tbz2.rmd160
 from https://packages.macports.org/nodejs16
 --->  Installing nodejs16 @16.17.0_2
 --->  Cleaning nodejs16
 --->  Computing dependencies for nodejs16
 --->  Deactivating nodejs16 @16.17.0_1
 --->  Cleaning nodejs16
 --->  Activating nodejs16 @16.17.0_2
 --->  Cleaning nodejs16
 }}}

 From this I conclude:

 1. Port `nodejs16` is working as designed, this ticket has no fix to
 suggest.
 2. Enhancement request to {{{port info}}}, so that it communicates the
 dependency on full Xcode declared by {{{use_xcode yes}}} in a Portfile.
 That should probably be a separate ticket.
 3. Enhancement request to the MacPorts Guide, probably section
 [https://guide.macports.org/#using.common-tasks 3.3. ''Common Tasks''], to
 explain "How to tell if a binary archive exists for a port you need". That
 should probably be a separate ticket.

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


More information about the macports-tickets mailing list