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

add qt cmake macros #4577

Merged
merged 3 commits into from
Feb 19, 2021
Merged

add qt cmake macros #4577

merged 3 commits into from
Feb 19, 2021

Conversation

ericLemanissier
Copy link
Contributor

@ericLemanissier ericLemanissier commented Feb 15, 2021

fixes #4574

Specify library name and version: qt/5.15.2

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

@conan-center-bot
Copy link
Collaborator

Failure in build 1 (0ea00ae7a0ceb69ee2f4ee2420950fc356ffeacf):

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

    Logs for packageID e6b9345c0304447ec69852bcc948c7137e0e719a:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++
    compiler.version=5
    os=Linux
    os_build=Linux
    [options]
    qt:shared=False
    
    /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qdatabuffer_p.h:70:24: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
                 QT_WARNING_DISABLE_GCC("-Walloc-size-larger-than=")
                            ^
    In file included from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/qdatabuffer_p.h:1:0,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h:56,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp:40:
    /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qdatabuffer_p.h: In constructor ‘QDataBuffer<Type>::QDataBuffer(int)’:
    /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qdatabuffer_p.h:70:24: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
                 QT_WARNING_DISABLE_GCC("-Walloc-size-larger-than=")
                            ^
    In file included from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/qdatabuffer_p.h:1:0,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qstroker_p.h:56,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/qstroker_p.h:1,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qpaintengineex_p.h:58,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/qpaintengineex_p.h:1,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h:56,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp:66:
    /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qdatabuffer_p.h: In constructor ‘QDataBuffer<Type>::QDataBuffer(int)’:
    /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qdatabuffer_p.h:70:24: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
                 QT_WARNING_DISABLE_GCC("-Walloc-size-larger-than=")
                            ^
    In file included from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/qdatabuffer_p.h:1:0,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qstroker_p.h:56,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/qstroker_p.h:1,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qpaintengineex_p.h:58,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/qpaintengineex_p.h:1,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h:56,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/src/opengl/gl2paintengineex/qglcustomshaderstage.cpp:42:
    /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qdatabuffer_p.h: In constructor ‘QDataBuffer<Type>::QDataBuffer(int)’:
    /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qdatabuffer_p.h:70:24: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
                 QT_WARNING_DISABLE_GCC("-Walloc-size-larger-than=")
                            ^
    In file included from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/qdatabuffer_p.h:1:0,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qstroker_p.h:56,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/qstroker_p.h:1,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qpaintengineex_p.h:58,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/qpaintengineex_p.h:1,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h:56,
                     from /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp:41:
    /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qdatabuffer_p.h: In constructor ‘QDataBuffer<Type>::QDataBuffer(int)’:
    /home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/source/qt5/qtbase/include/QtGui/5.15.2/QtGui/private/../../../../../src/gui/painting/qdatabuffer_p.h:70:24: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
                 QT_WARNING_DISABLE_GCC("-Walloc-size-larger-than=")
                            ^
    strip:/home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/package/e6b9345c0304447ec69852bcc948c7137e0e719a/bin/fixqt4headers.pl: File format not recognized
    make[1]: [install_fixqt4headers] Error 1 (ignored)
    strip:/home/conan/w/BuildSingleReference/.conan/data/qt/5.15.2/_/_/package/e6b9345c0304447ec69852bcc948c7137e0e719a/bin/syncqt.pl: File format not recognized
    make[1]: [install_syncqt] Error 1 (ignored)
    ERROR: qt/5.15.2: Error in package_info() method, line 709
    	self.cpp_info.build_modules[gen].append(module)
    	TypeError: list indices must be integers or slices, not str
    

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.

@conan-center-bot
Copy link
Collaborator

Failure in build 3 (e65d8ff3b310b0f0e505d7dd4fd2ab89839bd003):

  • qt/5.15.2@:
    An unexpected error happened and has been reported

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.

and remove unused cmake files
@conan-center-bot
Copy link
Collaborator

Failure in build 4 (d5549e2d0ff2ca744828a00305eef392173ce9c5):

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

    Logs for packageID 1e154caf37c1f0a2ef948460b87613eef4944a53:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Debug
    compiler=Visual Studio
    compiler.runtime=MTd
    compiler.version=16
    os=Windows
    os_build=Windows
    [options]
    qt:shared=False
    
    ********************************************************************************
    conan install qt/5.15.2@ --profile=C:\J\w\BuildSingleReference@7/5788/863d11cb-9c9f-42d6-9df9-cf1eca2f2e0f/profile.txt --build=qt
    ********************************************************************************
    Configuration:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Debug
    compiler=Visual Studio
    compiler.runtime=MTd
    compiler.version=16
    os=Windows
    os_build=Windows
    [options]
    qt:shared=False
    [build_requires]
    [env]
    
    Traceback (most recent call last):
      File "c:\python36\lib\site-packages\conans\client\command.py", line 2115, in run
        method(args[0][1:])
      File "c:\python36\lib\site-packages\conans\client\command.py", line 531, in install
        lockfile_node_id=args.lockfile_node_id)
      File "c:\python36\lib\site-packages\conans\client\conan_api.py", line 94, in wrapper
        return f(api, *args, **kwargs)
      File "c:\python36\lib\site-packages\conans\client\conan_api.py", line 560, in install_reference
        lockfile_node_id=lockfile_node_id)
      File "c:\python36\lib\site-packages\conans\client\manager.py", line 57, in deps_install
        lockfile_node_id=lockfile_node_id)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_manager.py", line 116, in load_graph
        apply_build_requires=apply_build_requires)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_manager.py", line 246, in _resolve_graph
        graph_lock=graph_lock)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_manager.py", line 365, in _load_graph
        apply_build_requires=apply_build_requires)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_manager.py", line 286, in _recurse_build_requires
        self._binary_analyzer.evaluate_graph(graph, build_mode, update, remotes, nodes_subset, root)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_binaries.py", line 384, in evaluate_graph
        self._evaluate_node(node, build_mode, update, remotes)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_binaries.py", line 176, in _evaluate_node
        self._process_node(node, pref, build_mode, update, remotes)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_binaries.py", line 242, in _process_node
        self._evaluate_cache_pkg(node, package_layout, pref, metadata, remote, remotes, update)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_binaries.py", line 95, in _evaluate_cache_pkg
        assert node.prev, "PREV for %s is None: %s" % (str(pref), metadata.dumps())
    AssertionError: PREV for brotli/1.0.9:b2b69efcc79a149e0bc765fb12ba0278d52fc260 is None: {"recipe": {"revision": "802b2457f7a7a509ed80e7e45adf960e", "remote": "conan-center", "properties": {}, "checksums": {"conan_export.tgz": {"md5": "79960f320ee43a2d3c147fbb29bac38a", "sha1": "136cb6fd2703572891d37c6e8dfc238a5e2c070b"}, "conanmanifest.txt": {"md5": "435b2c972b28d8dda25a06c081604061", "sha1": "e2318b845365c854bfb89a5866ffc51fc0cd357c"}, "conanfile.py": {"md5": "2e0ab9294327821a66c72a3050bd4af3", "sha1": "cc9dd63b1437ed11f6ebb833519637130065e717"}}}, "packages": {"b2b69efcc79a149e0bc765fb12ba0278d52fc260": {"revision": null, "recipe_revision": null, "remote": null, "properties": {}, "checksums": {}}}}
    
    ERROR: PREV for brotli/1.0.9:b2b69efcc79a149e0bc765fb12ba0278d52fc260 is None: {"recipe": {"revision": "802b2457f7a7a509ed80e7e45adf960e", "remote": "conan-center", "properties": {}, "checksums": {"conan_export.tgz": {"md5": "79960f320ee43a2d3c147fbb29bac38a", "sha1": "136cb6fd2703572891d37c6e8dfc238a5e2c070b"}, "conanmanifest.txt": {"md5": "435b2c972b28d8dda25a06c081604061", "sha1": "e2318b845365c854bfb89a5866ffc51fc0cd357c"}, "conanfile.py": {"md5": "2e0ab9294327821a66c72a3050bd4af3", "sha1": "cc9dd63b1437ed11f6ebb833519637130065e717"}}}, "packages": {"b2b69efcc79a149e0bc765fb12ba0278d52fc260": {"revision": null, "recipe_revision": null, "remote": null, "properties": {}, "checksums": {}}}}
    

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.

@ericLemanissier
Copy link
Contributor Author

@jgsogo @danimtb another occurrence of this ERROR: PREV for brotli/1.0.9:b2b69efcc79a149e0bc765fb12ba0278d52fc260 is None about which I have no clue what should be done

@danimtb
Copy link
Member

danimtb commented Feb 15, 2021

I am clueless as well but recall seeing this error some time ago 🤔

@conan-center-bot
Copy link
Collaborator

Failure in build 5 (d5549e2d0ff2ca744828a00305eef392173ce9c5):

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

    Logs for packageID 9047d0d5fb0a6bd9c1f630604c48a1784e8a74b4:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Release
    compiler=Visual Studio
    compiler.runtime=MT
    compiler.version=14
    os=Windows
    os_build=Windows
    [options]
    qt:shared=False
    
    ********************************************************************************
    conan install qt/5.15.2@ --profile=C:\J\w\BuildSingleReference@3/5789/930be42b-be8a-4772-ace8-38afdb695d40/profile.txt --build=qt
    ********************************************************************************
    Configuration:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Release
    compiler=Visual Studio
    compiler.runtime=MT
    compiler.version=14
    os=Windows
    os_build=Windows
    [options]
    qt:shared=False
    [build_requires]
    [env]
    
    Traceback (most recent call last):
      File "c:\python36\lib\site-packages\conans\client\command.py", line 2115, in run
        method(args[0][1:])
      File "c:\python36\lib\site-packages\conans\client\command.py", line 531, in install
        lockfile_node_id=args.lockfile_node_id)
      File "c:\python36\lib\site-packages\conans\client\conan_api.py", line 94, in wrapper
        return f(api, *args, **kwargs)
      File "c:\python36\lib\site-packages\conans\client\conan_api.py", line 560, in install_reference
        lockfile_node_id=lockfile_node_id)
      File "c:\python36\lib\site-packages\conans\client\manager.py", line 57, in deps_install
        lockfile_node_id=lockfile_node_id)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_manager.py", line 116, in load_graph
        apply_build_requires=apply_build_requires)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_manager.py", line 246, in _resolve_graph
        graph_lock=graph_lock)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_manager.py", line 365, in _load_graph
        apply_build_requires=apply_build_requires)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_manager.py", line 286, in _recurse_build_requires
        self._binary_analyzer.evaluate_graph(graph, build_mode, update, remotes, nodes_subset, root)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_binaries.py", line 384, in evaluate_graph
        self._evaluate_node(node, build_mode, update, remotes)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_binaries.py", line 176, in _evaluate_node
        self._process_node(node, pref, build_mode, update, remotes)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_binaries.py", line 242, in _process_node
        self._evaluate_cache_pkg(node, package_layout, pref, metadata, remote, remotes, update)
      File "c:\python36\lib\site-packages\conans\client\graph\graph_binaries.py", line 95, in _evaluate_cache_pkg
        assert node.prev, "PREV for %s is None: %s" % (str(pref), metadata.dumps())
    AssertionError: PREV for brotli/1.0.9:df81ad20137149d7a51276fd3e24009b45e5964a is None: {"recipe": {"revision": "802b2457f7a7a509ed80e7e45adf960e", "remote": "conan-center", "properties": {}, "checksums": {"conan_export.tgz": {"md5": "79960f320ee43a2d3c147fbb29bac38a", "sha1": "136cb6fd2703572891d37c6e8dfc238a5e2c070b"}, "conanmanifest.txt": {"md5": "435b2c972b28d8dda25a06c081604061", "sha1": "e2318b845365c854bfb89a5866ffc51fc0cd357c"}, "conanfile.py": {"md5": "2e0ab9294327821a66c72a3050bd4af3", "sha1": "cc9dd63b1437ed11f6ebb833519637130065e717"}}}, "packages": {"df81ad20137149d7a51276fd3e24009b45e5964a": {"revision": null, "recipe_revision": null, "remote": null, "properties": {}, "checksums": {}}}}
    
    ERROR: PREV for brotli/1.0.9:df81ad20137149d7a51276fd3e24009b45e5964a is None: {"recipe": {"revision": "802b2457f7a7a509ed80e7e45adf960e", "remote": "conan-center", "properties": {}, "checksums": {"conan_export.tgz": {"md5": "79960f320ee43a2d3c147fbb29bac38a", "sha1": "136cb6fd2703572891d37c6e8dfc238a5e2c070b"}, "conanmanifest.txt": {"md5": "435b2c972b28d8dda25a06c081604061", "sha1": "e2318b845365c854bfb89a5866ffc51fc0cd357c"}, "conanfile.py": {"md5": "2e0ab9294327821a66c72a3050bd4af3", "sha1": "cc9dd63b1437ed11f6ebb833519637130065e717"}}}, "packages": {"df81ad20137149d7a51276fd3e24009b45e5964a": {"revision": null, "recipe_revision": null, "remote": null, "properties": {}, "checksums": {}}}}
    

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.

@ericLemanissier
Copy link
Contributor Author

ericLemanissier commented Feb 15, 2021

@danimtb could it be linked to conan-io/conan#6379 or conan-io/conan#8172 ?

@conan-center-bot
Copy link
Collaborator

Failure in build 6 (d5549e2d0ff2ca744828a00305eef392173ce9c5):

  • qt/5.15.2@:
    An unexpected error happened and has been reported

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.

ericLemanissier added a commit to ericLemanissier/conan-center-index that referenced this pull request Feb 16, 2021
@conan-center-bot
Copy link
Collaborator

Failure in build 7 (d5549e2d0ff2ca744828a00305eef392173ce9c5):

  • qt/5.15.2@:
    An unexpected error happened and has been reported

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.

@ericLemanissier
Copy link
Contributor Author

@danimtb and the curse goes on

@danimtb
Copy link
Member

danimtb commented Feb 16, 2021

took the erratic machine offline to avoid the error ATM. Let's see if that works

@ericriff ericriff mentioned this pull request Feb 16, 2021
4 tasks
@conan-center-bot
Copy link
Collaborator

All green in build 8 (d5549e2d0ff2ca744828a00305eef392173ce9c5):

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

"set(Qt5Core_QMAKE_EXECUTABLE ${CMAKE_CURRENT_LIST_DIR}/../../../bin/qmake)\n"
"set(Qt5Core_MOC_EXECUTABLE ${CMAKE_CURRENT_LIST_DIR}/../../../bin/moc)\n"
"set(Qt5Core_RCC_EXECUTABLE ${CMAKE_CURRENT_LIST_DIR}/../../../bin/rcc)\n"
"set(Qt5Core_UIC_EXECUTABLE ${CMAKE_CURRENT_LIST_DIR}/../../../bin/uic)")
Copy link
Contributor Author

@ericLemanissier ericLemanissier Feb 17, 2021

Choose a reason for hiding this comment

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

TLDR: Would it be ok to provide cmake targets in Qt5:: namespace (using this build module) whereas conan generated target are in the qt:: namespace ?

Director's cut: With the change as it is now, the user has to manually call qt5_wrap_cpp on the sources in the CMakeLists.txt. Most projects do not use this, but instead rely on CMAKE_AUTOMOC, which automatically invokes MOC on sources of all targets. This currently does not work, because cmake tries to invoke the target Qt5::moc, which does not exist. Would it be fine if I added this add_executable(Qt5::moc IMPORTED); set_target_properties(Qt5::moc PROPERTIES IMPORTED_LOCATION ${Qt5Core_QMAKE_EXECUTABLE}) ? I'm not sure because all the targets generated by conan are in the qt namespace, not in the Qt5 namespace, and I don't want to make this shift without components support.

WDYT ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is what is making my PR fail
#4562

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes: take a look at ericriff#5

@ericriff
Copy link
Contributor

Where is my merge?! Where is my merge?!

😆

@prince-chrismc
Copy link
Contributor

Ready to Merge
Currently 22 pull request(s) is/are waiting to be merged 🎉

According to my bot... and that's a LOT ready.

@jgsogo
Copy link
Contributor

jgsogo commented Feb 19, 2021

master has been trying to upload gdal packages for several hours (we retry several times when this operation fails). #3436 (comment) . Now we are back on track (all packages from gdal are not uploaded, but at least we are moving forward).

Nice to see there are so many packages ready 🎉

@conan-center-bot conan-center-bot merged commit c78f6f3 into conan-io:master Feb 19, 2021
@prince-chrismc
Copy link
Contributor

This build should take ~11hrs based on the last one

[
  {
    "url": "https://api.github.com/repos/conan-io/conan-center-index/statuses/d5549e2d0ff2ca744828a00305eef392173ce9c5",
    "avatar_url": "https://avatars.githubusercontent.com/u/54393557?v=4",
    "id": 12192890712,
    "node_id": "MDEzOlN0YXR1c0NvbnRleHQxMjE5Mjg5MDcxMg==",
    "state": "success",
    "description": "This commit looks good",
    "target_url": "https://ci-conan-prod.jfrog.team/job/cci/job/PR-4577/8/display/redirect",
    "context": "continuous-integration/jenkins/pr-merge",
    "created_at": "2021-02-16T21:58:36Z",
    "updated_at": "2021-02-16T21:58:36Z",
    "creator": {
      "login": "conan-center-bot",
    }
  },
  {
    "url": "https://api.github.com/repos/conan-io/conan-center-index/statuses/d5549e2d0ff2ca744828a00305eef392173ce9c5",
    "avatar_url": "https://avatars.githubusercontent.com/u/54393557?v=4",
    "id": 12185253569,
    "node_id": "MDEzOlN0YXR1c0NvbnRleHQxMjE4NTI1MzU2OQ==",
    "state": "pending",
    "description": "This commit is being built",
    "target_url": "https://ci-conan-prod.jfrog.team/job/cci/job/PR-4577/8/display/redirect",
    "context": "continuous-integration/jenkins/pr-merge",
    "created_at": "2021-02-16T10:59:24Z",
    "updated_at": "2021-02-16T10:59:24Z",
    "creator": {
      "login": "conan-center-bot",
    }
  }
]

@jgsogo
Copy link
Contributor

jgsogo commented Feb 19, 2021

We cannot afford building after merging to master. When I have time, one of my priorities is to implement something that will force to update the PR before considering the merge if there are changes to the same recipe already in master... probably it is something easy for a Github Action: whenever there is a push to master, it can check the recipe being modified and label the PRs accordingly 😉

@prince-chrismc
Copy link
Contributor

@ericLemanissier
Copy link
Contributor Author

We would probably still need to rebuild anyway after merge, because the dependencies could have been updated in the mean-time too, right ?

@jgsogo
Copy link
Contributor

jgsogo commented Feb 20, 2021

We would probably still need to rebuild anyway after merge, because the dependencies could have been updated in the mean-time too, right ?

That's another big challenge and, IMO, it should be addressed the other way around: rebuild all the consumers each time we merge a package to master. This is something we aren't doing, although we are already storing information about dependencies in Artifactory to think about this problem in the future.

Nevertheless, I'm not sure if it would require too much computational power. The C++ graph is not very big, but it is very connected (link), I'm not sure if we can afford to build 10-20 references each time we merge a change to some libraries... 😓

@Croydon
Copy link
Contributor

Croydon commented Feb 20, 2021

Random thought: I have no clue how much free capacity CCI has on average (or in the future if CCI growths further), but maybe some not-that-urgent rebuilds could be added to an "only build it, if there is free capacity" waiting list?

@jgsogo
Copy link
Contributor

jgsogo commented Feb 20, 2021

TBH we are not at that point yet. I would say that we have different objectives with different priorities (not in order):

  • UX/reliability (PRs): it is not just adding retries when something fails (most of the timeouts, connection errors, some compilation failures, memory issues,...), we are trying to understand why it fails and fix the underlying issues.
  • efficiency/maintainability: try to make smart use of the resources we have (machine, human and source)
  • scalability: the process must be prepared to scale if we are giving more resources, without any modification.
  • quality: we need to ensure that packages are available when changes are merged (different tapaholes stories and databases sync).
  • consistency: rebuild libraries when it is needed to ensure the full dependency graph is consistent. Your suggestion is annotated here.
  • ... and I'm sure I'm forgetting some.

I'd like to think that we are improving in all those areas, some of them are more visible and others are only appreciated by the internal team. What I'm sure of is that we can work on those objectives only because other people are doing an amazing job here. If we were required to review every PR we wouldn't be able to work on the internals.

@prince-chrismc
Copy link
Contributor

We would probably still need to rebuild anyway after merge, because the dependencies could have been updated in the mean-time too, right ?

Correct me if I am missing something but CCI builds are not locked to a recipe revision. By the time a consumer gets it it might be too late and changed again anyways? 💭

The package version can not change in the merge commit... I am not sure it adds much benefit, in fact it might introduce instability if the targets changed.


we are improving in all those areas, some of them are more visible and others are only appreciated by the internal team

I really appreciate the work from the entire Conan, it's truly making a difference about how we look at OSS and the few teams using it have really be able to deliver massive new technologies with a low velocity.

We might not "see" the changes but we certainly feel them. So thank you 🤗

conan-center-bot pushed a commit that referenced this pull request Mar 3, 2021
* Add QuaZip 1.1

* Projects that link against Qt5 need c++ 11

* invoke moc manually

blocked by #4577

* Fix licence name

Co-authored-by: Uilian Ries <uilianries@gmail.com>

Co-authored-by: Eric Lemanissier <eric.lemanissier@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
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.

[package] qt/5: qt5_add_resources cmake function is missing
9 participants