-
Notifications
You must be signed in to change notification settings - Fork 2k
Adding Botan 3.0.0 recipe #17364
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
Adding Botan 3.0.0 recipe #17364
Conversation
This comment has been minimized.
This comment has been minimized.
fixes #17247 |
22fc918
to
ef8a4cd
Compare
This comment has been minimized.
This comment has been minimized.
ef8a4cd
to
9c03cdd
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
b143dc4
to
fec14ec
Compare
This comment has been minimized.
This comment has been minimized.
9d019b8
to
fa9ec63
Compare
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
96a2343
to
69015fc
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I have contributed some further things that would be necessary to modernize this recipe in 8cd739a:
There are still other things that need to be fixed:
|
This comment has been minimized.
This comment has been minimized.
@Maaown do you want me to help here? I could rebase my changes onto your PR, and try to push it into your branch. |
@lieser That would be greatly appreciated, i'm not at all familiar with building on windows so i may need help on that part. |
I rebased most of my changes and pushed them to https://github.com/lieser/conan-center-index/tree/17247-botan-upgrade-conanfile-2.0. Did not have permissions to push into your branch. Maybe you could give me access? Or just pull them yourself. Did you test that reading the environment variables with |
|
||
def package_info(self): | ||
major_version = tools.Version(self.version).major | ||
major_version = self.version.split('.')[0] | ||
self.cpp_info.set_property("pkg_config_name", f"botan-{major_version}") | ||
self.cpp_info.names["pkg_config"] = f"botan-{major_version}" |
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.
From my understanding this is redundant with the self.cpp_info.set_property
line above, and can be removed.
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.
Removed it
# Required to build at least 2.12.1 | ||
return "sources" | ||
def layout(self): | ||
basic_layout(self, src_folder="src") |
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.
Is there a reason you changed sources
to src
? I slightly prefer the old sources
, to make sure it is not confused to be related with the src
folder inside the botan repository.
Also maybe place it between def validate()
and def source()
, so they are order according to the order in which they are called.
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.
Linter will complain if it is not src
. Moved the function in my PR.
for patch in self.conan_data.get('patches', {}).get(self.version, []): | ||
tools.patch(**patch) | ||
with tools.chdir(self._source_subfolder): | ||
apply_conandata_patches(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.
Maybe a Conan expert can answer this with a reason why:
Is build()
or source()
the best place to put this?
In my change I moved this to source()
, because the Boost recipe calls it there too, and it made sense to me conceptually. But in most recipe it seems to be called in the build()
method.
# Required, see https://github.com/conan-io/conan-center-index/pull/3456 | ||
macos_min_version = tools.apple_deployment_target_flag(self.settings.os, |
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.
Unsure how this is best resolved. apple_deployment_target_flag()
seems to be currently private because of a missing use case.
Don't know if we have here a use case, or if there is not a modern and better way. E.g. by using the AutoToolsBuildEnvironment
, the only place there apple_deployment_target_flag()
is called internally.
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.
Used AutotoolsToolchain(self).apple_min_version_flag
as a workaround.
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 botan/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.
Conan v1 pipeline ❌Sorry, the system is under maintenance and it doesn't accept builds right now. 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:Sorry, the system is under maintenance and it doesn't accept builds right now. |
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: botan/3.0.0
fixes #17247