Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#2126 - optional dependancies in pacman
Attached to Project:
Pacman
Opened by Aaron Griffin (phrakture) - Wednesday, 02 February 2005, 15:31 GMT
Last edited by arjan timmerman (blaasvis) - Wednesday, 27 July 2005, 08:31 GMT
Opened by Aaron Griffin (phrakture) - Wednesday, 02 February 2005, 15:31 GMT
Last edited by arjan timmerman (blaasvis) - Wednesday, 27 July 2005, 08:31 GMT
|
DetailsIt appears that at the time of this writing, the issue of overzealous dependancies on packages when some features are optional is a big one.
I would like to request a feature to allow optional dependancies... similar to makedepends=(), optionaldepends=() could list those packages which add features but are not required on a base install (i.e. samba with KDE). The handling mechanism is a whole 'nother story, but I have 2 options played out: 1) Just before the installation of a package is complete - bascially run through pacman again, saying "cups is an optional dependancy, would you like to install it? [y/N]" - it would be best to do each seperately. 2) Simply list all optional packages for features, as KDE does with samba "For samba support, please grab samba" |
This task depends upon
The use of postinstall for messages is flawed. A user installs pacman -S kde and installs all dependencies, all messages scroll over and he lost most of them. It's even worse if you switch to another VT for a while to do something else
On Debian, most of the times I install a package and go to /usr/share/doc/packagename and look for a README.Debian. This file describes the way the package is installed, gives some info, etc. It also gives hints about optional dependencies if you would like those.
This, together with the "Recommends" field dpkg/apt-get has, would be very useful for archlinux. We could even take over the changelog stuff debian uses to list their changes, it's reading commit messages (if any) in CVS and comparing PKGBUILDs to find out what has changed between two versions.
i personally would not like pacman to ask for installing this additional pkgs while installing the one it's initially run to do.
option 2 (notify only) is the way this should work, if you ask me. also, pacman -Qi should have a part where this info it outputted.
on the method of implementation:
maybe the most uesfull way woudl be to provide the pkgname of the suggested pkg AND an description what this would end in.
suggestdepends=('samba:provides support for Samba in KDE')
or something like this.
if i take an example - k3b:
now it has this:
post_install() {
echo "k3b: If you have a DVD-Burner, you should install 'dvd+rw-tools' "
echo "k3b: For 'k3bsetup' to work, you need 'kdesu'. kdesu part of 'kdebase' "
}
with the new handling it would be like this:
suggestdepends=('dvd+rw-tools:provides support for dvd-burning in k3b' 'kdebase:provides kdesu that is needed for k3bsetup to be used')
an advantage? yes, because the $pkgname.install is then not longer needed and all pkgs with suggested dependencies would be handled the same way across all pkgs. an necessity? not really.
my 2 Rp on the subject
Juergen
The situation may change after libpacman comes out. Frontends may get the opportunity to process optional depends.