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

Dependency fixes for CLP core: #224

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

kirkrodrigues
Copy link
Member

  • Fix static linking for mongoc and mongocxx to allow linked exes to run in the execution container.
  • Use apt's prebuilt mariadb-c-connector in the execution container.

Description

#218 added mongocxx to CLP-core's dependency container images, but trying to run executables linked with mongocxx in the execution container, we found that it was trying to load the dynamic library for mongoc. Upon fixing the installation script for mongocxx to make it link with the static mongoc, we found that mongoc was dynamically linking with icuuc. So this PR also fixes mongoc's installation script to not link with libicu.

This PR also switches the execution container from using a prebuilt mariadb-c-connector from mariadb.com to one from Ubuntu's apt repositories; this is to match the Ubuntu focal dependency container image.

Validation performed

  • Started the clp-core-dependencies-x86-ubuntu-focal container

  • Uninstalled mongoc and mongocxx:

    dpkg -r libmongoc-dev libmongocxx-dev
  • Installed mongoc and mongocxx using the new installation scripts:

    ./components/core/tools/scripts/lib_install/ubuntu-focal/install-all.sh
  • Built a binary that links with monogcxx

  • Started the clp-execution-x86-ubuntu-focal container

  • Validated that the binary built above could run successfully.

- Fix static linking for mongoc and mongocxx to allow linked exes to run in the execution container.
- Use apt's prebuilt mariadb-c-connector in the execution container.
wraymo
wraymo previously approved these changes Jan 11, 2024
Copy link
Contributor

@wraymo wraymo left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Contributor

@wraymo wraymo left a comment

Choose a reason for hiding this comment

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

It worked for the new version of clo with mongocxx dependency.

@kirkrodrigues kirkrodrigues merged commit 8f58c5e into y-scope:main Jan 11, 2024
5 checks passed
@kirkrodrigues kirkrodrigues deleted the static-mongo branch January 11, 2024 17: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