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

(#17449) Use self.info.settings.os in source() method #18351

Conversation

EstebanDugueperoux2
Copy link
Contributor

  • Use self.info.settings.os instead of self.settings.os in source() method to avoid a "ConanException: 'self.settings' access in 'source()' method is forbidden"

Specify library name and version: lib/1.0


  - Use self.info.settings.os instead of self.settings.os in source() method to avoid a "ConanException: 'self.settings' access in 'source()' method is forbidden"
@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

🤖 Beep Boop! This pull request is making changes to 'recipes/qt//'.

👋 @ericLemanissier @jwillikers @MartinDelille you might be interested. 😉

@ghost
Copy link

ghost commented Jul 5, 2023

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 2 (38b924b39003b2c79ca068fad1683bd12d36648a):

  • qt/6.5.1@:
    All packages built successfully! (All logs)

  • qt/6.4.2@:
    All packages built successfully! (All logs)

  • qt/6.5.0@:
    All packages built successfully! (All logs)

  • qt/6.3.2@:
    All packages built successfully! (All logs)

  • qt/6.4.1@:
    All packages built successfully! (All logs)


Conan v2 pipeline ❌

Note: Conan v2 builds may be required once they are on the v2 ready list

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 1 (38b924b39003b2c79ca068fad1683bd12d36648a):

  • qt/6.5.0@:
    Didn't run or was cancelled before finishing

  • qt/6.5.1@:
    Didn't run or was cancelled before finishing

  • qt/6.3.2@:
    Didn't run or was cancelled before finishing

  • qt/6.4.2@:
    CI failed to create some packages (All logs)

    Logs for packageID 7a340d0cb6479b2b0d5ec641f5a4e38f66d1b74c:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.cppstd=17
    compiler.libcxx=libc++
    compiler.version=13
    os=Macos
    [options]
    */*:shared=True
    
    ********************************************************************************
    conan test cci-c9940c46/recipes/qt/6.x.x/test_package/conanfile.py qt/6.4.2@#81dff43672f5d7c441be5e6c20870568 -pr:h /Users/jenkins/w/prod-v2/BuildSingleReference/85382/efe1ee59-0ee0-4451-9c87-1128130cba71/profile_osx_13_libcpp_17_apple-clang_release_64.-shared-True.txt -c:h tools.system.package_manager:mode=install -c:h tools.system.package_manager:sudo=True -c:h tools.apple:sdk_path=/Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -pr:b /Users/jenkins/w/prod-v2/BuildSingleReference/85382/efe1ee59-0ee0-4451-9c87-1128130cba71/profile_osx_13_libcpp_17_apple-clang_release_64..txt -c:b tools.system.package_manager:mode=install -c:b tools.system.package_manager:sudo=True -c:b tools.apple:sdk_path=/Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
    ********************************************************************************
    
    ======== Input profiles ========
    Profile host:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.cppstd=17
    compiler.libcxx=libc++
    compiler.version=13
    os=Macos
    [options]
    */*:shared=True
    [conf]
    tools.system.package_manager:mode=install
    tools.system.package_manager:sudo=True
    tools.apple:sdk_path=/Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
    
    Profile build:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.cppstd=17
    compiler.libcxx=libc++
    compiler.version=13
    os=Macos
    [conf]
    tools.system.package_manager:mode=install
    tools.system.package_manager:sudo=True
    tools.apple:sdk_path=/Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
    
    ERROR: Error loading conanfile at '/Users/jenkins/w/prod-v2/BuildSingleReference/cci-c9940c46/recipes/qt/6.x.x/test_package/conanfile.py': Unable to load conanfile in /Users/jenkins/w/prod-v2/BuildSingleReference/cci-c9940c46/recipes/qt/6.x.x/test_package/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/Users/jenkins/w/prod-v2/BuildSingleReference/cci-c9940c46/recipes/qt/6.x.x/test_package/conanfile.py", line 10, in <module>
        from conans import tools, Meson, RunEnvironment, CMake
    ImportError: cannot import name 'tools' from 'conans' (/Users/jenkins/env_py_3_7_conan_2_0_6/lib/python3.7/site-packages/conans/__init__.py)
    
  • qt/6.4.1@:
    Didn't run or was cancelled before finishing


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.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2023

Hooks produced the following warnings for commit 38b924b
qt/6.3.2
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\Qt6Widgets.dll' links to system library 'uxtheme' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\res\archdatadir\plugins\styles\qwindowsvistastyle.dll' links to system library 'uxtheme' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\res\archdatadir\plugins\platforms\qdirect2d.dll' links to system library 'd3d9' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\res\archdatadir\plugins\platforms\qwindows.dll' links to system library 'd3d9' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\Qt6Core.dll' links to system library 'mpr' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\res\archdatadir\plugins\sqldrivers\qsqlodbc.dll' links to system library 'odbc32' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\res\archdatadir\plugins\platforms\qdirect2dd.dll' links to system library 'd3d9' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\res\archdatadir\plugins\platforms\qwindowsd.dll' links to system library 'd3d9' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\Qt6Cored.dll' links to system library 'mpr' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\Qt6Widgetsd.dll' links to system library 'uxtheme' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\res\archdatadir\plugins\styles\qwindowsvistastyled.dll' links to system library 'uxtheme' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\res\archdatadir\plugins\sqldrivers\qsqlodbcd.dll' links to system library 'odbc32' but it is not in cpp_info.system_libs.

@ericLemanissier
Copy link
Contributor

@EstebanDugueperoux2 I integrated your change into my PR: #17942

@EstebanDugueperoux2
Copy link
Contributor Author

@EstebanDugueperoux2 I integrated your change into my PR: #17942

From CI feedback, I see that test_package has reference to conans package from conan 1.x.
And I find strange to find reference to old generators in this test_package.

@ericLemanissier
Copy link
Contributor

Yes, nobody ported the test package to conan 2 yet. Don't hesitate to do it

@ghost ghost mentioned this pull request Jul 7, 2023
3 tasks
@ericLemanissier
Copy link
Contributor

FYI, I ported the test package to conan 2 in #17942. It should be merged shortly (just a team review is missing). Can you please close this PR @EstebanDugueperoux2 in order to avoid useless builds ?

@ghost ghost mentioned this pull request Jul 18, 2023
3 tasks
@ericLemanissier
Copy link
Contributor

#17942 is now merged. this PR is now a no-op and can be closed @EstebanDugueperoux2

@EstebanDugueperoux2 EstebanDugueperoux2 deleted the feature/Fix17449 branch July 18, 2023 13:09
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.

4 participants