Skip to content

Commit

Permalink
Merge #107
Browse files Browse the repository at this point in the history
107: Workaround for missing libs on freebsd 13 r=jmesmon a=fabiojmendes

This pull request fixes linking issues on downstream libs on FreeBSD 13. See [libzetta-rs #166](Inner-Heaven/libzetta-rs#166) for details.

I also updated the url for grcov binary so the workflows will run.

Hopefully this workaround can be removed once this [issue is fixed](Inner-Heaven/libzetta-rs#166 (comment)) on FreeBSD side.

Co-authored-by: Fabio Mendes <[email protected]>
  • Loading branch information
bors[bot] and fabiojmendes committed Mar 6, 2022
2 parents 1d6bc9e + 4b10fdf commit 2d9b97f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
RUSTFLAGS: '-Zinstrument-coverage'
LLVM_PROFILE_FILE: 'rust-libzfs-%p-%m.profraw'

- run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
- run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
- run: ./grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
- run: bash <(curl -s https://codecov.io/bash) -f lcov.info
- name: Run codacy-coverage-reporter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
- run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
- run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
- run: zip -0 ccov.zip `find . \( -name "*.gc*" \) -print`
- run: ./grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore "/*" -o lcov.info
- name: Archive code coverage results
Expand Down
1 change: 1 addition & 0 deletions zfs-core-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,6 @@ fn main() {
println!("cargo:rustc-link-lib=nvpair");
if target_os == "freebsd" {
println!("cargo:rustc-link-lib=dylib:-as-needed=zutil");
println!("cargo:rustc-link-lib=dylib:-as-needed=spl");
}
}

0 comments on commit 2d9b97f

Please sign in to comment.