Bug 175525 - app-cdr/webcdwriter uses generation-1 eclasses and uses bundled jars
Bug#: 175525 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: media-optical@gentoo.org Reported By: ali_bush@gentoo.org
Component: Applications
URL: 
Summary: app-cdr/webcdwriter uses generation-1 eclasses and uses bundled jars
Keywords:  
Status Whiteboard: 
Opened: 2007-04-22 05:50 0000
Description:   Opened: 2007-04-22 05:50 0000
Firstly,  webcdwriter inherits java-pkg which is a Java Generation 1 eclass. 
Presently the java team is pushing hard to have all packages migrated to
java-pkg-2.eclass (or java-pkg-opt-2.eclass which is probably more appropriate
for webcdwriter)

Secondly,  after having a look at this package I noticed that the java
component is never actually built.

> * Applying configure.patch ...                                           [ ok ]
>
>Configuring webCDwriter
>
>Checking for a working javac... not found -> will use precompiled >webCDcreator.jar
>/etc/init.d... yes

after looking at the configure script I discovered that it attempts to detect
javac by compiling 2 example java classes.  The is a dependency within one of
these classes on javax.jnlp.ServiceManager, at it occurs multiple times within
the actual source.  This should be available within the dev-java/jnlp-bin
package ( I have not yet checked API compatibility )

------- Comment #1 From Alistair Bush 2007-04-30 10:02:00 0000 -------
Created an attachment (id=117707) [details]
webcdwriter-2.8.0-r1.patch

patch to bump webcdwriter ebuild to java generation-2 eclasses.

------- Comment #2 From Alistair Bush 2007-04-30 10:08:16 0000 -------
Created an attachment (id=117708) [details]
patch to fix configure and Makefiles.in

This patch does the following.

1) Makes the build accept JAVACFLAGS
2) Makes the build actually attempt to build the java source, instead of just
using bundled jar/classes.

------- Comment #3 From Alistair Bush 2007-04-30 10:10:43 0000 -------
Created an attachment (id=117710) [details]
webcdwriter-2.8.0-r1.patch

Just realized latest ebuild was touched while I was working on the rev bump. 
This patch brings it into line with the changes that were made.  sorry for the
bug spam.

------- Comment #4 From Petteri Räty 2007-05-19 21:23:43 0000 -------
Patch committed with a a couple of improvements. Added java to metadata.xml
after ack from beandog.