Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-114811

Update to Qt 6.6.0-beta1 breaks building kjobwidgets

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.6.0 Beta2
    • 6.6.0 Beta1
    • D-Bus
    • None
    • Linux/Wayland, Linux/X11, Linux/Yocto, Linux/Other display system
    • 44b5ad01f0da55a351e0855e1173acfbef77221d (dev), 838f66be51103b8567ee22b71bd8e6102297b681 (6.6)

      After updating Qt to 6.6.0-beta1, kjobwidgets (the Qt6 version from git master branch) no longer builds.

      [1/28] cd /home/bero/repos/packaging-tools/kf6-kjobwidgets/BUILD/kjobwidgets-master/build/src && /usr/lib64/qt6/./libexec/moc @/home/bero/repos/packaging-tools/kf6-kjobwidgets/BUILD/kjobwidgets-master/build/src/moc_jobviewiface.cpp_parameters
      FAILED: src/moc_jobviewiface.cpp /home/bero/repos/packaging-tools/kf6-kjobwidgets/BUILD/kjobwidgets-master/build/src/moc_jobviewiface.cpp
      cd /home/bero/repos/packaging-tools/kf6-kjobwidgets/BUILD/kjobwidgets-master/build/src && /usr/lib64/qt6/./libexec/moc @/home/bero/repos/packaging-tools/kf6-kjobwidgets/BUILD/kjobwidgets-master/build/src/moc_jobviewiface.cpp_parameters
      /home/bero/repos/packaging-tools/kf6-kjobwidgets/BUILD/kjobwidgets-master/build/src/jobviewiface.h:39:1: error: Not a signal or slot declaration
      ninja: build stopped: subcommand failed.

      jobviewiface.h is generated by qdbusxml2cpp.

      The problematic line 39 is

      Q_NOREPLY inline void clearDescriptionField(uint number)

      The problem seems to be the use of Q_NOREPLY. Manually removing that from this line (and various other lines like it) fixes the build.

      Attaching the XML file moc_jobviewiface.cpp is generated from.

        1. org.kde.JobView.xml
          2 kB
          Bernhard Rosenkränzer
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            fabiankosmale Fabian Kosmale
            bero Bernhard Rosenkränzer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes