Skip to content

Commit

Permalink
upgpatch: vaultwarden
Browse files Browse the repository at this point in the history
The Cargo.toml file already has key `patch.crates-io`. This patch attach
the ring patch to the existing `patch.crates-io` key.

Signed-off-by: Avimitin <avimitin@gmail.com>
  • Loading branch information
Avimitin authored and felixonmars committed Jan 16, 2023
1 parent 56a4679 commit b859991
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions vaultwarden/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
diff --git PKGBUILD PKGBUILD
index 11a3ae5..74bf3ae 100644
--- PKGBUILD
+++ PKGBUILD
@@ -37,8 +37,12 @@ prepare() {
@@ -46,8 +46,12 @@ prepare() {
s,/path/to/log,/var/log/$pkgname.log,
/^# ROCKET_TLS/a ROCKET_LIMITS={json=10485760}" .env.template

+ # update dependencies
+ echo -e "\n[patch.crates-io]\nring = { git = 'https://github.com/felixonmars/ring', branch = '0.16.20' }" >> Cargo.toml
+ # Cargo.toml file already contains patch key
+ sed -i '/^\[patch\.crates-io]/ a ring = { git = "https://github.com/felixonmars/ring", branch = "0.16.20" }' Cargo.toml
+ cargo update -p ring
+
# download dependencies
Expand Down

0 comments on commit b859991

Please sign in to comment.