The prefered (but optionnal) transactional file locking relies on redis. Adding a redis USE flag and RDEPEND will add this dependency. Reproducible: Always
Created attachment 900786 [details, diff] Patch to nextcloud-29.0.2.ebuild Patch to add redis USE flag and dependency
Thanks for your report. This seems to be more a case for optfeature than an USE flag.
+1, nextcloud can run fine without redis, it is an optional runtime feature, and nothing changes in the code (and ebuild merge) when enabling it. So optfeature sounds great here Similar entries could also be added for other memory caching options (where redis can also be used): https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html
I did not even know optfeature existed and was one of the recommended way of setting up this kind of optionnal features. Never too late nor too old to learn new tricks.
Created attachment 901357 [details, diff] Patch to nextcloud-29.0.4 ebuild, add some optfeature Adding optfeature for redis, apcu and memcached memory cache.