Skip to content

Commit

Permalink
patches: qttools 6.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
userdocs committed Jun 18, 2024
1 parent dc49f38 commit 328c9d7
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
58 changes: 58 additions & 0 deletions patches/qttools/6.7.2/patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
From 8bb2a0c02b305f8ae8611e501fe7dd3d2b4468a6 Mon Sep 17 00:00:00 2001
From: Joerg Bornemann <[email protected]>
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
Change-Id: I59ebb82fd5823165b307ffbc967d7fd89a071ede
Reviewed-by: Alexey Edelev <[email protected]>
Reviewed-by: Alexandru Croitor <[email protected]>
(cherry picked from commit 4be1823e4d459c89717e791ef27fd463ad04cb2b)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit aa9f8db49db2e7734c187445b8c3c56768f6e546)
---
configure.cmake | 1 -
src/linguist/CMakeLists.txt | 3 ++-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.cmake b/configure.cmake
index 813789e9f7..7d9ab8724f 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 ab2169dec5..20ec247337 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()

--
2.16.3

1 change: 1 addition & 0 deletions patches/qttools/6.7.2/url
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://codereview.qt-project.org/gitweb?p=qt/qttools.git;a=patch;h=8bb2a0c02b305f8ae8611e501fe7dd3d2b4468a6

0 comments on commit 328c9d7

Please sign in to comment.