[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dependency problem



On 11/08/11 18:23, Jakub Wilk wrote:
* Torquil Macdonald Sørensen <torquil@gmail.com>, 2011-08-11, 17:52:
Either

python-wxgtk2.8

or

"python-qt4 and python-qt4-gl"

or

python-fltk

or

"python-gtk2 and python-gtkglext1"

You can use something as ugly as:

Depends:
python-wxgtk2.8 | python-qt4 | python-fltk | python-gtk2,
python-wxgtk2.8 | python-qt4 | python-fltk | python-gtkglext1,
python-wxgtk2.8 | python-qt4-gl | python-fltk | python-gtk2,
python-wxgtk2.8 | python-qt4-gl | python-fltk | python-gtkglext1


I wish I could do something as simple as

Depends:

python-wxgtk2.8 | (python-qt4, python-qt4-gl) | python-fltk | (python-gtk2, gtkglext1)

A priority system would need to be defined, of course. If only python-qt4-gl was already installed, apt would e.g. select to resolve the dependency by installing python-qt4. If e.g. only python-wxgtk2.8 and python-qt4-gl was installed, nothing would need to be done.

This is for a program that has a choice of four frontends. WX, QT, FLTK or GTK, which it autodetects at runtime in a particular order of priority. For QT to work, those two QT packages must be installed. For GTK to work, the pair of GTK packages mentioned above must be installed. However, the WX and FLTK frontends only need one package each for the corresponding frontends to work.

Perhaps I'll just force the user to install the WX frontend, and list the all others as suggested packages...

Torquil


Reply to: