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

[boost] Bump dependencies #12024

Merged
merged 6 commits into from
Aug 4, 2022
Merged

Conversation

uilianries
Copy link
Member

  • Promote both b2 and libiconv to the latest version available on Conan Center

  • 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.

Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
@conan-center-bot conan-center-bot added the Bump dependencies Only bumping dependencies versions in the recipe label Aug 3, 2022
Signed-off-by: Uilian Ries <uilianries@gmail.com>
@conan-center-bot conan-center-bot removed the Bump dependencies Only bumping dependencies versions in the recipe label Aug 3, 2022
Signed-off-by: Uilian Ries <uilianries@gmail.com>
@conan-center-bot

This comment has been minimized.

Signed-off-by: Uilian Ries <uilianries@gmail.com>
@conan-center-bot
Copy link
Collaborator

All green in build 7 (5cef0dc6d401de6ecd19467da5f60b69e379dd10):

  • boost/1.74.0@:
    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-12024/recipes/boost/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12024/recipes/boost/all/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-12024/recipes/boost/all/conanfile.py", line 6, in <module>
        from conans import tools
    ImportError: cannot import name 'tools' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • boost/1.70.0@:
    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-12024/recipes/boost/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12024/recipes/boost/all/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-12024/recipes/boost/all/conanfile.py", line 6, in <module>
        from conans import tools
    ImportError: cannot import name 'tools' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • boost/1.71.0@:
    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-12024/recipes/boost/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12024/recipes/boost/all/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-12024/recipes/boost/all/conanfile.py", line 6, in <module>
        from conans import tools
    ImportError: cannot import name 'tools' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • boost/1.78.0@:
    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-12024/recipes/boost/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12024/recipes/boost/all/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-12024/recipes/boost/all/conanfile.py", line 6, in <module>
        from conans import tools
    ImportError: cannot import name 'tools' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • boost/1.79.0@:
    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-12024/recipes/boost/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12024/recipes/boost/all/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-12024/recipes/boost/all/conanfile.py", line 6, in <module>
        from conans import tools
    ImportError: cannot import name 'tools' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • boost/1.72.0@:
    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-12024/recipes/boost/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12024/recipes/boost/all/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-12024/recipes/boost/all/conanfile.py", line 6, in <module>
        from conans import tools
    ImportError: cannot import name 'tools' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • boost/1.73.0@:
    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-12024/recipes/boost/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12024/recipes/boost/all/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-12024/recipes/boost/all/conanfile.py", line 6, in <module>
        from conans import tools
    ImportError: cannot import name 'tools' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • boost/1.76.0@:
    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-12024/recipes/boost/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12024/recipes/boost/all/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-12024/recipes/boost/all/conanfile.py", line 6, in <module>
        from conans import tools
    ImportError: cannot import name 'tools' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • boost/1.77.0@:
    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-12024/recipes/boost/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12024/recipes/boost/all/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-12024/recipes/boost/all/conanfile.py", line 6, in <module>
        from conans import tools
    ImportError: cannot import name 'tools' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • boost/1.75.0@:
    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-12024/recipes/boost/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12024/recipes/boost/all/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-12024/recipes/boost/all/conanfile.py", line 6, in <module>
        from conans import tools
    ImportError: cannot import name 'tools' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2022

Hooks produced the following warnings for commit 5cef0dc
boost/1.78.0
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\boost_log.dll' links to system library 'secur32' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\boost_log.dll' links to system library 'ws2_32' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\boost_log_setup.dll' links to system library 'ws2_32' but it is not in cpp_info.system_libs.
boost/1.77.0
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\boost_log.dll' links to system library 'ws2_32' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\boost_log_setup.dll' links to system library 'ws2_32' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\boost_log.dll' links to system library 'secur32' but it is not in cpp_info.system_libs.

@uilianries
Copy link
Member Author

Finally passed!

@conan-center-bot conan-center-bot merged commit c6cddd3 into conan-io:master Aug 4, 2022
@ChendoChap
Copy link

see the comment I've left here, I'm relatively sure this broke the recipe: c6cddd3#r80406005

@SergeyKrivohatskiy
Copy link

SergeyKrivohatskiy commented Aug 6, 2022

Hi!

Looks like this pull request (I guess upgrading b2) has broken boost builds on Windows with option layout=b2-default (equivalent to versioned on Windows).

For example calling this
conan install boost/1.70.0@ -b=boost -o "layout=b2-default"
will fail with the next error (I've also attached the full log.txt):

ERROR: boost/1.70.0: Error in package_info() method, line 1666
        raise ConanException("These libraries were built, but were not used in any boost module: {}".format(non_used))
        ConanException: These libraries were built, but were not used in any boost module: {'libboost_log-vc142-mt-x64-1_70', 'libboost_type_erasure-vc142-mt-x64-1_70', 'libboost_iostreams-vc142-mt-x64-1_70', 'libboost_context-vc142-mt-x64-1_70', 'libboost_regex-vc142-mt-x64-1_70', 'libboost_coroutine-vc142-mt-x64-1_70', 'libboost_contract-vc142-mt-x64-1_70', 'libboost_math_tr1l-vc142-mt-x64-1_70', 'libboost_stacktrace_noop-vc142-mt-x64-1_70', 'libboost_system-vc142-mt-x64-1_70', 'libboost_exception-vc142-mt-x64-1_70', 'libboost_graph-vc142-mt-x64-1_70', 'libboost_thread-vc142-mt-x64-1_70', 'libboost_math_tr1f-vc142-mt-x64-1_70', 'libboost_stacktrace_windbg-vc142-mt-x64-1_70', 'libboost_unit_test_framework-vc142-mt-x64-1_70', 'libboost_stacktrace_windbg_cached-vc142-mt-x
64-1_70', 'libboost_math_c99f-vc142-mt-x64-1_70', 'libboost_test_exec_monitor-vc142-mt-x64-1_70', 'libboost_random-vc142-mt-x64-1_70', 'libboost_log_setup-vc142-mt-x64-1_70', 'libboost_fiber-vc142-mt-x64-1_70', 'libboost_locale-vc142-mt-x64-1_70', 'libboost_fiber_numa-vc142-mt-x64-1_70', 'libboost_serialization-vc142-mt-x64-1_70', 'libboost_chrono-vc142-mt-x64-1_70', 'libboost_wserialization-vc142-mt-x64-1_70', 'libboost_date_time-vc142-mt-x64-1_70', 'libboost_program_options-vc142-mt-x64-1_70', 'libboost_container-vc142-mt-x64-1_70', 'libboost_math_c99l-vc142-mt-x64-1_70', 'libboost_filesystem-vc142-mt-x64-1_70', 'libboost_prg_exec_monitor-vc142-mt-x64-1_70', 'libboost_wave-vc142-mt-x64-1_70', 'libboost_math_c99-vc142-mt-x64-1_70', 'libboost_atomic-vc142-mt-x64-1_70', 'libboost_math_tr1-vc142-mt-x64-1_70', 'libboost_timer-vc142-mt-x64-1_70'}

@uilianries
Copy link
Member Author

@SergeyKrivohatskiy thank you for reporting. Please, Open an issue (bug report) and fill all details asked on the template: https://github.com/conan-io/conan-center-index/issues/new/choose So we can reproduce your case.

Comment on lines +1575 to 1577
pyversion = Version(self._python_version)
libformatdata["py_major"] = pyversion.major
libformatdata["py_minor"] = pyversion.minor

Choose a reason for hiding this comment

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

This switches the code from using conans.client.tools.version.Version which wraps semver and has .major and .minor properties to conans.model.version.Version (which has .major and .minor methods).

So the later calls to .major and .minor aren't calling the method and we get:

@(Pdb) Version(self._python_version).major
<bound method Version.major of '3.10'>

Should I revert the change or update these to

pyversion.major(fill=False)
pyversion.minor(fill=False)

@uilianries wanted to check your intention before raising a bug.

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@markferry The intention is only one: Move to Conan 2.0 https://docs.conan.io/en/latest/conan_v2.html Of course, it's a side-effect. Thanks for sharing, it deserves a new hotfix.

markferry added a commit to cognomen/conan-center-index that referenced this pull request Aug 8, 2022
…ersion

This switches the code from using `conans.client.tools.version.Version`
(which wraps semver and has .major and .minor properties) to
`conans.model.version.Version` (which has .major and .minor methods).

So the later calls to .major and .minor weren't calling the methods and we get:

```python
@(Pdb) Version(self._python_version).major
<bound method Version.major of '3.10'>
```
@jcar87 jcar87 mentioned this pull request Aug 10, 2022
4 tasks
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.

7 participants