Alexandre Rossi <alexandre.ro...@gmail.com> writes:

> The concept is:
> - for people who want to run headless, pull minimal dependencies
> - for people who want to run the graphical client, install more
> dependencies (see Suggests: default-jre, libswt-cairo-gtk-4-jni,
> libopenjfx-java)
>
> I do not see how to do it better, maybe switch to Recommends: ?

Hi. Can we produce two different packages with different depends? You
can have

  Package: davmail-headless
  Depends: default-jre-headless

  Package: davmail
  Depends: default-jre

As for what's actually in those packages, I don't know enough about java
to say. If this was normal C code, you could build two different
binaries: one that links against libgraphics-whatever and one that
doesn't.

If you can't do that, and you have only one binary, then you can use the
same binary in both pacakges, but you'd patch the sources to catch the
exceptions, and produce an error message telling the user about
installing the proper package. I think the only case to catch would be
running with the davmail-headless package without -server.

Does that sound reasonable? I don't know nearly enough about java
linking to say for sure.

Thanks

Reply via email to