atuin: Atuin-daemon build failure in Fedora COPR chroot
I noticed that v18.3.0 now requires protobuf-compiler during build. But after adding the build dependency, I got a protoc failure:
error: failed to run custom build command for `atuin-daemon v0.2.0 (/builddir/build/BUILD/atuin-18.3.0/crates/atuin-daemon)`
Caused by:
process didn't exit successfully: `/builddir/build/BUILD/atuin-18.3.0/target/release/build/atuin-daemon-f497d7538312abf4/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-changed=./proto/history.proto
cargo:rerun-if-changed=./proto
--- stderr
Error: Custom { kind: Other, error: "protoc failed: google/protobuf/timestamp.proto: File not found.\nhistory.proto:4:1: Import \"google/protobuf/timestamp.proto\" was not found or had errors.\n" }
I have little to no experience with protobuf so I really don’t know where to go from here.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (12 by maintainers)
EL7 is out of support, and you would have many other issues over there. Btw what are you building atuin on copr for? Might be worth discussing it over at https://github.com/SriRamanujam/atuin-rpmspec since we are preparing to submit for Fedora next week
I installed
protobuf-compilerbecause the first error I ran into was “protocnot found” or something like that. I suspect I actually need both.Will try and get back to you in a bit.
I have no experience with fedora or COPR, but which package did you install?
Something I just read suggested
protobuf-develinstead ofprotobuf-compilerSorry to necropost:
Just confirming that in Fedora 41 I had the same problem and
dnf install protobuf-develdid the trick.Ah yes yes. That’s exactly what they pointed me to. Might not work on EL chroots though, watch out for that.
Looks like this is resolved! 😄
Otherwise heads up - the daemon is eventually going to become default behaviour, and we’re also likely to use protobufs in more places - vs the manual and error-prone serialization we’ve been doing so far. The build environment will therefore need proto3 available