XPost: linux.debian.maint.kde
This is a multi-part message in MIME format.
--nextPart1731347.aTnuqxFMU4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
Each component of an upstream program has to design itself to use either Qt5 or Qt6.
When you are packaging it in Debian, you have to use whatever the upstream code is
designed for. Many programs are in the process of switching their code base from Qt5 to
Qt6, which appears to be the case here.
README.md indicates that the upstream code requires Qt6 >= 6.6.
You need to make sure you have all of the components listed in the main CMakeLists.txt
available in your Build-Depends.
https://salsa.debian.org/go-team/packages/riseup-vpn/-/blob/debian/sid/CMakeLists.txt?
ref_type=heads[1]
target_link_libraries(bitmask PRIVATE
# Remove: L../../lib
Qt::Core
Qt::Gui
Qt::Qml
Qt::Quick
Qt::QuickControls2
Qt::Svg
Qt::Widgets
${LIB_TO_INCLUDE}
pthread
)
Most of these look like they are included in qt6-base-dev.
https://packages.debian.org/sid/amd64/qt6-base-dev/filelist[2]
A bunch of others are in qt6-declarative-dev.
_
https://packages.debian.org/sid/amd64/qt6-base-dev/filelist_
However, both of these packages are currently version 6.4 in unstable. Version 6.6 is being
worked on as we speak, but if upstream really does have a hard dependency on 6.6 it isn’t
surprising that it doesn’t currently build.
Soren
On Saturday, May 4, 2024 5:26:06 AM MST Nilesh Patra wrote:
Hi all,
I am trying to update riseup-vpn to its latest version. I am seeing some confused mix of qt5 and qt6 - not really sure how qt updates for applications work. I tried to replace qt5 packages (builddeps) with its qt6 equivalents but
I
end up with:
| ==============BUILD GUI===============
| TARGET: bitmask-vpn
| VENDOR_PATH: providers
| [build.sh] VENDOR_PATH = providers
| [+] Building BitmaskVPN
| lrelease: could not find a Qt installation of ''
| make[2]: *** [Makefile:151: build_gui] Error 1
| make[2]: Leaving directory
| '/<<PKGBUILDDIR>>/_build/src/0xacab.org/leap/bitmask-vpn'
I was getting a different error with qt5:
--nextPart1731347.aTnuqxFMU4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="UTF-8"
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Each component of an upstream program has to design itself to use either Qt5 or Qt6. When you are packaging it in Debian, you have to use whatever the upstream code is
designed for. Many programs are in the process of switching their code base from Qt5 to Qt6, which appears to be the case here.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">README.md indicates that the upstream code requires Qt6 >= 6.6.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">You need to make sure you have all of the components listed in the main CMakeLists.txt available in your Build-Depends.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="
https://salsa.debian.org/go-team/packages/riseup-vpn/-/blob/debian/sid/CMakeLists.txt?ref_type=heads">https://salsa.debian.org/go-team/packages/riseup-vpn/-/blob/debian/
sid/CMakeLists.txt?ref_type=heads</a></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">target_link_libraries(bitmask PRIVATE</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> # Remove: L../../lib</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> Qt::Core</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> Qt::Gui</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> Qt::Qml</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> Qt::Quick</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> Qt::QuickControls2</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> Qt::Svg</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> Qt::Widgets</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> ${LIB_TO_INCLUDE}</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> pthread</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">)</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Most of these look like they are included in qt6-base-dev.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="
https://packages.debian.org/sid/amd64/qt6-base-dev/filelist">https://packages.debian.org/sid/amd64/qt6-base-dev/filelist</a></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">A bunch of others are in qt6-declarative-dev.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><u><span style="color:#2980b9;">
https://packages.debian.org/sid/amd64/qt6-base-dev/filelist</span></u></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">However, both of these packages are currently version 6.4 in unstable. Version 6.6 is being worked on as we speak, but if upstream really does have a hard dependency on 6.6
it isn’t surprising that it doesn’t currently build.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Soren</p>
<br /><br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On Saturday, May 4, 2024 5:26:06 AM MST Nilesh Patra wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Hi all,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I am trying to update riseup-vpn to its latest version. I am seeing some</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> confused mix of qt5 and qt6 - not really sure how qt updates for applications</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> work. I tried to replace qt5 packages (builddeps) with its qt6 equivalents but</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> end up with:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | ==============BUILD GUI===============</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | TARGET: bitmask-vpn</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | VENDOR_PATH: providers</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | [build.sh] VENDOR_PATH = providers</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | [+] Building BitmaskVPN</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | lrelease: could not find a Qt installation of ''</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | make[2]: *** [Makefile:151: build_gui] Error 1</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | make[2]: Leaving directory</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | '/<<PKGBUILDDIR>>/_build/src/0xacab.org/leap/bitmask-vpn'</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I was getting a different error with qt5:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | /usr/lib/qt5/bin/qmlcachegen</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | --resource=/tmp/riseup-vpn_/_build/src/0xacab.org/leap/bitmask-vpn/gui/gui.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | qrc -o release/gui_main_qml.cpp ../../gui/main.qml Error compiling qml file:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | ../../gui/main.qml:0: error: Library import requires a version</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | ../../gui/main.qml:0: error: Library import requires a version</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | ../../gui/main.qml:0: error: Library import requires a version</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | ../../gui/main.qml:0: error: Library import requires a version</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> | ../../gui/main.qml:0: error: Library import requires a version</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> But given that the readme says to use qt6, I should not be using qt5 here. The</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> versions from the qml file have been omitted in this release.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I am also puzzled with different paths for the same binaries across qt</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> versions for instance qmlcachegen is:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> qt6-declarative-dev-tools: /usr/lib/qt6/libexec/qmlcachegen</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> qtdeclarative5-dev-tools: /usr/lib/qt5/bin/qmlcachegen</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Why is that?</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> In any case, I am not sure how to proceed from here (the error with lrelease).</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Can anyone help out, please? My changes are available in salsa at:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
https://salsa.debian.org/go-team/packages/riseup-vpn</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I'd appreciate any pointers.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Best,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Nilesh</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Soren Stoutner</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">
[email protected]</p>
</body>
</html>
--nextPart1731347.aTnuqxFMU4--
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAmY2Sr0ACgkQwufLJ66w tgOfYBAAppeFCx02KdZBHvPaRGUCx7U122lIVgOfENsNYlWDtP2BZ2Xk9QCY2BB8 LxGfn6saNhmmoByTVhDyFX/XB4ouIydwJIz2aikhOLCz8Ap931H29YOP/I8jJZY2 XzTboK/EUAsNmZJAS+Um6ObRJIOlo58k3QdIUotzsVfuAi6Wi+uD8c3zHO3bxq3M XOXv5XKnnw9/rb6kNnIgY3573IED3NTzPUuNfbHb0WNRxH4U+iNftbbHmRkwWWFO MiIVkpHydIGQbD3WiIWntX3Sxum+bZxsMjXi6CiUi/H4oXfPVYtpmDUiWGsQ9O7p OyjPID3t/o9v3kz+E736rJTTsFl0zwsq7nILw4/NMLHrP3NNeF11SY8+myw6Jx6u ORRG/H385GyH5vRtU629TIxdVFmO2B+EQNU4YixFPtxN0Zm3ISqDlVQQWhR609AH OoOXiW2KTNZjImwVDwpp2I/1MRY7IdER52hB9eO+AHWa3EB8je2OZJsK0O0cpxJE rQbe/o6ImTmcsvQJQTVFva9iyX+fR30QQM+Wt69lgE7Za6aINzNblVsfFJIoYE9/ lfjGul56VqzFQ2fVppdCsL4zpb7zDEwjCrZabzoavGZpK7/5zgQSLpcWnNEo69xV Vwip+raHVXTJ5CApf2H1HbWO/xLxJEb7mVjnq8Ovsd9n4obnKEo=
=sNuZ
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)