Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705198 - dev-qt/qtwebengine-5.14.0 - CMake Error at /usr/lib64/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake:4 (_populate_Designer_plugin_properties): _populate_Designer_plugin_properties Macro invoked with incorrect arguments for macro named: _populate
Summary: dev-qt/qtwebengine-5.14.0 - CMake Error at /usr/lib64/cmake/Qt5Designer/Qt5De...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 699328
  Show dependency tree
 
Reported: 2020-01-12 00:39 UTC by Cecil Curry
Modified: 2020-02-09 19:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cecil Curry 2020-01-12 00:39:21 UTC
The probably auto-generated "/usr/lib64/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake" file installed by "dev-qt/qtwebengine-5.14.0" fails with a fatal CMake error:

    CMake Error at /usr/lib64/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake:4 (_populate_Designer_plugin_properties):
      _populate_Designer_plugin_properties Macro invoked with incorrect arguments
      for macro named: _populate_Designer_plugin_properties
    Call Stack (most recent call first):
      /usr/lib64/cmake/Qt5Designer/Qt5DesignerConfig.cmake:213 (include)
      CMakeLists.txt:244 (find_package)

The underlying issue appears to be that the _populate_Designer_plugin_properties() macro defined by the "/usr/lib64/cmake/Qt5Designer/Qt5DesignerConfig.cmake" file expects a trailing "IsDebugAndRelease" argument, which the "/usr/lib64/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake" file calling that macro fails to pass. 

Since "Qt5Designer_QWebEngineViewPlugin.cmake" is dynamically imported by "Qt5DesignerConfig.cmake", cmake then fails at the first call to "find_package(Qt5Designer)" -- preventing usage of Qt5Designer entirely from other projects. This includes PySide2 (which I currently maintain at ::raiagent), whose top-level "CMakeLists.txt" contains just such a call:

    #####################################################################
    #  Adding sub-directories to build
    #####################################################################
    
    add_subdirectory(libpyside)
    find_package(Qt5Designer)
    if(Qt5UiTools_FOUND AND Qt5Designer_FOUND)
        add_subdirectory(plugins)
    endif()

To circumvent this, I've currently unconditionally disabled Qt Designer support in PySide2 by passing "-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=yes" at configuration time. Clearly, this is suboptimal. It would be awesome if someone more familiar with the QtWebEngine build system could track this down a bit deeper.

Thanks, as always, for all the continued volunteerism. Gentoo rocks the open-source Casbah.
Comment 1 Andrew 2020-01-18 07:04:39 UTC
The problem is most likely related to cmake.I got a similar error when compiling cmake-14.6. The problem is temporarily resolved by masking the package cmake-14.6.
Comment 2 Andrew 2020-01-22 05:51:03 UTC
My problem appeared due to bug 703306. Sorry.
Comment 3 Cecil Curry 2020-02-01 04:07:36 UTC
This appears to have resolved upstream by the recently bumped dev-qt/qtwebengine-5.14.1. This might simply be because I'd already updated to dev-qt/qtwebengine-5.14.0 first -- ensuring that the concurrency race condition detailed at https://bugs.gentoo.org/703306 no longer applies.

In any case, I've been unable to replicate this since the bump. Score one for Team Gentoo (AKA, the good guys)!
Comment 4 Andreas Sturmlechner gentoo-dev 2020-02-02 10:53:28 UTC
The problem is upgrading from anything <Qt-5.14 to >=Qt-5.14 so unless they added some fallback function call this will be still an issue.
Comment 5 Larry the Git Cow gentoo-dev 2020-02-09 18:51:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe1eb44a73d1a8e99aae1eeb2b7504b326df2cd1

commit fe1eb44a73d1a8e99aae1eeb2b7504b326df2cd1
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-02-09 10:59:22 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-02-09 18:51:02 +0000

    dev-qt/qtcore: Fix cmake macro compat. for upgrade from <Qt-5.14
    
    Closes: https://bugs.gentoo.org/703306
    Closes: https://bugs.gentoo.org/705198
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 ...qtcore-5.14.1-cmake-macro-backward-compat.patch | 50 +++++++++++++
 dev-qt/qtcore/qtcore-5.14.1-r1.ebuild              | 85 ++++++++++++++++++++++
 2 files changed, 135 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2020-02-09 19:24:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/qt.git/commit/?id=91b38cc3ab9bb6c70c9e40ba6a5fbbe41b2da753

commit 91b38cc3ab9bb6c70c9e40ba6a5fbbe41b2da753
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-02-09 10:59:22 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-02-09 19:22:20 +0000

    dev-qt/qtcore: Fix cmake macro compat. for upgrade from <Qt-5.14
    
    Closes: https://bugs.gentoo.org/703306
    Closes: https://bugs.gentoo.org/705198
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
    (cherry picked from commit fe1eb44a73d1a8e99aae1eeb2b7504b326df2cd1)

 ...qtcore-5.14.1-cmake-macro-backward-compat.patch | 50 ++++++++++++++++++++++
 dev-qt/qtcore/qtcore-5.14.9999.ebuild              |  4 +-
 dev-qt/qtcore/qtcore-5.15.9999.ebuild              |  4 +-
 3 files changed, 56 insertions(+), 2 deletions(-)