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

core: Add support for building on Centos Stream 9 and drop support for building on Centos 7.4 (fixes #521). #528

Merged
merged 28 commits into from
Sep 6, 2024

Conversation

kirkrodrigues
Copy link
Member

Description

As #521 mentions, CentOS reached EoL on 2024-Jun-30, so its default mirror list no longer exists. It seems like some folks have moved to CentOS Stream 9.

This PR adds support for building on CentOS Stream 9 and drops support for building on CentOS 7.4. We can't say for sure if this will affect existing users, but hopefully they will file an issue if it does.

Note that:

  • We don't support static linking on CentOS Stream 9 since it doesn't seem to have static library packages like CentOS 7.4 did.
    • To support static library building, we would need to write build scripts for several packages, so for now, we'll defer that work until a user asks.
  • The MariaDB C Connector package on CentOS Stream 9 requires that we include mysql.h directly rather than as a file within mariadb, so this PR updates all references to do the same.
    • The way we were including mysql.h before was essentially using the include from the system-include directory, bypassing the CMake config script (which sets the include dir to <system-include-dir>/mariadb already), so this is more correct.

Validation performed

  • Validated clp-core-build passed.
  • Validated compression, decompression, and search with the clp-package (to exercise the MariaDB/MySQL code paths in core).

@kirkrodrigues kirkrodrigues marked this pull request as ready for review September 5, 2024 12:47
message(
AUTHOR_WARNING
"Building with static libraries is unsupported on \
${CLP_STATIC_LIBS_UNSUPPORTED_PLATFORM}. Switching to shared libraries.")
Copy link
Member

Choose a reason for hiding this comment

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

Looking at line 132 in the same file, I feel this line wrapping is inappropriate.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, my mistake.

message(
AUTHOR_WARNING
"Building with static libraries is unsupported on"
" ${CLP_STATIC_LIBS_UNSUPPORTED_PLATFORM}. Switching to shared libraries.")
Copy link
Member Author

Choose a reason for hiding this comment

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

I put the space on this line to follow our code style of putting operators, etc. at the beginning of a broken line.

@LinZhihao-723 LinZhihao-723 merged commit decdc2d into y-scope:main Sep 6, 2024
17 checks passed
@kirkrodrigues kirkrodrigues deleted the fix-521 branch September 6, 2024 02:23
gibber9809 pushed a commit to gibber9809/clp that referenced this pull request Oct 25, 2024
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