Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 762388 - www-apps/nextcloud needs php[argon2] _only_ for migrations from a server where PHP is compiled as such
Summary: www-apps/nextcloud needs php[argon2] _only_ for migrations from a server wher...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-29 09:45 UTC by Gabriel
Modified: 2021-01-25 20:06 UTC (History)
3 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 Gabriel 2020-12-29 09:45:17 UTC
While Nextcloud ebuild works correctly for new installations and upgrades on Gentoo, if you want to migrate your Nextcloud data from a different server where PHP has been compiled with argon2, you won't be able to log in (https://help.nextcloud.com/t/passwords-dont-work-after-server-migration/64989/7).

Upstream fails to mention this in their PHP requirements (the thread above contains a comment suggesting that they do include such information), but this is hard to tackle for users wanting to leave their current Linux distribution and come to Gentoo.

I am not suggesting that we force php[argon2], but an ewarn for users migrating would be beneficial.

Thoughts?
Comment 1 Bernard Cafarelli gentoo-dev 2021-01-02 19:56:42 UTC
Hmm, this one is interesting, thanks for the report!

I agree that forcing USE flag (and therefore migration for all users) is not good, ewarn could work as this will be mostly be spotted shortly after installation.

Another option would be to use webapp_postinst_txt to have it in installed document
Comment 2 Larry the Git Cow gentoo-dev 2021-01-25 20:06:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=936d0ed3aaface3a953ea2fe9d228f00ca4e8dae

commit 936d0ed3aaface3a953ea2fe9d228f00ca4e8dae
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2021-01-25 20:06:07 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2021-01-25 20:06:07 +0000

    www-apps/nextcloud: add post-install doc warning
    
    Closes: https://bugs.gentoo.org/762388
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 www-apps/nextcloud/files/php-argon2-en.txt  | 11 +++++++++++
 www-apps/nextcloud/nextcloud-18.0.12.ebuild |  4 +++-
 www-apps/nextcloud/nextcloud-18.0.13.ebuild |  2 ++
 www-apps/nextcloud/nextcloud-19.0.6.ebuild  |  4 +++-
 www-apps/nextcloud/nextcloud-19.0.7.ebuild  |  2 ++
 www-apps/nextcloud/nextcloud-20.0.4.ebuild  |  4 +++-
 www-apps/nextcloud/nextcloud-20.0.5.ebuild  |  2 ++
 7 files changed, 26 insertions(+), 3 deletions(-)