-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chore: Build bzip2 from source for Linux Pyinstaller builds #6924
Conversation
curl "https://www.openssl.org/source/openssl-${openssl_version}.tar.gz" --output openssl.tar.gz | ||
tar xzf openssl.tar.gz | ||
cd openssl-${openssl_version} | ||
./config --prefix=/opt/openssl && make -j8 && make -j8 install_sw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The install_sw
target installs OpenSSL without all the manual pages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, let me just add a comment for this in the scripts
installer/pyinstaller/samcli.spec
Outdated
('/usr/local/lib/libbz2.so.1', '.'), | ||
('/usr/local/lib/libcrypt.so.2', '.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was an earlier discussion with @hnnasit about removing this all together. Do we know if it is possible to remove these custom configs just like the MacOS ones?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, we can try removing both of these to test. We can add them back easily anyways
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's monitor the nightly pipeline once this is merged
Which issue(s) does this change fix?
None.
Why is this change necessary?
The version of
bzip2
used in the image that builds the Linux Pyinstaller artifacts are old. We need to update them to a newer version.How does it address the issue?
Builds
bzip2
from source, consuming the1.0.8
version instead of the1.0.6
in the image.What side effects does this change have?
None
Mandatory Checklist
PRs will only be reviewed after checklist is complete
make pr
passesmake update-reproducible-reqs
if dependencies were changedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.