Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgpatch: charm 0.12.4-1 #1725

Merged
merged 1 commit into from
Sep 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 11 additions & 15 deletions charm/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
--- PKGBUILD
+++ PKGBUILD
@@ -39,6 +39,17 @@ prepare() {
# create directory for build output
mkdir build
@@ -36,6 +36,13 @@ pkgver() {
prepare() {
cd charm

+ # bump dependencies
+ # remove this line after https://github.com/charmbracelet/charm/pull/148 is merged
+ go get -u modernc.org/sqlite github.com/dgraph-io/badger/v3
+
+ # replace dependency github.com/jacobsa/crypto with https://github.com/jacobsa/crypto/pull/14
+ # upstream is not responding at https://github.com/charmbracelet/charm/issues/147
+ go mod edit -replace github.com/jacobsa/crypto=github.com/piggynl/jacobsa-crypto@xorblock-generic
+
+ # update go.sum after the go.mod changes
+ # replace dependency with its successor to support riscv64
+ # remove after https://github.com/charmbracelet/charm/pull/178 is merged
+ sed -i "/github.com\/jacobsa\/crypto/d" go.mod
+ go get -v github.com/aperturerobotics/jacobsa-crypto
+ sed -i 's|"github.com/jacobsa/crypto/siv"|"github.com/aperturerobotics/jacobsa-crypto/siv"|' crypt/crypt.go
+ go mod tidy
+
# download dependencies
go mod download
}
# create directory for build output
mkdir build