Page 2 of 2

Re: Recommended vs required dependencies

Posted: 7. Jan 2013, 20:26
by gapan
What are you all talking about?

Recommended dependencies (or rather suggested dependencies as they are actually called) are already a feature of slapt-get/gslapt. They have always been. And there are many packages that are making use of that feature. For example all the gstreamer packages, like this one:

Code: Select all

# slapt-get --show gst-plugins-good
Package Name: gst-plugins-good
Package Mirror:
Package Priority: Preferred
Package Location: ./salix/l
Package Version: 0.10.31-x86_64-1gv
Package Size: 1017 K
Package Installed Size: 4068 K
Package Required:   gstreamer,gst-plugins-base
Package Conflicts:   
Package Suggests:   aalib,alsa-lib,audiofile,esound,flac,libavc1394,libcaca,libdrm,libdv,libiec61883,libogg,libraw1394,libshout,libsoup,libtheora,libvorbis,slang,slang1,speex,sqlite,taglib,v4l-utils,wavpack
Package MD5 Sum:  63918c529d0aff90c0b35ab53008d6a9
Package Description:
 gst-plugins-good (a set of good-quality plug-ins under LGPL)
 GStreamer Good Plug-ins is a set of plug-ins that we consider to have
 good quality code, correct functionality, our preferred license (LGPL
 for the plug-in code, LGPL or LGPL-compatible for the supporting
Package ChangeLog:
 Added.  Overriding the Slackware package. This one includes several additional  plugins: 1394, dv, gconfelements, shout2, souphttpsrc and speex.

Package Installed: yes
See the "Package Suggests" line?

It's the responsibility of the packager to determine if any of the dependencies are actually optional. If they are, they should be put in a .sug file, instead of in the .dep file. I have no idea about vlc, because I never use it. The packager has determined that samba is a dependency, but if it can work without samba, then samba should be a suggestion instead of a dependency. I don't know if it can, I haven't tried it.

Re: Recommended vs required dependencies

Posted: 7. Jan 2013, 20:49
by mimosa
This feature had passed me by. So is the default to install suggests? How would one change it? slapt-get's man page says nothing about it.

I'm not sure what to make of the fact that I have happily used Salix for however many years it is without noticing this possibility of saving a few megabytes disk storage if I could be bothered. :mrgreen:

In my limited experience as a packager, I err on the side of putting it in if it looks as though it is needed. :?

Re: Recommended vs required dependencies

Posted: 8. Jan 2013, 12:28
by gapan
Package suggestions are not installed by default and you can't change that default. They are only just that: suggestions. You can view them with gslapt and when you install a package with slapt-get that suggests other packages as well, you see a message that lists those suggestions.