https://bugzilla.redhat.com/show_bug.cgi?id=1872373



--- Comment #4 from Robert-André Mauchin 🐧 <zebo...@gmail.com> ---
The build.rs is helpful:

//! Finds the appropriate `protoc` binary and Protobuf include directory for
this host, and outputs
//! build directives so that the main `prost-build` crate can use them.
//!
//! The following locations are checked for `protoc` in decreasing priority:
//!
//!     1. The `PROTOC` environment variable.
//!     2. The bundled `protoc`.
//!     3. The `protoc` on the `PATH`.
//!
//! If no `protoc` binary is available in these locations, the build fails.
//!
//! The following locations are checked for the Protobuf include directory in
decreasing priority:
//!
//!     1. The `PROTOC_INCLUDE` environment variable.
//!     2. The bundled Protobuf include directory.

You should BR protobuf-compiler and protobuf-devel then define

export PROTOC=%{_bindir}/protoc
export PROTOC_INCLUDE=%{_includedir}

Not sure if the devel package should also Requires: protobuf-compiler to work
correctly.

You also need to exclude third_party in the Cargo.toml

# prost-build-fix-metadata.diff
============================================================================
--- prost-build-0.6.1/Cargo.toml        1970-01-01T00:00:00+00:00
+++ prost-build-0.6.1/Cargo.toml        2020-08-25T22:22:26.646471+00:00
@@ -20,6 +20,7 @@
 readme = "README.md"
 license = "Apache-2.0"
 repository = "https://github.com/danburkert/prost";
+exclude = ["/third-party"]
 [dependencies.bytes]
 version = "0.5"


============================================================================

 And:

Source:         %{crates_source}
# Initial patched metadata
# - exclude /third-party from install
Patch0:         prost-build-fix-metadata.diff


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@lists.fedoraproject.org
To unsubscribe send an email to package-review-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/package-review@lists.fedoraproject.org

Reply via email to