Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 840221 - www-apps/nextcloud-23.0.3: not compatible with dev-lang/php:8.1
Summary: www-apps/nextcloud-23.0.3: not compatible with dev-lang/php:8.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-04-22 20:30 UTC by Alexandra Parker
Modified: 2022-08-08 20:44 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandra Parker 2022-04-22 20:30:21 UTC
I'm running a ~ keyword system, so www-apps/nextcloud RDEPEND on dev/lang-php resolves to dev-lang/php-8.1.4. At runtime it checks (lib/versioncheck.php) that it's not running on PHP>8.0 and crashes otherwise, so it should probably RDEPEND on dev-lang/php<8.1.

Reproducible: Always

Steps to Reproduce:
1. Be ~ARCH.
2. Install nextcloud.
3. Try to access nextcloud.
Actual Results:  
Page saying:

This version of Nextcloud is not compatible with > PHP 8.0.
You are currently running 8.1.4.

Expected Results:  
Nextcloud homepage.

Running on ~arm64. Can work around by either masking PHP 8.1 if nothing needs it, or also installing 8.0 otherwise. Is there a better workaround to mask 8.1 for www-apps/nextcloud specifically?
Comment 1 Federico Justus Denkena 2022-08-02 10:48:32 UTC
Confirmed. Temporary fix: 'eselect php set cli php7.4'
Comment 2 Federico Justus Denkena 2022-08-02 11:04:15 UTC
See: https://docs.nextcloud.com/server/23/admin_manual/installation/source_installation.html 
Requirement is php7.3 or php7.4.
Comment 3 Federico Justus Denkena 2022-08-02 11:06:54 UTC
Seems like 8.0 is fine too: https://docs.nextcloud.com/server/23/admin_manual/installation/system_requirements.html
Comment 4 Bernard Cafarelli gentoo-dev 2022-08-08 20:40:59 UTC
Sorry for delay here, as commented in relevant PR, I will push a change to restrict:
* 23.* ebuilds to <php-8.1 (allowing 8.0 but not newer)
* 24.* to <php-8.2 (future-proofing for next PHP releases and to align with upstream version check)
Comment 5 Larry the Git Cow gentoo-dev 2022-08-08 20:44:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=495e494af5821477af614d9c2a68c1b47b812070

commit 495e494af5821477af614d9c2a68c1b47b812070
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2022-08-08 20:43:27 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2022-08-08 20:44:17 +0000

    www-apps/nextcloud: restrict allowed php versions
    
    23.x especially only supports 8.0 at most
    
    Closes: https://bugs.gentoo.org/840221
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 www-apps/nextcloud/nextcloud-23.0.5.ebuild | 2 +-
 www-apps/nextcloud/nextcloud-23.0.7.ebuild | 2 +-
 www-apps/nextcloud/nextcloud-24.0.3.ebuild | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)