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

qt5: fix check for python2 version #24768

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

jcar87
Copy link
Contributor

@jcar87 jcar87 commented Jul 30, 2024

Summary

Changes to recipe: qt/5.x.x

Motivation

  • building qtwebengine requires python2 (still), and the current check in the validate_build() method does not work since it checks for stdout

Details

  • check the python version by passing -c "import platform;print(platform.python_version())" instead, which is correctly printed to stdout - avoids other alternative solutions like pipe redirection or calling the underlying process popen

@jcar87
Copy link
Contributor Author

jcar87 commented Jul 30, 2024

tested locally with

conan create . --version=5.15.14 -o "*:shared=True" -o "qt/*:qtwebengine=True" -o "qt/*:gui=True" -o "qt/*:qtlocation=True" -o "qt/*:qtwebchannel=True"

on Windows

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 1 (06d7ffe70b197725513b2a15793709f0fafd4650):

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

Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 1 (06d7ffe70b197725513b2a15793709f0fafd4650):

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

Copy link
Contributor

Hooks produced the following warnings for commit 06d7ffe
qt/5.15.14@#e48ab594b0203f6676cf59933576dffb
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/platforms/libqcocoa.dylib' links to system library 'ColorSync' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Network.5.dylib' links to system library 'CFNetwork' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Network.5.15.14.dylib' links to system library 'CFNetwork' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Network.5.15.dylib' links to system library 'CFNetwork' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Network.dylib' links to system library 'CFNetwork' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/platforms/libqoffscreen.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/platforms/libqminimal.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/platforms/libqcocoa.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/printsupport/libcocoaprintersupport.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/styles/libqmacstyle.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/imageformats/libqgif.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/imageformats/libqico.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/imageformats/libqjpeg.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/generic/libqtuiotouchplugin.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Widgets.5.15.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport.5.15.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Widgets.5.15.14.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Widgets.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport.5.15.14.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Gui.5.15.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport.5.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Gui.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Widgets.5.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Gui.5.15.14.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5OpenGL.5.15.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5OpenGL.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5OpenGL.5.15.14.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Gui.5.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5OpenGL.5.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/platforms/libqcocoa.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport.5.15.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core.5.15.14.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Test.5.15.14.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport.5.15.14.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Test.5.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core.5.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport.5.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core.5.15.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Test.5.15.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Test.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core.5.15.14.dylib' links to system library 'DiskArbitration' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core.5.dylib' links to system library 'DiskArbitration' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core.dylib' links to system library 'DiskArbitration' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core.5.15.dylib' links to system library 'DiskArbitration' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core_debug.5.15.dylib' links to system library 'DiskArbitration' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core_debug.dylib' links to system library 'DiskArbitration' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core_debug.5.15.14.dylib' links to system library 'DiskArbitration' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core_debug.5.dylib' links to system library 'DiskArbitration' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Network_debug.5.15.14.dylib' links to system library 'CFNetwork' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Network_debug.5.dylib' links to system library 'CFNetwork' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Network_debug.dylib' links to system library 'CFNetwork' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Network_debug.5.15.dylib' links to system library 'CFNetwork' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/platforms/libqcocoa_debug.dylib' links to system library 'ColorSync' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/platforms/libqminimal_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/platforms/libqoffscreen_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/platforms/libqcocoa_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/printsupport/libcocoaprintersupport_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/styles/libqmacstyle_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/imageformats/libqico_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/imageformats/libqgif_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/imageformats/libqjpeg_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/generic/libqtuiotouchplugin_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Widgets_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Gui_debug.5.15.14.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5OpenGL_debug.5.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Gui_debug.5.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5OpenGL_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5OpenGL_debug.5.15.14.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport_debug.5.15.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Gui_debug.5.15.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport_debug.5.15.14.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5OpenGL_debug.5.15.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Gui_debug.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport_debug.5.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Widgets_debug.5.15.14.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Widgets_debug.5.15.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Widgets_debug.5.dylib' links to system library 'AGL' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './plugins/platforms/libqcocoa_debug.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Test_debug.5.15.14.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core_debug.5.15.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport_debug.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport_debug.5.15.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core_debug.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Test_debug.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport_debug.5.15.14.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5PrintSupport_debug.5.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core_debug.5.15.14.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Core_debug.5.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Test_debug.5.15.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libQt5Test_debug.5.dylib' links to system library 'ApplicationServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\libGLESv2.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\libGLESv2d.dll' links to system library 'd3d9' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\plugins\platforms\qdirect2d.dll' links to system library 'dwrite' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\Qt5Gui.dll' links to system library 'd3d11' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\plugins\platforms\qdirect2d.dll' links to system library 'd3d11' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\plugins\platforms\qdirect2d.dll' links to system library 'd2d1' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\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 '.\bin\Qt5Core.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\Qt5Gui.dll' links to system library 'dxgi' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\Qt5Guid.dll' links to system library 'd3d11' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\plugins\platforms\qdirect2dd.dll' links to system library 'd3d11' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\plugins\platforms\qdirect2dd.dll' links to system library 'dwrite' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\plugins\sqldrivers\qsqlodbcd.dll' links to system library 'odbc32' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\plugins\platforms\qdirect2dd.dll' links to system library 'd2d1' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\Qt5Cored.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\Qt5Guid.dll' links to system library 'dxgi' but it is not in cpp_info.system_libs.

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

Nice, much safer than using pipes.

@conan-center-bot conan-center-bot merged commit a09968f into conan-io:master Jul 31, 2024
13 checks passed
@jcar87 jcar87 deleted the lcc/bugfix/qt5-python2-check branch July 31, 2024 08:22
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