aws-sam-cli icon indicating copy to clipboard operation
aws-sam-cli copied to clipboard

Bug: Linux durable functions emulator binary links to host zlib, causing issues for downstream packagers

Open chenrui333 opened this issue 3 weeks ago • 3 comments

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

chenrui333 avatar Dec 04 '25 02:12 chenrui333

Do you mind providing additional information about how to reproduce the issue?

vicheey avatar Dec 05 '25 00:12 vicheey

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?

valerena avatar Dec 05 '25 19:12 valerena

It's not about MacOS. On linux host, the included binaries are linked to the system library libz.so that is unwanted in homebrew.

daeho-ro avatar Dec 07 '25 04:12 daeho-ro

@valerena also is the emulator open source so that we can build from source code?

chenrui333 avatar Dec 18 '25 03:12 chenrui333