Opened 5 years ago

Last modified 5 years ago

#60256 new enhancement

'port bump' does not update checksums for cargo crates

Reported by: lhaeger (Lothar Haeger) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.6.2
Keywords: Cc: chadcatlett (Chad Catlett)
Port:

Description

When updating a port that uses the cargo or cargo_fetch portgroups and has cargo.crates list required crates with their checksums, those will not be updated by port bump. I should be relatively easy to implement such an enhancement, though, and make maintaining cargo based ports a lot easier. Basically what has to be done today is this

  1. clear cargo.crates
  2. update the port version
  3. run port bump
  4. run port extract
  5. run grep checksum ${worksrcdir}/Cargo.lock | perl -pe 's/"checksum (\S*) (\S*) \S* = "(\S*)"/ $1 $2 $3 \\/'
  6. set cargo.crate to the output of 5. (without the trailing "\")

https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/cargo_fetch-1.0.tcl has a few more details, but that's basically what needs to be added to port bumpif cargo.crates is set.

Change History (3)

comment:1 Changed 5 years ago by lhaeger (Lothar Haeger)

Component: baseports

comment:2 Changed 5 years ago by lhaeger (Lothar Haeger)

Component: portsbase

comment:3 Changed 5 years ago by chadcatlett (Chad Catlett)

Cc: chadcatlett added
Note: See TracTickets for help on using tickets.