Skip to contentSkip to conversation

package/qt6/qt6tools: allow building host Qt Linguist Tools

PATCH In review Roy Kollen Svendsen 2 participants 6 messages Sep 4, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/qt6/qt6tools: allow building host Qt Linguist Tools

According to src/linguist/CMakeLists.txt we need to enable the linguist feature:

...
if(NOT QT_FEATURE_linguist)
return()
endif()
add_subdirectory(lconvert)
add_subdirectory(lprodump)
add_subdirectory(lrelease)
add_subdirectory(lrelease-pro)
add_subdirectory(lupdate)
add_subdirectory(lupdate-pro)
if(QT_FEATURE_process AND QT_FEATURE_pushbutton AND QT_FEATURE_toolbutton AND TARGET Qt::Widgets AND NOT no-png)
add_subdirectory(linguist)
endif()
...

And according to configure.cmake we need to select print support:
...
qt_feature("linguist" PRIVATE
LABEL "Qt Linguist"
PURPOSE "Qt Linguist can be used by translator to translate text in Qt applications." CONDITION TARGET Qt::PrintSupport
)
...

---
 package/qt6/qt6tools/Config.in   | 11 +++++++++++
 package/qt6/qt6tools/qt6tools.mk | 10 ++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
package/qt6/qt6tools/Config.in +11 -0
index 5f52c5644f..eea461a2a9 100644
@@ -15,3 +15,14 @@ config BR2_PACKAGE_QT6TOOLS
 	  and design of applications.
 
 	  https://github.com/qt/qttools
+
+if BR2_PACKAGE_QT6TOOLS
+
+config BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS
+	bool "linguist tools (host)"
+	select BR2_PACKAGE_HOST_QT6BASE_PRINTSUPPORT
+	help
+	  Translate Qt C++ and Qt Quick applications into local
+	  languages.
+
+endif
package/qt6/qt6tools/qt6tools.mk +8 -2
index 09c986cfc6..897cf43054 100644
@@ -37,11 +37,17 @@ QT6TOOLS_DEPENDENCIES = \
 	qt6base \
 	host-qt6tools
 
+HOST_QT6TOOLS_DEPENDENCIES = host-qt6base
+
+ifeq ($(BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS),y)
+HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=ON
+else
+HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
 QT6TOOLS_DEPENDENCIES += qt6declarative
 endif
 
-HOST_QT6TOOLS_DEPENDENCIES = host-qt6base
-
 $(eval $(cmake-package))
 $(eval $(host-cmake-package))
Signature · 6 lines
2.46.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/qt6/qt6base: allow selecting the host Qt Print Support module

According to configure.cmake printsupport requires widgets:

qt_feature("printsupport" PRIVATE
LABEL "Qt PrintSupport"
CONDITION QT_FEATURE_widgets
SECTION "Module"
PURPOSE "Provides the Qt PrintSupport module."
)

So we let print support automatically select widgets support.

---
 package/qt6/qt6base/Config.in.host | 11 +++++++++++
 package/qt6/qt6base/qt6base.mk     | 16 ++++++++++++++--
 2 files changed, 25 insertions(+), 2 deletions(-)
package/qt6/qt6base/Config.in.host +11 -0
index 46fb668817..8f0bc1f070 100644
@@ -8,6 +8,13 @@ config BR2_PACKAGE_HOST_QT6BASE_GUI
 config BR2_PACKAGE_HOST_QT6BASE_NETWORK
 	bool
 
+# Select this if you need host qt6 tools that require the Qt Print Support
+# module
+# (e.g. Qt Tools Linguist Tools).
+config BR2_PACKAGE_HOST_QT6BASE_PRINTSUPPORT
+	bool
+	select BR2_PACKAGE_HOST_QT6BASE_WIDGETS
+
 # Select this if you need host qt6 tools that require the Qt::Test module
 # (e.g. qmltestrunner).
 config BR2_PACKAGE_HOST_QT6BASE_TEST
@@ -17,3 +24,7 @@ config BR2_PACKAGE_HOST_QT6BASE_TEST
 # (e.g. qhelpgenerator).
 config BR2_PACKAGE_HOST_QT6BASE_SQL
 	bool
+
+# The Qt Widgets module is required by the Qt Print Support module
+config BR2_PACKAGE_HOST_QT6BASE_WIDGETS
+	bool
package/qt6/qt6base/qt6base.mk +14 -2
index 4c0392f92d..271f464115 100644
@@ -113,10 +113,8 @@ HOST_QT6BASE_CONF_OPTS += \
 	-DFEATURE_png=OFF \
 	-DFEATURE_gif=OFF \
 	-DFEATURE_jpeg=OFF \
-	-DFEATURE_printsupport=OFF \
 	-DFEATURE_kms=OFF \
 	-DFEATURE_fontconfig=OFF \
-	-DFEATURE_widgets=OFF \
 	-DFEATURE_libinput=OFF \
 	-DFEATURE_tslib=OFF \
 	-DFEATURE_eglfs=OFF
@@ -131,6 +129,13 @@ else
 HOST_QT6BASE_CONF_OPTS += -DFEATURE_network=OFF
 endif
 
+# The Qt Print Support module is required for building Qt Tools Linguist Tools
+ifeq ($(BR2_PACKAGE_HOST_QT6BASE_PRINTSUPPORT),y)
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_printsupport=ON
+else
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_printsupport=OFF
+endif
+
 # We need host qt6base with Sql support for host-qt6tools to generate the
 # qhelpgenerator host tool. qt6tools will fail to build if qhelpgenerator is not
 # available.
@@ -150,6 +155,13 @@ else
 HOST_QT6BASE_CONF_OPTS += -DFEATURE_testlib=OFF
 endif
 
+# The Qt Widgets module is required by the Qt Print Support module
+ifeq ($(BR2_PACKAGE_HOST_QT6BASE_WIDGETS),y)
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_widgets=ON
+else
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_widgets=OFF
+endif
+
 # Conditional blocks below are ordered by alphabetic ordering of the
 # BR2_PACKAGE_* option.
 
Signature · 6 lines
2.46.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/qt6/qt6base: allow selecting the host Qt Print Support module

Hello,

Quoted 9 lines · On Wed, 4 Sep 2024 14:20:38 +0200 Roy Kollen Svendsen…

According to configure.cmake printsupport requires widgets:

qt_feature("printsupport" PRIVATE
LABEL "Qt PrintSupport"
CONDITION QT_FEATURE_widgets
SECTION "Module"
PURPOSE "Provides the Qt PrintSupport module."
)

Quoted 3 lines

So we let print support automatically select widgets support.

This should be PATCH 1/2 in the series, because your patch adding BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS uses this new BR2_PACKAGE_HOST_QT6BASE_PRINTSUPPORT option.

Quoted 10 lines
---
 package/qt6/qt6base/Config.in.host | 11 +++++++++++
 package/qt6/qt6base/qt6base.mk     | 16 ++++++++++++++--
 2 files changed, 25 insertions(+), 2 deletions(-)
package/qt6/qt6base/Config.in.host +0 -0
index 46fb668817..8f0bc1f070 100644

package/qt6/qt6base/Config.in.host config BR2_PACKAGE_HOST_QT6BASE_GUI · line 13

Quoted 6 lines
package/qt6/qt6base/Config.in.host +3 -0
@@ -8,6 +8,13 @@ config BR2_PACKAGE_HOST_QT6BASE_GUI
 config BR2_PACKAGE_HOST_QT6BASE_NETWORK
 	bool
 
+# Select this if you need host qt6 tools that require the Qt Print Support
+# module
+# (e.g. Qt Tools Linguist Tools).

I don't think that this really makes sense. We don't really care about how is using this (in the future, it may be other things). We care about what the option does... but what it does is actually pretty obvious from the option name. I think the only comment is to clarify that yes, widget support is needed for the print support, which isn't really obvious.

package/qt6/qt6base/Config.in.host config BR2_PACKAGE_HOST_QT6BASE_TEST · line 28

Quoted 13 lines
package/qt6/qt6base/Config.in.host +6 -0
+config BR2_PACKAGE_HOST_QT6BASE_PRINTSUPPORT
+	bool
+	select BR2_PACKAGE_HOST_QT6BASE_WIDGETS
+
 # Select this if you need host qt6 tools that require the Qt::Test module
 # (e.g. qmltestrunner).
 config BR2_PACKAGE_HOST_QT6BASE_TEST
@@ -17,3 +24,7 @@ config BR2_PACKAGE_HOST_QT6BASE_TEST
 # (e.g. qhelpgenerator).
 config BR2_PACKAGE_HOST_QT6BASE_SQL
 	bool
+
+# The Qt Widgets module is required by the Qt Print Support module

And this comment would become useless.

package/qt6/qt6base/Config.in.host config BR2_PACKAGE_HOST_QT6BASE_TEST · line 30

Quoted 2 lines
package/qt6/qt6base/Config.in.host +2 -0
+config BR2_PACKAGE_HOST_QT6BASE_WIDGETS
+	bool

Isn't widget support dependent on GUI support?

Quoted 16 lines
package/qt6/qt6base/qt6base.mk +0 -2
index 4c0392f92d..271f464115 100644
@@ -113,10 +113,8 @@ HOST_QT6BASE_CONF_OPTS += \
 	-DFEATURE_png=OFF \
 	-DFEATURE_gif=OFF \
 	-DFEATURE_jpeg=OFF \
-	-DFEATURE_printsupport=OFF \
 	-DFEATURE_kms=OFF \
 	-DFEATURE_fontconfig=OFF \
-	-DFEATURE_widgets=OFF \
 	-DFEATURE_libinput=OFF \
 	-DFEATURE_tslib=OFF \
 	-DFEATURE_eglfs=OFF

package/qt6/qt6base/qt6base.mk else · line 132

Quoted 4 lines
package/qt6/qt6base/qt6base.mk +1 -0
@@ -131,6 +129,13 @@ else
 HOST_QT6BASE_CONF_OPTS += -DFEATURE_network=OFF
 endif
 
+# The Qt Print Support module is required for building Qt Tools Linguist Tools

Not needed, it could be other things.

Quoted 10 lines
package/qt6/qt6base/qt6base.mk +6 -0
+ifeq ($(BR2_PACKAGE_HOST_QT6BASE_PRINTSUPPORT),y)
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_printsupport=ON
+else
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_printsupport=OFF
+endif
+
 # We need host qt6base with Sql support for host-qt6tools to generate the
 # qhelpgenerator host tool. qt6tools will fail to build if qhelpgenerator is not
 # available.

package/qt6/qt6base/qt6base.mk else · line 158

Quoted 4 lines
package/qt6/qt6base/qt6base.mk +1 -0
@@ -150,6 +155,13 @@ else
 HOST_QT6BASE_CONF_OPTS += -DFEATURE_testlib=OFF
 endif
 
+# The Qt Widgets module is required by the Qt Print Support module

Also not very relevant comment IMO.

package/qt6/qt6base/qt6base.mk else · line 163

Quoted 5 lines
package/qt6/qt6base/qt6base.mk +5 -0
+ifeq ($(BR2_PACKAGE_HOST_QT6BASE_WIDGETS),y)
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_widgets=ON
+else
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_widgets=OFF
+endif

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Re: [Buildroot] [PATCH 2/2] package/qt6/qt6base: allow selecting the host Qt Print Support module

Hi Thomas,

Here is v2 of the patchset:

https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Roy

ons. 4. sep. 2024 kl. 14:33 skrev Thomas Petazzoni <[email protected]>:

Quoted 116 lines

Hello,

Quoted 9 lines · On Wed, 4 Sep 2024 14:20:38 +0200 Roy Kollen Svendsen…

According to configure.cmake printsupport requires widgets:

qt_feature("printsupport" PRIVATE
LABEL "Qt PrintSupport"
CONDITION QT_FEATURE_widgets
SECTION "Module"
PURPOSE "Provides the Qt PrintSupport module."
)

Quoted 3 lines

So we let print support automatically select widgets support.

This should be PATCH 1/2 in the series, because your patch adding BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS uses this new BR2_PACKAGE_HOST_QT6BASE_PRINTSUPPORT option.

Quoted 10 lines
---
 package/qt6/qt6base/Config.in.host | 11 +++++++++++
 package/qt6/qt6base/qt6base.mk     | 16 ++++++++++++++--
 2 files changed, 25 insertions(+), 2 deletions(-)
package/qt6/qt6base/Config.in.host +0 -0
index 46fb668817..8f0bc1f070 100644

package/qt6/qt6base/Config.in.host config BR2_PACKAGE_HOST_QT6BASE_GUI · line 13

Quoted 6 lines
package/qt6/qt6base/Config.in.host +3 -0
@@ -8,6 +8,13 @@ config BR2_PACKAGE_HOST_QT6BASE_GUI
 config BR2_PACKAGE_HOST_QT6BASE_NETWORK
      bool
 
+# Select this if you need host qt6 tools that require the Qt Print Support
+# module
+# (e.g. Qt Tools Linguist Tools).

I don't think that this really makes sense. We don't really care about how is using this (in the future, it may be other things). We care about what the option does... but what it does is actually pretty obvious from the option name. I think the only comment is to clarify that yes, widget support is needed for the print support, which isn't really obvious.

package/qt6/qt6base/Config.in.host config BR2_PACKAGE_HOST_QT6BASE_TEST · line 28

Quoted 13 lines
package/qt6/qt6base/Config.in.host +6 -0
+config BR2_PACKAGE_HOST_QT6BASE_PRINTSUPPORT
+     bool
+     select BR2_PACKAGE_HOST_QT6BASE_WIDGETS
+
 # Select this if you need host qt6 tools that require the Qt::Test module
 # (e.g. qmltestrunner).
 config BR2_PACKAGE_HOST_QT6BASE_TEST
@@ -17,3 +24,7 @@ config BR2_PACKAGE_HOST_QT6BASE_TEST
 # (e.g. qhelpgenerator).
 config BR2_PACKAGE_HOST_QT6BASE_SQL
      bool
+
+# The Qt Widgets module is required by the Qt Print Support module

And this comment would become useless.

package/qt6/qt6base/Config.in.host config BR2_PACKAGE_HOST_QT6BASE_TEST · line 30

Quoted 2 lines
package/qt6/qt6base/Config.in.host +2 -0
+config BR2_PACKAGE_HOST_QT6BASE_WIDGETS
+     bool

Isn't widget support dependent on GUI support?

Quoted 16 lines
package/qt6/qt6base/qt6base.mk +0 -2
index 4c0392f92d..271f464115 100644
@@ -113,10 +113,8 @@ HOST_QT6BASE_CONF_OPTS += \
      -DFEATURE_png=OFF \
      -DFEATURE_gif=OFF \
      -DFEATURE_jpeg=OFF \
-     -DFEATURE_printsupport=OFF \
      -DFEATURE_kms=OFF \
      -DFEATURE_fontconfig=OFF \
-     -DFEATURE_widgets=OFF \
      -DFEATURE_libinput=OFF \
      -DFEATURE_tslib=OFF \
      -DFEATURE_eglfs=OFF

package/qt6/qt6base/qt6base.mk else · line 132

Quoted 4 lines
package/qt6/qt6base/qt6base.mk +1 -0
@@ -131,6 +129,13 @@ else
 HOST_QT6BASE_CONF_OPTS += -DFEATURE_network=OFF
 endif
 
+# The Qt Print Support module is required for building Qt Tools Linguist Tools

Not needed, it could be other things.

Quoted 10 lines
package/qt6/qt6base/qt6base.mk +6 -0
+ifeq ($(BR2_PACKAGE_HOST_QT6BASE_PRINTSUPPORT),y)
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_printsupport=ON
+else
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_printsupport=OFF
+endif
+
 # We need host qt6base with Sql support for host-qt6tools to generate the
 # qhelpgenerator host tool. qt6tools will fail to build if qhelpgenerator is not
 # available.

package/qt6/qt6base/qt6base.mk else · line 158

Quoted 4 lines
package/qt6/qt6base/qt6base.mk +1 -0
@@ -150,6 +155,13 @@ else
 HOST_QT6BASE_CONF_OPTS += -DFEATURE_testlib=OFF
 endif
 
+# The Qt Widgets module is required by the Qt Print Support module

Also not very relevant comment IMO.

package/qt6/qt6base/qt6base.mk else · line 163

Quoted 5 lines
package/qt6/qt6base/qt6base.mk +5 -0
+ifeq ($(BR2_PACKAGE_HOST_QT6BASE_WIDGETS),y)
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_widgets=ON
+else
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_widgets=OFF
+endif

Thanks!

Quoted 5 lines

Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
In reply to Roy Kollen Svendsen

Hello,

Quoted 40 lines · On Wed, 4 Sep 2024 14:20:37 +0200 Roy Kollen Svendsen…

According to src/linguist/CMakeLists.txt we need to enable the linguist feature:

...
if(NOT QT_FEATURE_linguist)
return()
endif()
add_subdirectory(lconvert)
add_subdirectory(lprodump)
add_subdirectory(lrelease)
add_subdirectory(lrelease-pro)
add_subdirectory(lupdate)
add_subdirectory(lupdate-pro)
if(QT_FEATURE_process AND QT_FEATURE_pushbutton AND QT_FEATURE_toolbutton AND TARGET Qt::Widgets AND NOT no-png)
add_subdirectory(linguist)
endif()
...

And according to configure.cmake we need to select print support:
...
qt_feature("linguist" PRIVATE
LABEL "Qt Linguist"
PURPOSE "Qt Linguist can be used by translator to translate text in Qt applications." CONDITION TARGET Qt::PrintSupport
)
...

---
 package/qt6/qt6tools/Config.in   | 11 +++++++++++
 package/qt6/qt6tools/qt6tools.mk | 10 ++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
package/qt6/qt6tools/Config.in +0 -0
index 5f52c5644f..eea461a2a9 100644
@@ -15,3 +15,14 @@ config BR2_PACKAGE_QT6TOOLS
 	  and design of applications.
 

package/qt6/qt6tools/Config.in config BR2_PACKAGE_QT6TOOLS · line 26

Quoted 10 lines
package/qt6/qt6tools/Config.in +9 -0
 	  https://github.com/qt/qttools
+
+if BR2_PACKAGE_QT6TOOLS
+
+config BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS
+	bool "linguist tools (host)"
+	select BR2_PACKAGE_HOST_QT6BASE_PRINTSUPPORT
+	help
+	  Translate Qt C++ and Qt Quick applications into local
+	  languages.

This should go in a package/qt6/qt6tools/Config.in.host, not in Config.in as Config.in is for options that affect the target build.

Quoted 7 lines
package/qt6/qt6tools/Config.in +2 -0
+
+endif
package/qt6/qt6tools/qt6tools.mk +0 -0
index 09c986cfc6..897cf43054 100644

package/qt6/qt6tools/qt6tools.mk QT6TOOLS_DEPENDENCIES = \ · line 46

Quoted 10 lines
package/qt6/qt6tools/qt6tools.mk +7 -0
@@ -37,11 +37,17 @@ QT6TOOLS_DEPENDENCIES = \
 	qt6base \
 	host-qt6tools
 
+HOST_QT6TOOLS_DEPENDENCIES = host-qt6base
+
+ifeq ($(BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS),y)
+HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=ON
+else
+HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=OFF
+endif

Please group these host package things...

package/qt6/qt6tools/qt6tools.mk QT6TOOLS_DEPENDENCIES = \ · line 44

Quoted 6 lines
package/qt6/qt6tools/qt6tools.mk +1 -1
+
 ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
 QT6TOOLS_DEPENDENCIES += qt6declarative
 endif
 
-HOST_QT6TOOLS_DEPENDENCIES = host-qt6base

... here. Rather than inter-twining target package and host package details.

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

Hi Thomas,

Here is v2:

PATCH 2/3:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

PATCH 3/3:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Roy

ons. 4. sep. 2024 kl. 14:30 skrev Thomas Petazzoni <[email protected]>:

Quoted 93 lines

Hello,

Quoted 40 lines · On Wed, 4 Sep 2024 14:20:37 +0200 Roy Kollen Svendsen…

According to src/linguist/CMakeLists.txt we need to enable the linguist feature:

...
if(NOT QT_FEATURE_linguist)
return()
endif()
add_subdirectory(lconvert)
add_subdirectory(lprodump)
add_subdirectory(lrelease)
add_subdirectory(lrelease-pro)
add_subdirectory(lupdate)
add_subdirectory(lupdate-pro)
if(QT_FEATURE_process AND QT_FEATURE_pushbutton AND QT_FEATURE_toolbutton AND TARGET Qt::Widgets AND NOT no-png)
add_subdirectory(linguist)
endif()
...

And according to configure.cmake we need to select print support:
...
qt_feature("linguist" PRIVATE
LABEL "Qt Linguist"
PURPOSE "Qt Linguist can be used by translator to translate text in Qt applications." CONDITION TARGET Qt::PrintSupport
)
...

---
 package/qt6/qt6tools/Config.in   | 11 +++++++++++
 package/qt6/qt6tools/qt6tools.mk | 10 ++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
package/qt6/qt6tools/Config.in +0 -0
index 5f52c5644f..eea461a2a9 100644
@@ -15,3 +15,14 @@ config BR2_PACKAGE_QT6TOOLS
        and design of applications.
 

package/qt6/qt6tools/Config.in config BR2_PACKAGE_QT6TOOLS · line 26

Quoted 10 lines
package/qt6/qt6tools/Config.in +9 -0
        https://github.com/qt/qttools
+
+if BR2_PACKAGE_QT6TOOLS
+
+config BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS
+     bool "linguist tools (host)"
+     select BR2_PACKAGE_HOST_QT6BASE_PRINTSUPPORT
+     help
+       Translate Qt C++ and Qt Quick applications into local
+       languages.

This should go in a package/qt6/qt6tools/Config.in.host, not in Config.in as Config.in is for options that affect the target build.

Quoted 7 lines
package/qt6/qt6tools/Config.in +2 -0
+
+endif
package/qt6/qt6tools/qt6tools.mk +0 -0
index 09c986cfc6..897cf43054 100644

package/qt6/qt6tools/qt6tools.mk QT6TOOLS_DEPENDENCIES = \ · line 46

Quoted 10 lines
package/qt6/qt6tools/qt6tools.mk +7 -0
@@ -37,11 +37,17 @@ QT6TOOLS_DEPENDENCIES = \
      qt6base \
      host-qt6tools
 
+HOST_QT6TOOLS_DEPENDENCIES = host-qt6base
+
+ifeq ($(BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS),y)
+HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=ON
+else
+HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=OFF
+endif

Please group these host package things...

package/qt6/qt6tools/qt6tools.mk QT6TOOLS_DEPENDENCIES = \ · line 44

Quoted 6 lines
package/qt6/qt6tools/qt6tools.mk +1 -1
+
 ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
 QT6TOOLS_DEPENDENCIES += qt6declarative
 endif
 
-HOST_QT6TOOLS_DEPENDENCIES = host-qt6base

... here. Rather than inter-twining target package and host package details.

Quoted 7 lines

Thanks!

Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot