Re: Mozilla with Java
> Suggests from main to contrib/non-free is allowed, or else Enhances
> from contrib/non-free to main.
The phrase in the policy would also allow a conditional recommends or
depends to packages outside main. As long as the dependency or
recommend can be fulfilled with a package in main, it should be fine.
This is the relevant section from the policy.
2.2.1 The main section
Every package in main and non-US/main must comply with the DFSG
(Debian Free Software Guidelines).
In addition, the packages in main
- must not require a package outside of main for compilation or
execution (thus, the package must not declare a "Depends",
"Recommends", or "Build-Depends" relationship on a non-main
Similarly, the packages in non-US/main
- must not require a package outside of main or non-US/main for
compilation or execution,
A package declaring 'Depend: package-in-main | package-not-in-main'
would not _require_ a package outside for compilation or execution,
and would thus be just fine working with both. Similar for
'Recommends'. The relationship would thus just be documenting the
fact that both a package in main, and package outside main, can be
used together with the package in question.