How to make a dependency

Jacek Konieczny jajcus at jajcus.net
Fri Apr 16 11:47:22 CEST 2010


Hello,

I am updating the Java packages so different JRE implementations may be
installed together. Now I have a problem with defining one common
dependecy: 'require Java with X11 support'.

Currently it was 'solved' with 'R: jre-X11'. That worked, because
'jre-X11' contained the X11 driver for JRE and pulled 'jre' which
provided /usr/bin/java.

With current IcedTea6 I have 'jre' which provides /usr/bin/java,
'jre-base' which provides the base JRE under /usr/lib/jvm/icedtea6 and
'jre-X11' which provides X11 driver for JRE.

The problem is, I want 'jre-base' with 'jre-X11' usable without
installing 'jre', which may conflict with other /usr/bin/jave provider.

So, when I give 'P: jre-X11' to 'icedtea6-jre-X11' then 'R: jre-X11'
whould not work as expected if /usr/bin/java is provided by other jre
and the only 'jre-X11' installed is from icedtea6.


The question is: how to define a  'require /usr/bin/java and jre(X11)
matching this /usr/bin/java'?

The easiest solution would be to make another '-jre-X11-base' subpackage
with the X11 driver. But then, the '-jre-X11' would contain _only_ the
dependencies: 'R: %{name}-jre-X11-base' and 'R: %{name}-jre' and no
files…

Any better ideas?

Greets,
        Jacek


More information about the pld-devel-en mailing list