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

Patch libaio.so for testing-mysql-server-8 #27

Merged
merged 4 commits into from
Jan 10, 2025

Conversation

ZacBlanco
Copy link
Contributor

@ZacBlanco ZacBlanco commented Jan 8, 2025

PR to fix #26

This repository no longer builds properly due to updated MySQL download URLs. The first two commits add CI and solve build issues. The final commit is the compatibility fix for ubuntu 24.

The fix is to patch the mysql binary to instead look for libaio.so over libaio.so.1. libaio.so is the standard unversioned name of the library that is included with the development headers of libaio.

This change will require linux environments which use this library to have the libaio-dev[el] package installed. It already requires libnuma1 and libaio1 previously, so I don't think it's too big of an ask.

The plan after this PR merges would be to update the dependency in prestodb from testing-mysql-server-5 to testing-mysql-server-8. I think we should consider removing the testing-mysql-server-5 module from this project since MySQL 5 is EOL at this point

@ZacBlanco ZacBlanco force-pushed the fix-ubuntu-24 branch 2 times, most recently from 33ea327 to e2146bc Compare January 8, 2025 21:22
@ZacBlanco
Copy link
Contributor Author

Still needs testing

@ZacBlanco ZacBlanco marked this pull request as draft January 8, 2025 21:32
@ZacBlanco
Copy link
Contributor Author

Successfully ran on ubuntu 22 and 24. I don't have a centos machine to test in

@ZacBlanco ZacBlanco marked this pull request as ready for review January 8, 2025 22:13
@ZacBlanco ZacBlanco force-pushed the fix-ubuntu-24 branch 8 times, most recently from 170c7f1 to afd908f Compare January 9, 2025 07:13
@ZacBlanco
Copy link
Contributor Author

I have verified the CI works on my fork in ZacBlanco#1

@ZacBlanco
Copy link
Contributor Author

@rschlussel / @tdcmeehan thoughts on this solution?

@wanglinsong
Copy link
Member

@ZacBlanco is it possible to support starting mysql service with user root? User root does not work by default.

This change sets the mysql --user flag to Java's user.name
property which should allow this library to be more flexible
when used within containers that use the root user
@ZacBlanco
Copy link
Contributor Author

The latest change in 1fc6ccb should allow starting as root

@tdcmeehan tdcmeehan merged commit 36775c1 into prestodb:master Jan 10, 2025
1 check passed
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.

Support ubuntu 24 LTS with libaiot64
3 participants