[MacPorts] #65082: dotnet-sdk-6: unable to install global tool

MacPorts noreply at macports.org
Tue May 10 17:02:03 UTC 2022


#65082: dotnet-sdk-6: unable to install global tool
---------------------------+--------------------------
  Reporter:  mohd-akram    |      Owner:  tsabirgaliev
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  dotnet-sdk-6  |
---------------------------+--------------------------

Comment (by dojoteef):

 I ran into the same issue. The problem is that the `sdk-manifests`
 directory isn't copied in the current Portfile. Here's a short patch that
 fixed the issue for me:

 {{{
 --- Portfile    2022-05-10 12:53:02.000000000 -0400
 +++ Portfile.fixed      2022-05-10 12:40:14.000000000 -0400
 @@ -58,10 +58,13 @@
  build {}

  destroot {
 +    set dotnet_manifest_version 6.0.200
      set dotnet_home ${prefix}/share/dotnet

 -    # Create the target directory
 +    # Create the target directories
      xinstall -d ${destroot}${dotnet_home}/sdk
 +    xinstall -d ${destroot}${dotnet_home}/sdk-manifests

      move ${worksrcpath}/sdk/${version} ${destroot}${dotnet_home}/sdk
 +    move ${worksrcpath}/sdk-manifests/${dotnet_manifest_version}
 ${destroot}${dotnet_home}/sdk-manifests
  }
 }}}

 NOTE: the manifest version might not be the same as the sdk version (I
 checked dotnet versions 6.0.201 and 6.0.202 and they both had a manifest
 version of 6.0.200), that's why there's a separate variable to define the
 manifest version.

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


More information about the macports-tickets mailing list