-
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
(#16749) openldap: conan v2 support #16762
Conversation
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I detected other pull requests that are modifying openldap/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 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.
Hooks produced the following warnings for commit c4ca47aopenldap/2.6.1
|
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.
Your off to a great start, dropped a bunch of hints for you 😉
recipes/openldap/all/conanfile.py
Outdated
|
||
@property | ||
def _source_subfolder(self): | ||
return "source_subfolder" | ||
|
||
def configure(self): | ||
if self.options.shared: | ||
del self.options.fPIC |
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.
del self.options.fPIC | |
self.options.rm_safe("fPIC") |
recipes/openldap/all/conanfile.py
Outdated
} | ||
_autotools = None | ||
_configure_vars = None | ||
|
||
@property | ||
def _source_subfolder(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.
This can be removed in favor of a basic_layout
recipes/openldap/all/conanfile.py
Outdated
from conan.tools.files import get, apply_conandata_patches, rmdir, rm, copy | ||
from conan.tools.gnu import AutotoolsToolchain, Autotools, AutotoolsDeps | ||
from conan.tools.apple import fix_apple_shared_install_name | ||
from conan.errors import ConanInvalidConfiguration | ||
required_conan_version = ">=1.43.0" |
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.
This should be 1.55
recipes/openldap/all/conanfile.py
Outdated
def configure(self): | ||
if self.options.shared: | ||
del self.options.fPIC | ||
|
||
def source(self): | ||
tools.get(**self.conan_data["sources"][self.version], | ||
get(self, **self.conan_data["sources"][self.version], | ||
strip_root=True, destination=self._source_subfolder) |
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.
You can drop destination
recipes/openldap/all/conanfile.py
Outdated
@@ -49,55 +49,38 @@ def validate(self): | |||
raise ConanInvalidConfiguration( | |||
f"{self.name} is only supported on Linux") |
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.
Better to print the same thing as you need for cli or profile for the reference
f"{self.name} is only supported on Linux") | |
f"{self.ref} is only supported on Linux") |
recipes/openldap/all/conanfile.py
Outdated
autotools = Autotools(self) | ||
autotools.install() | ||
fix_apple_shared_install_name(self) | ||
copy(self, "LICENSE", dst="licenses", src=self._source_subfolder) |
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.
copy(self, "LICENSE", dst="licenses", src=self._source_subfolder) | |
copy(self, "LICENSE", dst=os.pathc.join(self.package_folder, "licenses"), src=self.source_folder) |
@@ -0,0 +1,83 @@ | |||
/* ldapurl -- a tool for generating LDAP URLs */ |
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.
You should check the docs package template this file can be drop if you use the improved CMakeLists.txt 😉
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 18478c2openldap/2.6.1
|
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 8f5bed8openldap/2.6.1
|
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 708ed46openldap/2.6.1
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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 comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 4338a2dopenldap/2.6.1
|
This comment has been minimized.
This comment has been minimized.
Conan v1 pipeline ❌Failure in build 3 (
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 ❌
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 3 (
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. |
Hooks produced the following warnings for commit 4338a2dopenldap/2.6.1
|
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. |
The openldap is now working with Conan 2.x. Please, update your local copy and feel free to open an issue in case finding something wrong.
|
Specify library name and version: openldap/2.6.1
It solves the issue #16749