* [Buildroot] [PATCH 1/2] package/qt6/qt6tools: build linuguist tools without printsupport
@ 2024-09-11 13:20 Christian Hitz via buildroot
2024-09-11 13:20 ` [Buildroot] [PATCH 2/2] package/qt6/qt6tools: enable QML support in linguist Christian Hitz via buildroot
2024-09-14 10:44 ` [Buildroot] [PATCH 1/2] package/qt6/qt6tools: build linuguist tools without printsupport Thomas Petazzoni via buildroot
0 siblings, 2 replies; 4+ messages in thread
From: Christian Hitz via buildroot @ 2024-09-11 13:20 UTC (permalink / raw)
To: buildroot
Cc: Christian Hitz, Jesse Van Gavere, Roy Kollen Svendsen,
Thomas Petazzoni
From: Christian Hitz <christian.hitz@bbv.ch>
This fixes a regression in qttools that would not build the qt linuguist
tools (lupdate, lrelease, etc.) when CUPS is not available.
Signed-off-by: Christian Hitz <christian.hitz@bbv.ch>
---
...e-lconvert-lrelease-in-no-gui-builds.patch | 56 +++++++++++++++++++
package/qt6/qt6tools/qt6tools.mk | 5 ++
2 files changed, 61 insertions(+)
create mode 100644 package/qt6/qt6tools/0001-CMake-Re-enable-lupdate-lconvert-lrelease-in-no-gui-builds.patch
diff --git a/package/qt6/qt6tools/0001-CMake-Re-enable-lupdate-lconvert-lrelease-in-no-gui-builds.patch b/package/qt6/qt6tools/0001-CMake-Re-enable-lupdate-lconvert-lrelease-in-no-gui-builds.patch
new file mode 100644
index 0000000000..fdce97cf48
--- /dev/null
+++ b/package/qt6/qt6tools/0001-CMake-Re-enable-lupdate-lconvert-lrelease-in-no-gui-builds.patch
@@ -0,0 +1,56 @@
+From 4be1823e4d459c89717e791ef27fd463ad04cb2b Mon Sep 17 00:00:00 2001
+From: Joerg Bornemann <joerg.bornemann@qt.io>
+Date: Tue, 11 Jun 2024 10:47:18 +0200
+Subject: [PATCH] CMake: Re-enable lupdate/lconvert/lrelease in no-gui builds
+
+This reverts 8dba0e48a0f7d3487b318a74f80f2d8e59c320f9 which disabled the
+'linguist' feature if the 'printsupport' feature wasn't available.
+However, the 'linguist' feature controls not only the Qt Linguist
+application but also the command line tools lupdate, lconvert, and
+lrelease. In no-gui builds, which also disable printsupport, the command
+line tools were unexpectedly missing.
+
+Fix the issue by extending the feature condition in
+src/linguist/CMakeLists.txt. As drive-by, fix the FEATURE_png condition
+that was still in QMake form from the initial conversion.
+
+Fixes: QTBUG-126189
+Task-number: QTBUG-125066
+Pick-to: 6.7 6.8
+Change-Id: I59ebb82fd5823165b307ffbc967d7fd89a071ede
+Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
+Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
+
+Upstream: https://github.com/qt/qttools/commit/4be1823e4d459c89717e791ef27fd463ad04cb2b
+Signed-off-by: Christian Hitz <christian.hitz@bbv.ch>
+---
+ configure.cmake | 1 -
+ src/linguist/CMakeLists.txt | 3 ++-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.cmake b/configure.cmake
+index 51a5196da6..e0facf0b90 100644
+--- a/configure.cmake
++++ b/configure.cmake
+@@ -74,7 +74,6 @@ qt_feature("kmap2qmap" PRIVATE
+ 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
+ )
+ qt_feature("pixeltool" PRIVATE
+ LABEL "pixeltool"
+diff --git a/src/linguist/CMakeLists.txt b/src/linguist/CMakeLists.txt
+index ef28c0ff3a..ee11963039 100644
+--- a/src/linguist/CMakeLists.txt
++++ b/src/linguist/CMakeLists.txt
+@@ -14,7 +14,8 @@ 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)
++if(QT_FEATURE_process AND QT_FEATURE_pushbutton AND QT_FEATURE_toolbutton
++ AND QT_FEATURE_png AND QT_FEATURE_printsupport AND TARGET Qt::Widgets)
+ add_subdirectory(linguist)
+ endif()
+
diff --git a/package/qt6/qt6tools/qt6tools.mk b/package/qt6/qt6tools/qt6tools.mk
index 09c986cfc6..ccb246f6a6 100644
--- a/package/qt6/qt6tools/qt6tools.mk
+++ b/package/qt6/qt6tools/qt6tools.mk
@@ -33,6 +33,11 @@ QT6TOOLS_CONF_OPTS = \
-DQT_BUILD_EXAMPLES=OFF \
-DQT_BUILD_TESTS=OFF
+HOST_QT6TOOLS_CONF_OPTS = \
+ -DQT_BUILD_EXAMPLES=OFF \
+ -DQT_BUILD_TESTS=OFF \
+ -DFEATURE_linguist=ON
+
QT6TOOLS_DEPENDENCIES = \
qt6base \
host-qt6tools
--
2.46.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCH 2/2] package/qt6/qt6tools: enable QML support in linguist
2024-09-11 13:20 [Buildroot] [PATCH 1/2] package/qt6/qt6tools: build linuguist tools without printsupport Christian Hitz via buildroot
@ 2024-09-11 13:20 ` Christian Hitz via buildroot
2024-09-14 10:56 ` Thomas Petazzoni via buildroot
2024-09-14 10:44 ` [Buildroot] [PATCH 1/2] package/qt6/qt6tools: build linuguist tools without printsupport Thomas Petazzoni via buildroot
1 sibling, 1 reply; 4+ messages in thread
From: Christian Hitz via buildroot @ 2024-09-11 13:20 UTC (permalink / raw)
To: buildroot
Cc: Christian Hitz, Jesse Van Gavere, Roy Kollen Svendsen,
Thomas Petazzoni
From: Christian Hitz <christian.hitz@bbv.ch>
When BR2_PACKAGE_QT6DECLARATIVE_QUICK is enabled the qt linuguist tool
lupdate should support QML/JS files.
Signed-off-by: Christian Hitz <christian.hitz@bbv.ch>
---
package/qt6/qt6tools/qt6tools.mk | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/qt6/qt6tools/qt6tools.mk b/package/qt6/qt6tools/qt6tools.mk
index ccb246f6a6..a4ae2a1d3f 100644
--- a/package/qt6/qt6tools/qt6tools.mk
+++ b/package/qt6/qt6tools/qt6tools.mk
@@ -42,11 +42,12 @@ QT6TOOLS_DEPENDENCIES = \
qt6base \
host-qt6tools
+HOST_QT6TOOLS_DEPENDENCIES = host-qt6base
+
ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
QT6TOOLS_DEPENDENCIES += qt6declarative
+HOST_QT6TOOLS_DEPENDENCIES += host-qt6declarative
endif
-HOST_QT6TOOLS_DEPENDENCIES = host-qt6base
-
$(eval $(cmake-package))
$(eval $(host-cmake-package))
--
2.46.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 2/2] package/qt6/qt6tools: enable QML support in linguist
2024-09-11 13:20 ` [Buildroot] [PATCH 2/2] package/qt6/qt6tools: enable QML support in linguist Christian Hitz via buildroot
@ 2024-09-14 10:56 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-09-14 10:56 UTC (permalink / raw)
To: Christian Hitz via buildroot
Cc: Christian Hitz, Christian Hitz, Jesse Van Gavere,
Roy Kollen Svendsen
Hello Christian,
On Wed, 11 Sep 2024 15:20:20 +0200
Christian Hitz via buildroot <buildroot@buildroot.org> wrote:
> From: Christian Hitz <christian.hitz@bbv.ch>
>
> When BR2_PACKAGE_QT6DECLARATIVE_QUICK is enabled the qt linuguist tool
> lupdate should support QML/JS files.
>
> Signed-off-by: Christian Hitz <christian.hitz@bbv.ch>
> ---
> package/qt6/qt6tools/qt6tools.mk | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Applied, but after adjusting to:
@@ -49,6 +49,12 @@ HOST_QT6TOOLS_DEPENDENCIES = host-qt6base
ifeq ($(BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS),y)
HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=ON
+# When we have qt6declarative for the target, we need to build the
+# linguist tool with host-qt6declarative support so that it handles
+# QML/JS files
+ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
+HOST_QT6TOOLS_DEPENDENCIES += host-qt6declarative
+endif
else
HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=OFF
endif
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/qt6/qt6tools: build linuguist tools without printsupport
2024-09-11 13:20 [Buildroot] [PATCH 1/2] package/qt6/qt6tools: build linuguist tools without printsupport Christian Hitz via buildroot
2024-09-11 13:20 ` [Buildroot] [PATCH 2/2] package/qt6/qt6tools: enable QML support in linguist Christian Hitz via buildroot
@ 2024-09-14 10:44 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-09-14 10:44 UTC (permalink / raw)
To: Christian Hitz via buildroot
Cc: Christian Hitz, Christian Hitz, Jesse Van Gavere,
Roy Kollen Svendsen
On Wed, 11 Sep 2024 15:20:19 +0200
Christian Hitz via buildroot <buildroot@buildroot.org> wrote:
> From: Christian Hitz <christian.hitz@bbv.ch>
>
> This fixes a regression in qttools that would not build the qt linuguist
> tools (lupdate, lrelease, etc.) when CUPS is not available.
>
> Signed-off-by: Christian Hitz <christian.hitz@bbv.ch>
> ---
> ...e-lconvert-lrelease-in-no-gui-builds.patch | 56 +++++++++++++++++++
> package/qt6/qt6tools/qt6tools.mk | 5 ++
> 2 files changed, 61 insertions(+)
> create mode 100644 package/qt6/qt6tools/0001-CMake-Re-enable-lupdate-lconvert-lrelease-in-no-gui-builds.patch
Applied to master after splitting out into a separate commit the
following:
+HOST_QT6TOOLS_CONF_OPTS = \
+ -DQT_BUILD_EXAMPLES=OFF \
+ -DQT_BUILD_TESTS=OFF \
which wasn't related, and adjusting:
+ -DFEATURE_linguist=ON
to use the newly introduced option instead.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-14 10:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-11 13:20 [Buildroot] [PATCH 1/2] package/qt6/qt6tools: build linuguist tools without printsupport Christian Hitz via buildroot
2024-09-11 13:20 ` [Buildroot] [PATCH 2/2] package/qt6/qt6tools: enable QML support in linguist Christian Hitz via buildroot
2024-09-14 10:56 ` Thomas Petazzoni via buildroot
2024-09-14 10:44 ` [Buildroot] [PATCH 1/2] package/qt6/qt6tools: build linuguist tools without printsupport Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox