[pacman-dev] support of optional dependencies

Pierre Schmitz pierre at archlinux.de
Fri Sep 21 17:58:11 EDT 2007


while working on php I realized that I really need something 
like "optionaldepends" in a PKGBUILD. I am not sure about the current status 
of this; the last time it was decided that we print some message to the user 
using the install scripts.

But I am not very happy with that kind of workaround. It would be much cleaner 
to have such support in makepkg/pacman itself. It would be enough if those 
are just information which the user can ask for if needed. Currently you have 
to grep through pacman.log to see those messages after you have installed a 

It could be implemented the following way:
	optionaldepends=('package':'optional description why you might want to \
			  isntall this optional package' \
			 'next package')
	treat optionaldepends like makedepends
	show optional packages and their (optional) description after install
	add a switch to show those information after the package is allready

As an example of how "userfriendly" our current solution is see 



More information about the pacman-dev mailing list