New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu package has too many dependencies #6355
Comments
well - if we put all the dependencies on suggest - they will not be installed and the desired features will not work. Kind of chicken/egg issue - right? |
@DeepDiver1975 Depends on what you want. Usually "suggest" is for all the dependencies that make the product work fully at the expense of more packages installed, whereas recommends/requires should be for basic functionality. Am I missing sth there? |
|
@netAction YMMV on virus scanners, but I concur, No idea why there is a dep on mediawiki, no idea on if an MTA (not a specific one) should be required. Libreoffice is required for collaborative document editing (ODF conversion). |
No - preview generation - collaborative editing work without it |
Then I concur, preview generation is slow enough as it is. No need to invoke LO in the path. |
@netAction "Please add "updatechecker=false" to default conf.php. At the moment ownCloud wants me to update and shows a yellow warning message." Please file a separate issue about this. Somethings off with the version checking then. Works for me btw (debian packages) |
Libreoffice adds on a typical server system about 550 MB of x libs and other probably unwanted packages. Especially libreoffice should not be a recommended dependency imo. Also OwnCloud should not install exim4 on a system, that already runs another MTA like postfix or sendmail or uses an external mailserver. I also don't know why the package @netAction checked had mediawiki as dependency. At least the currently online one doesn't have it as any kind of dependency. |
I had the same problem. I just tried my regular updates on my Ubuntu 12.04 server and was very confused it tried to install libreoffice. I certainly don't need libreoffice on a server install. Especially considering it's a server. |
+1 I have no reason to install libreoffice, java, clamav, gods the list is huge. Give me what is needed to get OC working and then document what can be installed to enable optional shiny. This is a pretty common pattern in software dev... |
Sorry, mediawiki is only in the dependencies of ownCloud 5 in the official Ubunu repository. http://packages.ubuntu.com/saucy/owncloud |
ownCloud 6 can generate thumbnails or different filetypes. Libreoffice can be used to generate thumbnails for odt files. It's a soft dependency so you don't have to install it. I haven't checked the ubuntu packages but this should be recommendation and not a hard dependency |
In the way of installing a package a recommendation is not a recommendation. You have to tweak with special usually unknown parameters to not install it. So what you talk about is a suggesion in Debian's language. |
Answering karlitschek with other words. Debian has several levels of soft-dependencies. According to the Debian packaging guidelines http://www.debian.org/doc/debian-policy/ch-relationships.html I would say that software packages needed to create general image thumbnails should go to Recommends (almost everybody that currently enjoys owncloud 5 stores images, therefore the image thumbnails toolchain should be found in almost every installation), while Libreoffice should go to Suggests (it's perfectly reasonable to have an owncloud 6 setup without odt thumbnails, because not everyone is going to use odt features, and also because even when using the new owncloud odt edition capabilities, not everyone is willing to install Libreoffice dependencies on servers). The problem with the current owncloud 6 packaging is that it is impossible to decide which dependencies are important, provided Libreoffice alone brings 150+ lines of dependencies (x libs, gtk, fonts, java, python) that bury in noise all the other Recommends lines. To state it clear: which are the soft-dependencies to generate image thumbnails? Which are the soft dependencies to generate video thumbnails? Are there other Recommends soft-dependencies besides the latter two, and Libreoffice? It would be easier to decide which packages are relevant if Libreoffice went in Suggest and whatever is needed for images/video went to Recommends, because the display of Recommends and Suggest would be separated, and the command-line options --install-recommends and --install-suggests would allow to treat them accordingly. |
There is no --install-recommends. apt-get only has --no-install-recommends. Recommended packages are nearly always installed together with ownCloud. In the case of exim4 they have an effect on the rest of the system. That is the reason why this issue is really important. |
Thanks for the correction about the correct command-line parameters. Indeed the presence of exim in recommended packages is an important issue, but I cannot comment on this one as I do not experience it: apt-get is not suggesting exim to me (I have msmtp installed, I do not know if it's the reason why). |
Yes, exim4 | mail-transport-agent means any other MTA is OK as well. Details: https://build.opensuse.org/package/view_file/isv:ownCloud:community:6.0/owncloud/debian.control |
The problem in my opinion is, that you don't need any MTA to use Owncloud, because it supports SMTP. As @jborme wrote above "Suggests is for software that installing […] without [the said dependencies] is perfectly reasonable." |
What about this:
|
Didn't have ntp or time-daemon installed on my servers (and don't need it on XEN guests). |
Thanks for the change. Actually I think it's possible that to restrict Libreoffice dependency to the package libreoffice-writer. Since currently OC only supports rich text edition, there is no need to install the other components (libreoffice-calc, -base, -draw, -impress). This saves a significant amount of dependencies (libreoffice on a basic Debian 7 setup requires 138 dependencies, libreoffice-writer requires “only” 101). |
@jborme we use libreoffice for preview generation of any ODF files - it's totally unrelated to the collaborative editing feature. |
@netAction hmm - interesting ... |
I just committed what Thomas suggested to the packages in isv:ownCloud:community |
@DeepDiver1975 If you are in a virtual machine NTP does not work. |
Installing libreoffice in ubuntu server pulls in libreoffice-gnome libreoffice-gtk. Could you be more specific in the suggested packages? I don't know which is the minimal requirements to support online editing but I maybe installing libreoffice-core or libreoffice-writer it's enough. |
I've intalled libreoffice-writer and documents works properly so that’s probably the minimum requisite. I suggest to suggest libreoffice-writer instead of libreoffice. |
Once again: documents and libreoffice are unrelated! |
There are still strange dependencies. http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_13.10/Packages Not neccessary: php5-mysqlnd | php5-mysql Seems not to be used in OwnCloud: php5-intl Costs even more than disk space: ntp | time-daemon |
Yes, one of these. But not all at once. Uhm. I ran OC6 without php5-intl in German and do not see any difference after installing the package. |
Yes - because we provide a pure PHP implementation as fallback in case php-intl is not available |
true - but in order to keep the packaging effort to a reasonable level we have one package and not 3 or 4 |
I agree with netAction:
should rather read
One of them is required, others are optional. I e.g. have no use for the PostGRESQL part ( One more concern of mine is:
Is an NTP _server_ really a requirement? That dependency broke other things on my system (which is running an NTP client to sync against another server: the client could no longer run as the port was occupied). I've manually disabled the On the other end, from the above quoted package description, I wonder about this:
"Recommends" means it works without. Does ownCloud work without a database? Shouldn't that be in the "Requires" section, and have the
|
ntp as a recommendation will not help that much as it is too hard to install a package without the recommended packages. And a lot of Linux systems don't have any hardware clock to sync. |
I don't think we still need the ntp dep. |
I don't get what you mean by that: where's the problem? If I want that package, I simply run another
I don't understand that one either. All my Linux machines have been doing fine without the
But I rather agree with @dragotin that it's not needed as a Depends. A "Recommends:" doesn't hurt, though a too long list there might rather be confusing. Keeping the server time in-sync is not the task of OC, it's rather a general server thing ;) |
No. You are talking about suggestions. To not install a recommended package is difficult. Please read this issue from the beginning.
Which clock should be synced this way when there is none?
For nearly any user there is no difference between dependency and recommendation. The pain is the same. :-) |
@netAction I knew I was again messing-up "recommends" with "suggests" (never remember which is which). But I was not aware that one of them (here: recommends) always gets installed automatically if not explicitly stated otherwise – thanks for the lesson! So please, consider my "Recommends" as "Suggestions" and vice-versa ;) I still hope for the day I can keep the two apart. Your
Guess we're going a little beyond the scope of this ticket; but which clock is used to deal with time when there is none? That one. When syncing time with |
How many admins know this? How many did not even upgrade to OC7 yet?
The kernel's clock. You should not touch this as you don't know if root is allowed to change it at all. You might want to change the data source the kernel uses. But you don't know what that is on a unknown user's system. Here it is a XEN daemon and ntpdate crashes on every startup very nice. |
Full ack. But all I meant was that being the key to me finally being able to keep "Suggests" and "Recommends" apart in the correct way, telling which is which – not being the key for others dealing with the installation ;)
OK, that's a reason against using |
I need a NTP daemon on a system that can't change any hardware time, any kernel time and that does not provide a NTP server? |
I don't think so. That's why I'd put the "if" bold-italic. Keeping that stuff completely out of the deps IMHO would be the best. |
@dragotin, could you please explain why the new package in Debian Backports still has the old "Recommends"?
Thanks |
@BackSlasher sorry, I don't know anything about that. You would need to ask downstream at the debian community. Usually they know what they do. |
@dragotin Emailed the package maintainers. Thanks anyway |
If you don't want to install ntp to satisfy owncloud's package dependencies (it really doesn't make sense on a virtual server!!), I recommend creating a dummy package with 'equivs' that provides 'time-daemon'. |
@jnweiger Still relevant for our own packages? - If not please close. |
Dependencies should have a reason. Furthermore, the dependencies vary greatly between distributions. E.g. we have Recommends: libreoffice-writer for suse, but don't mention it for rhel/centos. Dependencies should have a reason and be consistent. |
ntp was required long time ago because our sync algo was relying on in-sync system times on client and server. This dependency can savly be removed. |
... where ntp did not fix anything on many systems as explained 200 times in this issue. |
"Furthermore, the dependencies vary greatly between distributions. E.g. we have Recommends: libreoffice-writer for suse, but don't mention it for rhel/centos." Fedora / RHEL do not have soft dependencies, it's hard or nothing. That explains several of the differences. |
@netAction what are you trying t tell me? |
I guess I can close this then. |
Expected behaviour
When installing ownCloud from the SUSE repository it should install ownCloud.
Actual behaviour
A virus scanner, an office suite, a wiki, a mail server and some other stuff is installed.
Steps to reproduce
echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_13.10/ /' >> /etc/apt/sources.list.d/owncloud.list
apt-get update
apt-get install owncloud
Server configuration
Operating system: Ubuntu 13.10
ownCloud version: 6.0.0-0
Updated from an older ownCloud or fresh install: fresh
Solution
Use package suggestions instead recommendations.
By the way.
Please add "updatechecker=false" to default conf.php. At the moment ownCloud wants me to update and shows a yellow warning message.
The text was updated successfully, but these errors were encountered: