-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
[Bug]: xz not found with new statically linked bsdtar #814
Comments
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 |
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? |
@qtica I couldn't repro with your instruction on darwin, but I was able to repro |
I believe it's fixed by #819 |
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 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. |
What happened?
When upgrading to bazel-lib 2.7.0, the new statically linked bsdtar when used by rules_distroless cacerts results in the error:
I would expect there to be no regression in behavior when upgrading to the new static solution. However, if it is expected for the system to provide
xz
, then I can update my images for RBE to containxz
.Version
Development (host) and target OS/architectures:
Output of
bazel --version
:7.1.1
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:2.7.0
Language(s) and/or frameworks involved:
rules_distroless
v0.3.1
How to reproduce
Any other information?
Full Error:
The text was updated successfully, but these errors were encountered: