[MacPorts] #67318: cargo PG doesn't seem to work with the legacy-support PG

MacPorts noreply at macports.org
Thu Apr 27 13:26:59 UTC 2023


#67318: cargo PG doesn't seem to work with the legacy-support PG
--------------------+--------------------
 Reporter:  RJVB    |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:
--------------------+--------------------
 I may doing something wrong but it would seem that currently ports that
 are built via cargo fail when they need the legacy-support library/ies.

 From what I can tell this is because `rustc` on Mac will invoke `cc`
 instead of `ld` for the final link step, and it does thus never get the
 legacy-support linker flags. Copying those flags from the `ld` compwrap
 into the `cc` compwrap solves the problem, letting the build run to
 completion.


 Demonstration case: edit the sccache Portfile such that it runs `cargo
 update` (e.g. as its configure phase), set `cargo.offline_cmd` to an empty
 string and comment out the cargo.crates list. On 10.9 a `port -nov build
 sccache` will now fail in the final link step because of missing symbols
 provided by port:legacy-support (including `linkat`, `renameat`).

-- 
Ticket URL: <https://trac.macports.org/ticket/67318>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list