[MacPorts] #57058: Failed to build rust

MacPorts noreply at macports.org
Fri Nov 9 19:25:29 UTC 2018


#57058: Failed to build rust
--------------------------+----------------------
  Reporter:  mfacorcoran  |      Owner:  g5pw
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by physicsbeany):

 Hi @kenku.

 Thanks! That worked (though I don't look forward to maintaining it).

 Replying to [comment:14 kencu]:
 > I would suggest you:
 > {{{
 > sudo port clean rust
 > sudo port clean librsvg
 > sudo port clean ffmpeg
 > }}}
 > then change `librsvg` to the last version that didn't require `rust` to
 build:
 > {{{
 > port edit librsvg
 > -or-
 > bbedit `port file librsvg`
 > }}}
 > then find this block in the Portfile:
 > {{{
 > if {${os.platform} eq "darwin" && ${os.major} < 14} {
 >     # revert to latest pre-cargo version
 >     version         2.40.20
 >     epoch           1
 >
 >     checksums       rmd160  e697e1220779f77e81a890718ef5cda5b5e6b740 \
 >                     sha256
 cff4dd3c3b78bfe99d8fcfad3b8ba1eee3289a0823c0e118d78106be6b84c92b \
 >                     size    1796376
 > } else {
 > }}}
 > and change that test to something that includes your system:
 > {{{
 > if {${os.platform} eq "darwin" && ${os.major} < 18} {
 >     # revert to latest pre-cargo version
 >     version         2.40.20
 >     epoch           1
 >
 >     checksums       rmd160  e697e1220779f77e81a890718ef5cda5b5e6b740 \
 >                     sha256
 cff4dd3c3b78bfe99d8fcfad3b8ba1eee3289a0823c0e118d78106be6b84c92b \
 >                     size    1796376
 > } else {
 > }}}
 > then save that, and you should be good to go. Somebody might get rust
 sorted out one day. I dunno, it's a real bear to work with, IMHO. Can't
 believe that's the only way to build a simple `SVG` library. Maybe we can
 find another `SVG` library that doesn't use it.
 >
 > If you update MacPorts, your little tweak will get overwritten. If that
 gets boring after a while, you can
 [https://guide.macports.org/chunked/development.local-repositories.html
 set up your own local repository] to keep your changes.

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


More information about the macports-tickets mailing list