FS#41381 - [owncloud] incorrect dependencies in PKGBUILD

Attached to Project: Community Packages
Opened by Bastien Traverse (Neitsab) - Tuesday, 29 July 2014, 15:47 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 30 July 2014, 17:49 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

First reported on arch-general: https://mailman.archlinux.org/pipermail/arch-general/2014-July/036910.html

Today I was looking at the installation of ownCloud on my home Arch
server, and I noticed one of the optional dependencies returned by
pacman (php-imagick) couldn't be found in the official repos. Turns out
it's in the AUR [1]. Arch packages' owncloud webpage mentions
"(virtual)" next to php-imagick and has no hyperlink to it [2]. Is that expected?

Also, after looking at the latest ownCloud official admin manual
prerequisites section [3] it seems package dependencies should be
overhauled:

* php-intl should be moved to optdepends array;
* smbclient should be removed from optdepends (required only for
specific apps, otherwise php-ldap from [extra] should be added too);
* php-apcu and php-xcache should be added to optdepends;
* quite probably php-fpm should be included too since it is mentioned in
the given nginx example config [4];
* and of course, php-imagick should be removed from optdepends if it
isn't expected that AUR packages are mentioned in official repos PKGBUILDs.

Updated PKGBUILD attached.

[1] https://aur.archlinux.org/packages/php-imagick
[2] https://www.archlinux.org/packages/community/any/owncloud/
[3] http://doc.owncloud.org/server/7.0/admin_manual/installation/installation_source.html#prerequisites
[4] http://doc.owncloud.org/server/7.0/admin_manual/installation/installation_source.html#nginx-configuration

Additional info:
* owncloud 7.0.0-1


Steps to reproduce:
# pacman -S owncloud php-imagick
error: target not found: php-imagick
   PKGBUILD (1.9 KiB)
This task depends upon

Closed by  Sergej Pupykin (sergej)
Wednesday, 30 July 2014, 17:49 GMT
Reason for closing:  Fixed
Comment by Bastien Traverse (Neitsab) - Tuesday, 29 July 2014, 16:05 GMT
I also noticed upstream admin manual prescribes that at least config/, data/ and apps/ directories be owned by the web server user process (http:http on Arch): http://doc.owncloud.org/server/7.0/admin_manual/installation/installation_source.html#set-the-directory-permissions.

Right now this is only done for config/ in package() because it is moved to /etc/webapps/owncloud/ and linked back to /usr/share/webapps/owncloud/config.

Updated PKGBUILD attached.
Comment by Sergej Pupykin (sergej) - Wednesday, 30 July 2014, 17:49 GMT
It is supposed that user set up apps/ (https://wiki.archlinux.org/index.php/Owncloud#.22Can.27t_write_into_apps_directory.22) and data/ permissions by himself.

Other issues fixed.

Loading...