Bug 32787 - qttoolsN packages need Provide qtN-linguist
Summary: qttoolsN packages need Provide qtN-linguist
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-28 10:04 CET by Denis Bitouzé
Modified: 2024-02-09 22:17 CET (History)
2 users (show)

See Also:
Source RPM: qttools5, qttools6
CVE:
Status comment:


Attachments

Description Denis Bitouzé 2024-01-28 10:04:54 CET
Description of problem:

Mageia 9 provides qt4-linguist but not qt6-linguist. It would be nice for it to provide the latter.
sturmvogel 2024-01-28 14:12:23 CET

Version: 9 => Cauldron

Comment 1 katnatek 2024-01-28 19:55:54 CET
Is provided as qttools6
Comment 2 Denis Bitouzé 2024-01-28 21:18:28 CET
@ katnatek Indeed but that was not easy to guess :) Thanks anyway!

Nevertheless, I asked for this because I miss the qt6_add_lupdate command:

CMake Error at CMakeLists.txt:114 (qt6_add_lupdate):
  Unknown CMake command "qt6_add_lupdate".

and, from https://doc.qt.io/qt-6/qtlinguist-cmake-qt-add-lupdate.html, I guessed it would be provided by qt6-linguist. But AFAICS, installing qt6-linguist by installing qttools6 is not enough (still the same error). Should I open a new bug report?
Comment 3 Lewis Smith 2024-01-28 21:25:39 CET
Well discovered katnatek - it was not easy. I do not see how users would discover it. Very obscure:
 Name        : qttools6
 Summary     : Qt6 GUI toolkit
 Description : Qt6 GUI tools

Rpmdrake shows for 'linguist' qt4-linguist as a package (& nothing else).
 Name        : qt4-linguist
 Summary     : Qt4 linguist translation utility
 Description :
 Qt4 Linguist provides easy translation of Qt GUIs to different languages.

It is not rational to not show the qt6 equivalent.
Can we change something?
CC'ing papoteur for an opinion; he knows something of Qt.

CC: (none) => lewyssmith

Comment 4 Lewis Smith 2024-01-28 21:41:42 CET
(In reply to Denis Bitouzé from comment #2)
> Nevertheless, I asked for this because I miss the qt6_add_lupdate command:
I cannot find this command buried anywhere in our repositories:
 $ urpmf qt6_add_lupdate
 $
urpmf is good at finding things, so maybe we simply do not have it. From the site URL you give:
"qt_add_lupdate
Add targets to generate or update Qt Linguist .ts files.
The command is defined in the LinguistTools component of the Qt6 package."
So searching for that:
 $ urpmf Qt6LinguistTools
returns 11 results, all in pkg 'lib64qt6help-devel', all but 1 with paths like:
/usr/lib64/cmake/Qt6LinguistTools/Qt6LinguistToolsxxx.cmake
The first, different, may accord with Denis' interest:
/usr/lib64/cmake/Qt6LinguistTools/GenerateLUpdateProject.cmake

Do not raise a new bug yet, maybe this one can be re-phrased.
Comment 5 katnatek 2024-01-28 21:48:13 CET
(In reply to Denis Bitouzé from comment #2)
> @ katnatek Indeed but that was not easy to guess :) Thanks anyway!
> 
I made time ago a bug report for qt5-linguist and I was pointed to qt5tools ;)

> Nevertheless, I asked for this because I miss the qt6_add_lupdate command:
> 
> CMake Error at CMakeLists.txt:114 (qt6_add_lupdate):
>   Unknown CMake command "qt6_add_lupdate".
> 
> and, from https://doc.qt.io/qt-6/qtlinguist-cmake-qt-add-lupdate.html, I
> guessed it would be provided by qt6-linguist. But AFAICS, installing
> qt6-linguist by installing qttools6 is not enough (still the same error).
> Should I open a new bug report?

I find references to that command here https://doc.qt.io/qt-6/qtlinguist-cmake-qt-add-lupdate.html, but not find a distro with that file

Maybe you need lib64qt6help-devel for 64b or libqt6help-devel for 32bit
Comment 6 Denis Bitouzé 2024-01-28 22:59:17 CET
@Lewis Smith Installing lib64qt6help-devel did the trick, thanks! :)
Comment 7 David GEIGER 2024-01-28 23:08:47 CET
I can add in qttools5 pkg: "Provides: qt5-linguist" and same for qttools6: "Provides: qt6-linguist" in a next rebuild.

CC: (none) => geiger.david68210

katnatek 2024-01-29 00:01:40 CET

Summary: qt6-linguist is missing in Mageia 9 => qttoolsN packages need Provide qtN-linguist
Source RPM: (none) => qttools5, qttools6

Comment 8 katnatek 2024-01-29 00:02:34 CET
(In reply to David GEIGER from comment #7)
> I can add in qttools5 pkg: "Provides: qt5-linguist" and same for qttools6:
> "Provides: qt6-linguist" in a next rebuild.

Thank you, David, I change the title of the report, I hope is a good one
Comment 9 Lewis Smith 2024-01-29 20:12:50 CET
Thank you all who contributed.

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 10 katnatek 2024-01-30 00:14:31 CET
(In reply to Lewis Smith from comment #9)
> Thank you all who contributed.

It is not necessary to wait until David notify that the change is done to close this bug?
Comment 11 David GEIGER 2024-02-09 17:57:06 CET
Done for both qttools5 and qttools6 on Cauldron and packages submitted!
Comment 12 katnatek 2024-02-09 20:06:20 CET
(In reply to David GEIGER from comment #11)
> Done for both qttools5 and qttools6 on Cauldron and packages submitted!

Will this be done in Mageia 9?
Comment 13 David GEIGER 2024-02-09 22:17:21 CET
Nop! not crucial for mga9.

But I'll commit the change in svn so that if there were to be an update in future the fix will be included.

Note You need to log in before you can comment on or make changes to this bug.