• Help required: riseup-vpn

    From Nilesh Patra@21:1/5 to All on Sat May 4 14:30:02 2024
    XPost: linux.debian.maint.kde

    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:

    | /usr/lib/qt5/bin/qmlcachegen --resource=/tmp/riseup-vpn_/_build/src/0xacab.org/leap/bitmask-vpn/gui/gui.qrc -o release/gui_main_qml.cpp ../../gui/main.qml
    | Error compiling qml file: ../../gui/main.qml:0: error: Library import requires a version
    | ../../gui/main.qml:0: error: Library import requires a version
    | ../../gui/main.qml:0: error: Library import requires a version
    | ../../gui/main.qml:0: error: Library import requires a version
    | ../../gui/main.qml:0: error: Library import requires a version

    But given that the readme says to use qt6, I should not be using qt5 here. The versions from the qml file have been omitted in this release.

    I am also puzzled with different paths for the same binaries across qt versions for instance qmlcachegen is:

    qt6-declarative-dev-tools: /usr/lib/qt6/libexec/qmlcachegen qtdeclarative5-dev-tools: /usr/lib/qt5/bin/qmlcachegen

    Why is that?

    In any case, I am not sure how to proceed from here (the error with lrelease). Can anyone help out, please?
    My changes are available in salsa at: https://salsa.debian.org/go-team/packages/riseup-vpn

    I'd appreciate any pointers.

    Best,
    Nilesh

    -----BEGIN PGP SIGNATURE-----

    iHUEABYIAB0WIQSglbZu4JAkvuai8HIqJ5BL1yQ+2gUCZjYpXQAKCRAqJ5BL1yQ+ 2oxkAQD8tjPbEpn1ke01VivKuzHxGetPi5b7xUce6IFfXy78VAD+Pt+31KkNSLqv N7WM3hvI+6EEbQSFUHvELJSVUSni3ws=
    =6bO0
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nilesh Patra@21:1/5 to Jeremy Sowden on Sat May 4 17:10:01 2024
    XPost: linux.debian.maint.kde

    On Sat, May 04, 2024 at 04:01:12PM +0100, Jeremy Sowden wrote:
    I am also puzzled with different paths for the same binaries across qt versions for instance qmlcachegen is:

    qt6-declarative-dev-tools: /usr/lib/qt6/libexec/qmlcachegen qtdeclarative5-dev-tools: /usr/lib/qt5/bin/qmlcachegen

    Why is that?

    Presumably so one can co-install the dev tools for multiple releases
    of QT.

    Why not use /usr/lib/qt6/bin/qmlcachegen and /usr/lib/qt5/bin/qmlcachegen then? The names of binary packages are also inconsistent and I am not sure if there;s a good reason for that?

    In any case, I am not sure how to proceed from here (the error with lrelease). Can anyone help out, please? My changes are available in
    salsa at: https://salsa.debian.org/go-team/packages/riseup-vpn

    I'd appreciate any pointers.

    You can tell the GUI build script to use the qt6 lrelease and qmake
    binaries:

    Yep, I came up with a similar patch eventually :)

    Best,
    Nilesh

    -----BEGIN PGP SIGNATURE-----

    iHUEABYIAB0WIQSglbZu4JAkvuai8HIqJ5BL1yQ+2gUCZjZPkAAKCRAqJ5BL1yQ+ 2qoIAP9Rk8Wgvih9cKr5ZZeXspvOia+dntJkt+dYJZqfQX1SYwEAz8zUos3cj4qX IwyGEiwJMOqNekoVwO3ojRTZNEDOtgM=
    =WOhp
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nilesh Patra@21:1/5 to Nilesh Patra on Sat May 4 17:10:02 2024
    XPost: linux.debian.maint.kde

    On Sat, May 04, 2024 at 05:56:18PM +0530, 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:

    | /usr/lib/qt5/bin/qmlcachegen --resource=/tmp/riseup-vpn_/_build/src/0xacab.org/leap/bitmask-vpn/gui/gui.qrc -o release/gui_main_qml.cpp ../../gui/main.qml
    | Error compiling qml file: ../../gui/main.qml:0: error: Library import requires a version
    | ../../gui/main.qml:0: error: Library import requires a version
    | ../../gui/main.qml:0: error: Library import requires a version
    | ../../gui/main.qml:0: error: Library import requires a version
    | ../../gui/main.qml:0: error: Library import requires a version

    But given that the readme says to use qt6, I should not be using qt5 here. The
    versions from the qml file have been omitted in this release.

    I am also puzzled with different paths for the same binaries across qt versions
    for instance qmlcachegen is:

    qt6-declarative-dev-tools: /usr/lib/qt6/libexec/qmlcachegen qtdeclarative5-dev-tools: /usr/lib/qt5/bin/qmlcachegen

    Why is that?

    In any case, I am not sure how to proceed from here (the error with lrelease). Can anyone help out, please?
    My changes are available in salsa at: https://salsa.debian.org/go-team/packages/riseup-vpn

    I could get it working with:

    cd $(BUILDDIR) && $(MAKE) build VERSION=$(VERSION) LRELEASE=/usr/lib/qt6/bin/lrelease QMAKE=/usr/bin/qmake6 PROVIDER=riseup TARGET=riseup-vpn

    in d/rules. Seems lrelease from qtchooser does not work properly for qt6?

    Best,
    Nilesh

    -----BEGIN PGP SIGNATURE-----

    iHUEABYIAB0WIQSglbZu4JAkvuai8HIqJ5BL1yQ+2gUCZjZOsgAKCRAqJ5BL1yQ+ 2t2yAQCbB4o1VhkNAh7aumFN62rtLw0SMZLdD/ILbHdtqUVpkQD6Aj7Jx+LeXgme VaDW+YMwwgBQeyHt6LnmYAj8xAoaLgM=
    =TSEj
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Soren Stoutner@21:1/5 to All on Sat May 4 07:48:29 2024
    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.&nbsp; When you are packaging it in Debian, you have to use whatever the upstream code is
    designed for.&nbsp; 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 &gt;= 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;">&nbsp;&nbsp;&nbsp; # Remove: L../../lib</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;&nbsp;&nbsp; Qt::Core</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;&nbsp;&nbsp; Qt::Gui</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;&nbsp;&nbsp; Qt::Qml</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;&nbsp;&nbsp; Qt::Quick</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;&nbsp;&nbsp; Qt::QuickControls2</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;&nbsp;&nbsp; Qt::Svg</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;&nbsp;&nbsp; Qt::Widgets</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;&nbsp;&nbsp; ${LIB_TO_INCLUDE}</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;&nbsp;&nbsp; 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.&nbsp; 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;">&gt; Hi all,</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; 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;">&gt; 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;">&gt; 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;">&gt; I</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; end up with:</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; | ==============BUILD GUI===============</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; | TARGET: bitmask-vpn</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; | VENDOR_PATH: providers</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; | [build.sh] VENDOR_PATH = providers</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; | [+] Building BitmaskVPN</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; | lrelease: could not find a Qt installation of ''</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; | make[2]: *** [Makefile:151: build_gui] Error 1</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; | make[2]: Leaving directory</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; | '/&lt;&lt;PKGBUILDDIR&gt;&gt;/_build/src/0xacab.org/leap/bitmask-vpn'</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; I was getting a different error with qt5:</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; | /usr/lib/qt5/bin/qmlcachegen</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; | --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;">&gt; | 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;">&gt; | ../../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;">&gt; | ../../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;">&gt; | ../../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;">&gt; | ../../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;">&gt; | ../../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;">&gt; </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; 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;">&gt; 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;">&gt; </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; 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;">&gt; versions for instance qmlcachegen is:</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; qt6-declarative-dev-tools: /usr/lib/qt6/libexec/qmlcachegen</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; qtdeclarative5-dev-tools: /usr/lib/qt5/bin/qmlcachegen</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; Why is that?</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; 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;">&gt; 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;">&gt; https://salsa.debian.org/go-team/packages/riseup-vpn</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; I'd appreciate any pointers.</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; Best,</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; 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)