Skip to content

Commit

Permalink
RPM: update .cargo/config before building
Browse files Browse the repository at this point in the history
Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Jan 24, 2024
1 parent 8669c5b commit f20eeeb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DISTRO_PACKAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ And then create a cargo config file to point it to the vendor dir.
tar xvf %{SOURCE}
mkdir -p .cargo
cat >.cargo/config << EOF
[source."git+https://github.com/namib-project/nftables-rs.git?rev=1b0c60b"]
git = "https://github.com/namib-project/nftables-rs.git"
rev = "1b0c60b"
replace-with = "vendored-sources"
[source.crates-io]
replace-with = "vendored-sources"
Expand Down
5 changes: 5 additions & 0 deletions rpm/netavark.spec
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ tar fx %{SOURCE1}
mkdir -p .cargo

cat >.cargo/config << EOF
[source."git+https://github.com/namib-project/nftables-rs.git?rev=1b0c60b"]
git = "https://github.com/namib-project/nftables-rs.git"
rev = "1b0c60b"
replace-with = "vendored-sources"

[source.crates-io]
replace-with = "vendored-sources"

Expand Down

0 comments on commit f20eeeb

Please sign in to comment.