Comments (5)
I agree that's not a desired behavior change. @dzbarsky is the expert on that pre-built bsd tar, I'm not sure if the answer is that xz
ought to be statically linked, or if we're meant to call tar
with some flags to specify where it can locate an xz
binary
from bazel-lib.
My guess is we are not defining HAVE_LIBLZMA when building so we don't take this codepath https://github.com/libarchive/libarchive/blob/1a2fd29f6de7decd097dc4e30629ff96a068f72e/libarchive/archive_read_support_filter_xz.c#L124
Then we end up trying to shell out to system xz instead of using the statically linked lib.
I'll try to send up a patch in the next few days, @alexeagle might make sense to add a test to bazel-lib and/or the bsdtar released repo, wdyt?
from bazel-lib.
@qtica I couldn't repro with your instruction on darwin, but I was able to repro .tar.xz
files not working, and defining HAVE_LIBLZMA
in compilation fixed that. So hopefully it will fix your issue as well. We saw one more report of .tar.gz not working correctly so I'm hoping to get a repro for that and bundle the fixes, since adding the module to BCR is a bit tedious. Thanks for your patience and stay tuned!
from bazel-lib.
I believe it's fixed by #819
from bazel-lib.
I've confirmed from my side that the latest fix does resolve my issue. Thank you for the quick replies and fix, I just got back from vacation and it's nice to see it's already released in a patch!
I couldn't repro with your instruction on darwin,
I should've specified that the above instructions were on an amd64 linux machine. 🙇 But I'm glad you were able to find another way to reproduce it.
from bazel-lib.
Related Issues (20)
- [FR]: Add support for runtime_toolchain_type for jq/yq/... HOT 2
- `copy_to_directory` includes all files as runfiles HOT 3
- [Bug]: mtree_spec line order affects tar directory structure HOT 4
- [FR]: Add option to `copy_to_directory` to flatten the output tree structure
- [Bug]: tar toolchain downloads from a mutable registry HOT 1
- [FR]: Propagate Tags to Tar HOT 1
- [FR]: write_source_files and write_source_file shall support select()
- [FR]: Tar should add !gzip:timestamp option when compress = gzip
- [Bug]: bsdtar toolchain fails on macOS if host tar is gnutar HOT 2
- [FR]: Support Expanding a filegroup via a rule HOT 2
- [Bug]: `mtree_spec` rule does not encode filenames with special characters HOT 7
- [FR]: Update libarchive to >= 3.7.1 HOT 1
- [Bug]: tar generates incorrect mtree for aspect_rules_js runfiles HOT 1
- [Bug]: unable to use expand_template in v2 HOT 1
- [Bug]: Cannot define custom `coreutils_toolchain`
- [Bug]: expand_template FORMATTED_DATE
- [FR]: `squash_tars` rule HOT 2
- [FR]: use sha256 instead of sha386 for integrity?
- [Bug]: 2.7.3 broke coreutils on x86 MacOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazel-lib.