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

openssl: Make debug build renaming optional #10939

Closed
wants to merge 3 commits into from

Conversation

Sil3ntStorm
Copy link
Contributor

Specify library name and version: openssl/>=1.1.0

Make debug build library renaming optional for openssl >= 1.1.0 which for some inexplicable reason was explicitly added despite it not being there in upstream.

It's especially useless in a conan environment as every build has its own directory and actually makes it extremely painful to work with such libraries.

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the conan-center hook activated.

@SpaceIm
Copy link
Contributor

SpaceIm commented May 24, 2022

It comes from an old commit: conan-community/conan-openssl@e565e05

/cc @SSE4

Anyway this debug_suffix option has no effect for many compilers and openssl versions, so it should be deleted in these cases.

@Sil3ntStorm
Copy link
Contributor Author

Anyway this debug_suffix option has no effect for many compilers and openssl versions, so it should be deleted in these cases.

It is already deleted for versions where it is not used. Deleting it for other compilers, will make it more complicated to use the option, as conan will complain about the option not existing when you simply specify that as an option in a consumer conanfile.

One would have to replicate the checks, or could possibly check if the option exists before setting it. In any case it would require a configure function, rather than just being able to use default_options

@SSE4
Copy link
Contributor

SSE4 commented May 25, 2022

well, it came from the bug in the FindOpenSSL.cmake in some old(er) cmake version from ~3 years ago.
maybe it's already fixed in latest release and no longer an issue? I think it's worth checking.
if so, I guess the workaround could be removed altogether, without adding a new option.
UPD: I think the right issue is https://gitlab.kitware.com/cmake/cmake/-/issues/17604

@Sil3ntStorm
Copy link
Contributor Author

Sil3ntStorm commented May 25, 2022

I don't really care either way, was just trying to go for "as little impact as required" which in this instance is basically no impact for those who continue to want to run it the way it has been.

Ultimately I don't care much about how this is solved, so long as it is (and continues to be with future updates) possible to have output files that are named exactly the same regardless of configuration.

Unless I missed something it seems like conan provides its own FindOpenSSL.cmake file anyway that is then used by cmake?

Happy to do changes that help reach the goal.

@SSE4 SSE4 closed this May 27, 2022
@SSE4 SSE4 reopened this May 27, 2022
@conan-center-bot

This comment has been minimized.

@stale
Copy link

stale bot commented Jun 29, 2022

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.

@stale stale bot added the stale label Jun 29, 2022
@stale stale bot removed the stale label Jun 29, 2022
@ghost
Copy link

ghost commented Jun 29, 2022

I detected other pull requests that are modifying openssl/1.x.x recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prsso don't hesitate to report issues/improvements there.

@Sil3ntStorm
Copy link
Contributor Author

Sil3ntStorm commented Jul 12, 2022

Any update on this?
Is there any chance of merging this?

@prince-chrismc
Copy link
Contributor

There's a lot of PRs open, you can see prince-chrismc/conan-center-index-pending-review#1 to track the status of CCI

there's a few minor things out of date with the bot so the results are not perfect 🤞 we can get those fixed soon ish

@prince-chrismc
Copy link
Contributor

The original behavior matches upstream and the official find module https://gitlab.kitware.com/cmake/cmake/-/blob/master/Modules/FindOpenSSL.cmake#L282

Unless I missed something it seems like conan provides its own FindOpenSSL.cmake file anyway that is then used by cmake?

If you are installing the binaries built by conan center why not just use conan to consume them? as you point the generators provide the correct targets so you should not have any problems. 🤔

@SpaceIm
Copy link
Contributor

SpaceIm commented Jul 12, 2022

It doesn't match upstream actually.

…h it was explicitly added despite it not being there in upstream
@conan-center-bot
Copy link
Collaborator

All green in build 5 (e2b65ee1a8db25b563ad5930e504f402c4528fc7):

  • openssl/1.1.1p@:
    All packages built successfully! (All logs)

    🔸 Informative: This recipe is not ready for Conan v2

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this conan export step will work.
    See the recipe migration guide to know more about the changes required.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py", line 5, in <module>
        from conans import ConanFile, AutoToolsBuildEnvironment, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • openssl/1.1.1q@:
    All packages built successfully! (All logs)

    🔸 Informative: This recipe is not ready for Conan v2

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this conan export step will work.
    See the recipe migration guide to know more about the changes required.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py", line 5, in <module>
        from conans import ConanFile, AutoToolsBuildEnvironment, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • openssl/1.1.0l@:
    All packages built successfully! (All logs)

    🔸 Informative: This recipe is not ready for Conan v2

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this conan export step will work.
    See the recipe migration guide to know more about the changes required.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py", line 5, in <module>
        from conans import ConanFile, AutoToolsBuildEnvironment, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • openssl/1.0.2u@:
    All packages built successfully! (All logs)

    🔸 Informative: This recipe is not ready for Conan v2

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this conan export step will work.
    See the recipe migration guide to know more about the changes required.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py", line 5, in <module>
        from conans import ConanFile, AutoToolsBuildEnvironment, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • openssl/1.1.1o@:
    All packages built successfully! (All logs)

    🔸 Informative: This recipe is not ready for Conan v2

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this conan export step will work.
    See the recipe migration guide to know more about the changes required.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-10939/recipes/openssl/1.x.x/conanfile.py", line 5, in <module>
        from conans import ConanFile, AutoToolsBuildEnvironment, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    

@ghost ghost mentioned this pull request Aug 14, 2022
4 tasks
@danimtb
Copy link
Member

danimtb commented Sep 20, 2022

there are some conflicts as notified by github

@danimtb
Copy link
Member

danimtb commented Oct 19, 2022

This branch has conflicts that must be resolved

@stale
Copy link

stale bot commented Jan 5, 2023

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.

@stale
Copy link

stale bot commented Feb 4, 2023

This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants