F21 System Wide Change: Headless Java

Richard W.M. Jones rjones at redhat.com
Sat Nov 16 09:13:33 UTC 2013


On Sat, Nov 16, 2013 at 02:34:00AM +0100, Miloslav Trma─Ź wrote:
> On Fri, Nov 15, 2013 at 12:28 PM, Jaroslav Reznik <jreznik at redhat.com> wrote:
> > == Scope ==
> > Proposal owners:
> > * Modify javapackages-tools package to automatically generate "java-headless"
> > autorequires (simple change)
> > * Identify and file bugs for affected packages (repoquery and bugzilla bug
> > creation)
> > * (optional) Mass-change spec files that have "Requires: java" to "Requires:
> > java-headless"
> 
> What about packages that do requires the non-headless dependencies?
> Can they be identified automatically, or would "other developers" be
> required to manually revert the change back from java-headless to full
> java?

Wouldn't it be better to inspect the *.class files to find out what
other classes they depend on.  Then you could have automatically
generated Perl-style dependencies like:

  Requires: java(java.net.URL)

Or if that results in too many dependencies, then at least inspect the
*.class files to find out if the package only needs the java-headless
classes.

(I'm aware it's possible for Java programs to dynamically create and
load classes.  The same is true for Perl programs but that doesn't
stop the automatically generated requires being useful most of the
time.)

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)


More information about the devel mailing list