Skip to content
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

Merged
merged 7 commits into from
Apr 10, 2024

Conversation

lucashuy
Copy link
Contributor

@lucashuy lucashuy commented Apr 9, 2024

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 the 1.0.8 version instead of the 1.0.6 in the image.

What side effects does this change have?

None

Mandatory Checklist

PRs will only be reviewed after checklist is complete

  • Add input/output type hints to new functions/methods
  • Write design document if needed (Do I need to write a design document?)
  • Write/update unit tests
  • Write/update integration tests
  • Write/update functional tests if needed
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@lucashuy lucashuy marked this pull request as ready for review April 9, 2024 22:41
@lucashuy lucashuy requested a review from a team as a code owner April 9, 2024 22:41
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
Copy link
Contributor Author

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.

Copy link
Contributor Author

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

Comment on lines 8 to 9
('/usr/local/lib/libbz2.so.1', '.'),
('/usr/local/lib/libcrypt.so.2', '.')
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@hnnasit hnnasit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@mndeveci mndeveci left a 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

@lucashuy lucashuy added this pull request to the merge queue Apr 10, 2024
Merged via the queue into aws:develop with commit 4bb5ec9 Apr 10, 2024
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants