Raise minimum libtorrent version to 1.2.12 (2.0.2)#14189
Conversation
4cd88c4 to
f9e2861
Compare
|
And why should the minimum be raised? |
Apparently, this was decided as a result of another discussion that you missed during your long absence... |
As long as this holds true I don't have a problem. Your explanation satisfies my curiosity. |
|
Windows vcpkg CI failed due to having older libtorrent. |
Yes, vcpkg is still lagging behind: microsoft/vcpkg#15620. This is what prevents this PR from being merged. |
|
PS: we should move away from vcpkg. |
Right now, it's only used for CI. @FranciscoPombal promoted |
|
If Actions CI for linux supports pulling packages from PPA, then I can make a PPA that will autopull+autobuild from libtorrent's git every commit on the branches we care. |
The problem is Actions CI for Windows/MacOS where |
one advantage of vcpkg is that it makes static builds quite easy. A better approach would be to only build libtorrent ourselves. it shouldn't be that hard. |
807aeba to
a9404f6
Compare
|
I am trying to use a custom libtorrent vcpkg port, but so far without success... Any ideas? |
probably actions are using cached vcpkg rather than building libtorrent. the actual setup of vcpkg with building qt and libtorrent would take well over 1 hour. |
4c11d06 to
1fc52e6
Compare
It looks like we need to call |
7657d92 to
29bb7c8
Compare
|
Finally, I managed to get it compiled in GitHub CI. Otherwise we can get rid of it altogether. |
46fb128 to
4374db7
Compare
4374db7 to
b673e0c
Compare
53e241b to
b673e0c
Compare
I can update the dependencies if you want. Or the AppVeyor CI can be dropped if it is covered by another CI. It seems that Actions CI tests on Windows too. Does it cover the same things as the AppVeyor configuration? If yes, then AppVeyor can be dropped IMO. |
If AppVeyor can't be dropped, then I think it is possible to give access to other persons to upload necessary packages to builds.shiki.hu/appveyor/ |
It builds using CMake but it seems we still need to test QMake too. IMO, we can drop Appveyor if someone provides Windows+qmake configuration for GitHub Actions CI.
You can do that 👍 |
|
I updated AppVeyor and the build has passed. |
| Add-Content ${{ github.workspace }}/triplets_overlay/x64-osx-release.cmake ` | ||
| -Value "set(VCPKG_BUILD_TYPE release)","set(VCPKG_OSX_DEPLOYMENT_TARGET 10.15)" | ||
|
|
||
| # NOTE: Avoids a libtorrent ABI issue. See https://github.com/arvidn/libtorrent/issues/4965 |
There was a problem hiding this comment.
@glassez You know that I'm back now, but you couldn't at least ping me before merging this, or at least included a link to this in here: https://github.com/orgs/qbittorrent/teams/bug-handlers/discussions/13/comments/4? I would have liked to review this...
Case in point, I don't think this change is good. The workaround you found was to always force passing -DCMAKE_CXX_STANDARD=17 to everything, but this is not a good practice in CMake. It should only be done if needed, and thus should remain exclusive to the macOS build.
Another disadvantage is that it makes our portfile deviate more from upstream than necessary. We don't want to deviate from upstream too much. In fact, it is in our best interest to contribute back, so that we may benefit from the efforts of others and integrate upstream fixes more easily. It's not like we are hyper-specialized users of libtorrent.
Feel free to submit a hotfix. if you don't have the time for that, I'll get round to it once I've finished catching up with current happenings, or maybe someone else can do it in the meantime.
There was a problem hiding this comment.
Sorry, it should have been merged a long time ago. I just forgot about it.
Case in point, I don't think this change is good. The workaround you found was to always force passing -DCMAKE_CXX_STANDARD=17 to everything, but this is not a good practice in CMake. It should only be done if needed, and thus should remain exclusive to the macOS build.
I agree. But I didn't want to be perfect at it. I just wanted to avoid an obstacle in the form of vcpkg, so that CI would continue to work.
if you don't have the time for that, I'll get round to it once I've finished catching up with current happenings
I'll leave it to you.
libtorrent is updated:
https://github.com/arvidn/libtorrent/releases/tag/v1.2.12
https://github.com/arvidn/libtorrent/releases/tag/v2.0.2