-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add mysql connector cpp lib #16429
Add mysql connector cpp lib #16429
Conversation
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Conan v1 pipeline ❌Failure in build 11 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. Conan v2 pipeline (informative, not required for merge) ❌
The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future. See details:Failure in build 11 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
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.
Hi @ahmed192a - thank you so much for your contribution! It's a good one :)
I've added some review comments, however I would greatly encourage you to review the template we have for CMake libraries and draw from there: https://github.com/conan-io/conan-center-index/tree/master/docs/package_templates/cmake_package
Please let us know if you need further assistance!
@@ -0,0 +1,3 @@ | |||
sources: | |||
"8.0.27": | |||
"https://github.com/mysql/mysql-connector-cpp/archive/refs/tags/8.0.27.tar.gz" |
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.
please add a sha256
with the expected checksum at the time of contributing
|
||
class MysqlConnectorCppConan(ConanFile): | ||
name = "mysql-connector-cpp" | ||
version = "8.0.27" |
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 version
attribute is not needed as the CI service will build the versions listed in config.yml
version = "8.0.27" | ||
license = "GPLv2" | ||
author = "Oracle" | ||
url = "https://dev.mysql.com/doc/connector-cpp/en/" |
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.
for url
in we use the URL of this repository (conan-center-index
in GitHub), while the homepage
attribute points to that of the library itself
description = "MySQL Connector/C++ is a MySQL database connector for C++." | ||
topics = ("mysql", "database", "connector", "c++") | ||
settings = "os", "compiler", "build_type", "arch" | ||
options = {"shared": [True, False]} |
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 options for libraries in Conan Center should also include fPIC
, as per:
https://github.com/conan-io/conan-center-index/blob/master/docs/package_templates/cmake_package/all/conanfile.py#L32-L39
options = {"shared": [True, False]} | ||
default_options = {"shared": False} | ||
generators = "CMakeToolchain" | ||
exports_sources = "CMakeLists.txt" |
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.
I can't see this file being part of the pull request - if the library already ahs its CMakeLists.txt
chances are this is not needed at all
generators = "CMakeToolchain" | ||
exports_sources = "CMakeLists.txt" | ||
requires = "openssl/1.1.0l" | ||
source_folder = "mysql-connector-cpp" |
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.
source_folder
and build_folder
are not needed, but please use a cmake_layout as per
https://github.com/conan-io/conan-center-index/blob/master/docs/package_templates/cmake_package/all/conanfile.py#L70-L72
source_folder = "mysql-connector-cpp" | ||
build_folder = "build" | ||
|
||
def config_options(self): |
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.
if a method is not needed, please remove it - although I suspect it will be needed once there is an fpic option:
|
||
|
||
def source(self): | ||
self.run("git clone https://github.com/mysql/mysql-connector-cpp.git") |
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.
please follow the pattern from https://github.com/conan-io/conan-center-index/blob/master/docs/package_templates/cmake_package/all/conanfile.py#L97-L98
so that the sources are retrieved from the tar.gz in conandata.yml
I detected other pull requests that are modifying mysql-connector-cpp/all recipe: This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi @ahmed192a - we are still waiting for your feedback on the review comments in order to proceed with this PR - gentle remidner! |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions. |
Specify library name and version: mysql-connector-cpp/8.0.27