Skip to content

Commit

Permalink
Enable static linking for liblzma
Browse files Browse the repository at this point in the history
  • Loading branch information
KonishchevDmitry committed Aug 9, 2024
1 parent 04eb6a3 commit 7b04e0a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ itertools = "0.13.0"
octocrab = "0.39.0"
libc = "0.2.155"
log = "0.4.22"
openssl = { version = "0.10", features = ["vendored"] }
platforms = "3.4.1"
regex = "1.10.6"
reqwest = { version = "0.12.5", features = ["blocking"] }
Expand All @@ -41,6 +40,10 @@ url = "2.5.2"
validator = { version = "0.18.1", features = ["derive"] }
xz2 = "0.1.7"

# Force static linking
openssl = { version = "0.10", features = ["vendored"] }
lzma-sys = { version = "0.1", features = ["static"] }

[dev-dependencies]
indoc = "2.0.5"
rstest = "0.21.0"
17 changes: 17 additions & 0 deletions check-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
#
# Checks release binary
#

set -eu

if [ $# -ne 1 ]; then
echo "Usage: $0 PATH" >&2
exit 1
fi

path="$0"
[ "$(uname)" = Linux ] || exit 0

# FIXME(konishchev): Implement
ldd "$path"
2 changes: 2 additions & 0 deletions test
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ cleanup() {
}

cargo test
# FIXME(konishchev): Rewrite
cargo build && ./check-release target/debug/binup

temp_dir=""
trap cleanup EXIT
Expand Down

0 comments on commit 7b04e0a

Please sign in to comment.