#66020 closed defect (fixed)

qt6 portgroup: unkown component qtdeclarative

Reported by: tenzap Owned by: jhoyt4
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jhoyt4
Port: qt6

Description

I tried using qt6 portgroup.

Having set: "PortGroup qt6 1.0"

this line is problematic.

qt6.depends_component   qtdeclarative

and returns

Failed to parse file multimedia/welle.io/Portfile with subport 'welle.io-devel': unknown component qtdeclarative

It works fine if I try with "qttranslations" instead of "qtdeclarative"

Change History (4)

comment:1 Changed 18 months ago by tenzap

By digging, this is probably because ./_resources/port1.0/group/qt6_variables-1.0.tcl doesn't list all the components that are really available.

For now there is

    array set qt6_component_lib {
        qtbase {
            6.2
            7.0
            lib/pkgconfig/Qt6Core.pc
            ""
        }
        qttools {
            6.2
            7.0
            lib/cmake/Qt6Designer
            ""
        }
        qttranslations {
            6.2
            7.0
            libexec/qt6/translations/qt_ar.qm
            ""
        }
        sqlite-plugin {
            6.2
            7.0
            lib/cmake/Qt6Sql/Qt6Sql_QSQLiteDriverPlugin.cmake
            "-plugin"
        }
        psql-plugin {
            6.2
            7.0
            lib/cmake/Qt6Sql/Qt6Sql_QPSQLDriverPlugin.cmake
            "-plugin"
        }
        mysql-plugin {
            6.2
            7.0
            lib/cmake/Qt6Sql/Qt6Sql_QMYSQLDriverPlugin.cmake
            "-plugin"
        }
    }

We can see that compared to the same file for qt5 that most modules are actually missing. Thus making them unavailable in qt6.depends_component

comment:2 Changed 18 months ago by jhoyt4

comment:3 Changed 18 months ago by jhoyt4

Cc: jhoyt4 added

comment:4 Changed 17 months ago by jhoyt4

Owner: set to jhoyt4
Resolution: fixed
Status: newclosed

In bed4e19f335bae5945d3f7eb8646fb4298735211/macports-ports (master):

qt6: update to 6.2.4

  • add new subports for qtcharts, qtmultimedia, and qtshadertools
  • qtlocation is deprecated and replaced with qtpositioning
  • remove SDK 12 patch now that it is incorporated into 6.2.4
  • update qt6_variables to include all subports

Closes: #66019
Closes: #66020
Closes: #65030

Note: See TracTickets for help on using tickets.