Opened 19 months ago

Last modified 19 months ago

#67296 new enhancement

cargo_fetch and rust PG "formal" bug

Reported by: RJVB (René Bertin) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port:

Description

There's what one could call a formal bug in the post-extract sections of the cargo_fetch and rust PortGroups:

"${cargo.home}/config.toml is not re-written but appended to if cargo.crates nor cargo.crates_github are set.

This is a moot point for normal users, but for port maintainers who do not systematically do a port clean before attempting another build during port maintainance it leads to build failures as cargo apparently doesn't accept multiple [build] sections in that file.

Adding an else clause with

        # make sure config.toml doesn't contain any left-overs in this case too
        file delete -force "${cargo.home}/config.toml"

in local copies of the PGs fixed this issue for me.

Change History (1)

comment:1 Changed 19 months ago by jmroot (Joshua Root)

Cc: MarcusCalhoun-Lopez added; jmroot removed
Note: See TracTickets for help on using tickets.