Skip to content

Conversation

@hssyoo
Copy link
Contributor

@hssyoo hssyoo commented Apr 11, 2025

Fixes #9433

The AWS CLI calls out to the system's pager, which may share dynamic libraries with the AWS CLI. This can cause issues if an AWS CLI library is incompatible with the system's pager. Although the system owns the pager, because it's executed as a child of the AWS CLI's Python process, it inherits PyInstaller's LD_LIBRARY_PATH. This commit fixes the issue by retrieving kwargs for pager popen under the original_ld_library_path context manager. The effect is that the system's pager uses the the system's dependencies instead of the AWS CLI's.

@hssyoo hssyoo changed the title [v2] Remove ld library path from pager [v2] Remove LD_LIBRARY_PATH from pager Apr 11, 2025
@hssyoo hssyoo changed the title [v2] Remove LD_LIBRARY_PATH from pager [v2] Remove PyInstaller LD_LIBRARY_PATH from pager Apr 11, 2025
@hssyoo hssyoo force-pushed the remove_ld_library_path_from_pager branch from 9d2d63b to a5d2aca Compare April 11, 2025 20:28
@hssyoo hssyoo marked this pull request as ready for review April 11, 2025 21:44
@hssyoo hssyoo requested a review from ashovlin April 11, 2025 21:44
@hssyoo hssyoo merged commit 51abef1 into v2 Apr 14, 2025
117 of 120 checks passed
@hssyoo hssyoo deleted the remove_ld_library_path_from_pager branch April 14, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants