Bug: Linux durable functions emulator binary links to host zlib, causing issues for downstream packagers
Description:
The AWS SAM CLI wheel for Linux includes a prebuilt native binary:
samcli/local/rapid/aws-durable-execution-emulator-<arch>
which caused some downstream linkage issue
Full linkage --test aws-sam-cli output
Unwanted system libraries:
/lib/x86_64-linux-gnu/libz.so.1
/lib/aarch64-linux-gnu/libz.so.1
libexec/lib/python3.13/site-packages/samcli/local/rapid/aws-durable-execution-emulator-arm64
relates to
- https://github.com/Homebrew/homebrew-core/pull/256861
- https://github.com/Homebrew/homebrew-core/pull/256993
- https://github.com/aws/aws-sam-cli/pull/8484
Do you mind providing additional information about how to reproduce the issue?
What's exactly the problem here? This binary is included in SAM CLI, but it's always used inside a Linux container. it's not supposed to be used directly in a Mac environment. In practice the Mac environment just reads it as a "file" that it's copied inside a container, not meant to be directly executed.
Can those files be kept normally in the brew artifacts as-is?
It's not about MacOS. On linux host, the included binaries are linked to the system library libz.so that is unwanted in homebrew.
@valerena also is the emulator open source so that we can build from source code?