FS#74016 - [nextcloud-app-calendar] Requires PHP <= 8.0
Attached to Project:
Community Packages
Opened by Chih-Hsuan Yen (yan12125) - Thursday, 03 March 2022, 07:34 GMT
Last edited by Chih-Hsuan Yen (yan12125) - Saturday, 07 May 2022, 09:47 GMT
Opened by Chih-Hsuan Yen (yan12125) - Thursday, 03 March 2022, 07:34 GMT
Last edited by Chih-Hsuan Yen (yan12125) - Saturday, 07 May 2022, 09:47 GMT
|
Details
Description:
Upstream version 3.1.0 now restricts compatible PHP versions https://github.com/nextcloud/calendar/commit/c4a166db49c08670dcec7e8088d5baa44b85ac9d, causing the following error during `occ upgrade`: Exception: App "Calendar" cannot be installed because the following dependencies are not fulfilled: PHP with a version lower than 8.0 is required. Update failed Additional info: * community/nextcloud-app-calendar 1:3.1.0-1 * Upstream work-in-progress pull request for PHP 8.1 compatibility: https://github.com/nextcloud/calendar/pull/3996 Steps to reproduce: Run nextcloud on PHP 8.1, upgrade nextcloud-app-calendar and run `occ upgrade` |
This task depends upon
Closed by Chih-Hsuan Yen (yan12125)
Saturday, 07 May 2022, 09:47 GMT
Reason for closing: Fixed
Additional comments about closing: nextcloud-app-calendar 1:3.3.0-1
Saturday, 07 May 2022, 09:47 GMT
Reason for closing: Fixed
Additional comments about closing: nextcloud-app-calendar 1:3.3.0-1
FS#73452", which seems to be false, since upstream already fixed the issue:https://github.com/nextcloud/calendar/commit/e605d3d2b55e097d71abbc71ae295a2a22199265
Does the nextcloud issue really block this from being fixed? Is there anything else that needs to happen before the upstream changes are incorporated?
Not really. I added that ticket for tracking related issues - sorry for confusion.
> Is there anything else that needs to happen before the upstream changes are incorporated?
Once a new version of nextcloud-app-calendar is out, I believe people can verify if that works with PHP 8.1 and then close this ticket.
Can you apply the upstream patch to fix the package?
I guess it's possible. I'll let package maintainers decide. Anyway, I've switched to php from 8.1 to 7.4 due to this bug.
Can you please share how you did that? I installed php74 from the AUR alongside the "regular" php and even set up a symlink so that `php` resolves to the older binary. Still I get the error when trying to re-install the calendar app.
EDIT: Nevermind. Figured it out. Turns out there are two environment variables used in the `/usr/bin/occ` script that can be set to the PHP config and PHP binary. Calling
NEXTCLOUD_PHP_CONFIG=/etc/php74/php.ini NEXTCLOUD_PHP=/usr/bin/php74 occ upgrade
did the trick.