Hi everyone,
I've recently been working to add Kanidm (it's pam/nss and cli tools) as a port. I have been following the handbook and it's chapters on rust, but I have encountered a problem when I update versions. I will say so far the process has been really good, FreeBSD seems to have one of the better approaches to rust packaging compared to other OSes, and the handbook has been a great resource
Currently while testing I'm using a GH_TAGNAME to target a specific commit as I work. What I notice is that when I change that commit and increase the version, that after I re-run cargo-crates + makesum, builds fail with missing dependencies.
The exact steps taken are:
At this point in the final make, the error "unable to find crate base32" is encountered.
I suspect I'm missing a step somewhere in here between the extract and cargo-crates, perhaps there is an update of the Cargo.lock that is changing a crate version, so then my Makefile.crates has the wrong versions.
All the current working ports sources are https://github.com/kanidm/kanidm/tree/master/platform/freebsd/client which I plan to commit to ports once they are working smoothly.
I've recently been working to add Kanidm (it's pam/nss and cli tools) as a port. I have been following the handbook and it's chapters on rust, but I have encountered a problem when I update versions. I will say so far the process has been really good, FreeBSD seems to have one of the better approaches to rust packaging compared to other OSes, and the handbook has been a great resource

Currently while testing I'm using a GH_TAGNAME to target a specific commit as I work. What I notice is that when I change that commit and increase the version, that after I re-run cargo-crates + makesum, builds fail with missing dependencies.
The exact steps taken are:
Code:
ln -s platform/freebsd/client /usr/ports/security/kanidm-client
# edit /usr/ports/UIDs GIDs to add _kanidmd_unixd
cd /usr/ports/security/kanidm-client
rm Makefile.crates
# Update the GH_TAGNAME to a newer commit
make clean
make makesum
make extract
make cargo-crates > Makefile.crates
make makesum
make
At this point in the final make, the error "unable to find crate base32" is encountered.
I suspect I'm missing a step somewhere in here between the extract and cargo-crates, perhaps there is an update of the Cargo.lock that is changing a crate version, so then my Makefile.crates has the wrong versions.
All the current working ports sources are https://github.com/kanidm/kanidm/tree/master/platform/freebsd/client which I plan to commit to ports once they are working smoothly.