Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rutorrent: upgrade 4.3.7 => 5.1.5 #6404

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

smaarn
Copy link
Contributor

@smaarn smaarn commented Jan 18, 2025

Description

Checklist

  • Build rule all-supported completed successfully
  • New installation of package completed successfully
  • Package upgrade completed successfully (Manually install the package again)
  • Package functionality was tested
  • Any needed documentation is updated/created

Type of change

  • Package update
  • This change requires a documentation update (e.g. Wiki)

* Bump PHP requirement to 8.2
@smaarn smaarn changed the title upgrade rutorrent 4.3.7 => 5.1.5 rutorrent: upgrade 4.3.7 => 5.1.5 Jan 18, 2025

# newer libtorrent-rakshasa requires C++14 support
REQUIRED_MIN_DSM = 7.0
UNSUPPORTED_ARCHS = comcerto2k

SPK_DEPENDS = "WebStation:python311:PHP7.4:Apache2.4"
SPK_DEPENDS = "WebStation:python311:PHP8.2:Apache2.4"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with PHP 8.2 the package must define REQUIRED_MIN_DSM = 7.2
DSM 7.1 is limitted to PHP 8.0

We can either use PHP8.0 or create two different profiles for DSM 7.1 and DSM 7.2.

@mreid-tt has limitted spk/cops to DSM 7.2

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rollbacked the PHP upgrade to 7.4 (since it's still supported by DSM 7.2).

We could enforce the upgrade of PHP but then I would recommend solely to upgrade to 8.0 (since it's the only one supported starting from DSM 7), WDYT ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend first examining why you want to upgrade. If it's to maintain a supported PHP version, note that PHP 8.0 is already beyond its active and security support period.

According to Synology’s own release notes for PHP 8.0, version 8.0.28-0120 requires DSM 7.2 or higher, and PHP 7.4’s release notes show that version 7.4.33-0130 also requires DSM 7.2 or above. Both changes took effect on 2023-05-22, meaning any current Synology-provided PHP version now needs DSM 7.2.

Given that Synology hasn’t released PHP 8.3 or 8.4—both still in active support—sticking with PHP 7.4 may be less disruptive, especially for users on older DSM 7 versions who don’t want to install an additional PHP package. The security implications are similar to those on PHP 8.0, since neither can be updated to newer releases (post-2023-05-22) under older DSM versions.

@hgy59
Copy link
Contributor

hgy59 commented Jan 18, 2025

@smaarn I already have a local update to rutorrent 4.3.9 including updates for

  • cross/libtorrent-rakshasa from v0.13.8 with git hash 71a487c66b136524bce5519cb1f9e855621a9101 to official v0.14.0 (no hash required)
  • cross/rtorrent from v0.9.8 with git hash eacf9798e2787df7dd4d5c800a46bac7931ac41c to official v 0.10.0 (no hash required)
  • cross/xmlrpc-c from v1.51.06 to v1.59.03

and work on spk/rutorrent in progress to:

  • migrate to redesiged shared folders with SERVICE_WIZARD_SHARENAME
  • remove DSM 6 specific code in service-setup.sh

If you don't mind I could add the updated dependencies soon and help with the spk definitions later...

@smaarn
Copy link
Contributor Author

smaarn commented Jan 18, 2025

@smaarn I already have a local update to rutorrent 4.3.9 including updates for

  • cross/libtorrent-rakshasa from v0.13.8 with git hash 71a487c66b136524bce5519cb1f9e855621a9101 to official v0.14.0 (no hash required)
  • cross/rtorrent from v0.9.8 with git hash eacf9798e2787df7dd4d5c800a46bac7931ac41c to official v 0.10.0 (no hash required)
  • cross/xmlrpc-c from v1.51.06 to v1.59.03

and work on spk/rutorrent in progress to:

  • migrate to redesiged shared folders with SERVICE_WIZARD_SHARENAME
  • remove DSM 6 specific code in service-setup.sh

If you don't mind I could add the updated dependencies soon and help with the spk definitions later...

@hgy59 by all means, do ! This PR was just to kick off the upgrade work in a "minimal" effort mode (e.g. have the build passing, play with things to see if there needs to be more advanced config changes...).

hgy59 added 4 commits January 18, 2025 22:26
- update cross/libtorrent-rakshasa from v0.13.8 to v0.14.0 (drop specific commit by hash)
- update cross/rtorrent from v0.9.8 to v0.10.0 (drop specific commit by hash)
- update cross/xmlrpc-c from v1.51.06 to v1.59.03
- spk/rutorrent:
  - drop rutorrent.sc (same as default, generated by spksrc.spk.mk)
  - adjust changelog
- add cross/screen5 (requires DSM 7, i.e. std c17)
@hgy59
Copy link
Contributor

hgy59 commented Jan 19, 2025

@smaarn dependencies updated (and master merged into this)

Thanks to #6255 the github prepare action takes now less than one minute including the source download.

For spk/rutorrent files, further investigation is required.

@mreid-tt shall we try to update this package for DSM 7.1 with PHP 8.0 and DSM 7.2 with PHP 8.2?

@mreid-tt
Copy link
Contributor

@mreid-tt shall we try to update this package for DSM 7.1 with PHP 8.0 and DSM 7.2 with PHP 8.2?

@hgy59, we can try both yes. I am a bit unsure why we are bumping the PHP version however since the release notes for ruTorrent don't seem to make any special mention of a minimum PHP 8 requirement.

If this is in fact needed then a build for different versions of PHP will show errors when run with incompatible versions (similar to #6229).

@smaarn
Copy link
Contributor Author

smaarn commented Jan 19, 2025

@mreid-tt shall we try to update this package for DSM 7.1 with PHP 8.0 and DSM 7.2 with PHP 8.2?

@hgy59, we can try both yes. I am a bit unsure why we are bumping the PHP version however since the release notes for ruTorrent don't seem to make any special mention of a minimum PHP 8 requirement.

If this is in fact needed then a build for different versions of PHP will show errors when run with incompatible versions (similar to #6229).

@mreid-tt actually I was under the impression that I couldn't install PHP 7.4 on my DSM (7.2). Turns out I was wrong. We can definitely avoid upgrading then. I'm not sure, though, about a "build" for different versions of PHP causing incompatibilities (it's only runtime dependencies from what I recall), right ?

I will revert the PHP upgrade anyway since it would minimize the "risk" of this upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Package Request] ruTorrent 5.1
3 participants