Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

snap: Copy over versioned libgf_complete.so #422

Merged
merged 1 commit into from
Jun 23, 2018
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ fn main() {
}
if !env::var("CARGO_FEATURE_ERASURE").is_err() {
println!("cargo:rustc-link-lib=dylib=Jerasure");
println!("cargo:rustc-link-lib=dylib=gf_complete");
}
}
12 changes: 1 addition & 11 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ apps:
command: solana-client-demo

parts:
solana-perf-package:
plugin: dump
build-attributes: [no-system-libraries]
source: https://solana-perf.s3.amazonaws.com/master/x86_64-unknown-linux-gnu/solana-perf.tgz
prime:
- solana-perf-HEAD.txt
solana-cuda:
plugin: rust
rust-channel: stable
Expand All @@ -62,18 +56,14 @@ parts:
- usr/lib/libgf_complete.so.1
- usr/lib/libJerasure.so.2
override-build: |
cp -f $SNAPCRAFT_STAGE/libcuda_verify_ed25519.a .
cp -f $SNAPCRAFT_STAGE/libJerasure.so .
cp -f $SNAPCRAFT_STAGE/libgf_complete.so .
./fetch-perf-libs.sh
snapcraftctl build
mv $SNAPCRAFT_PART_INSTALL/bin/solana-fullnode $SNAPCRAFT_PART_INSTALL
rm -rf $SNAPCRAFT_PART_INSTALL/bin/*
mv $SNAPCRAFT_PART_INSTALL/solana-fullnode $SNAPCRAFT_PART_INSTALL/bin/solana-fullnode-cuda
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/
cp -f libJerasure.so $SNAPCRAFT_PART_INSTALL/usr/lib/libJerasure.so.2
cp -f libgf_complete.so $SNAPCRAFT_PART_INSTALL/usr/lib/libgf_complete.so.1
after:
- solana-perf-package
solana:
plugin: rust
rust-channel: stable