Red Hat Bugzilla – Bug 820145
eclipse-platform: Bundled library
Last modified: 2014-01-12 19:27:08 EST
eclipse-platform is bundling lucene-demo, an external library.
According to Fedora Java Packaging Guidelines this is unacceptable. See:
Please remove this library from packaging and add it as external dependency.
The external library is bundled in the following jar:
$ cat /mnt/globalsync/fedora/linux/development/rawhide/x86_64/os/Packages/e/eclipse-platform-4.2.0-0.20.I201205031800.fc18.x86_64.rpm | rpm2cpio | cpio -id
$ grep -r lucene.demo .
Binary file ./usr/lib64/eclipse/plugins/org.eclipse.help.base_3.6.100.v20120402-2029.jar matches
$ jar tf ./usr/lib64/eclipse/plugins/org.eclipse.help.base_3.6.100.v20120402-2029.jar | grep lucene
The library is not bundled. Eclipse keeps a customized copy of sources (see eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=175116 comment 5). Eclipse contributed some patches to lucene-demo, which were eventually inlcuded into lucene 3.1+ (not in Fedora or Eclipse). The library should be seen as a lucene-deriverative work in eclipse-plugin, not as a bundled library.
I'll try, however, to build lucene 2.9 with required patches, and then, rebuild Eclipse with that lucene.
Patches did not applied for lucene 2.9. Having in mind that Eclipse right now ships lucene-demo deriverative work, I will continue working on this in f18, when Eclipse will ship to lucene 3+, and it will be possible to get rid off custom lucene-demo from eclipse help.
Existing code in Eclipse is patched, and should be actually considered as a custom implementation of HTML parser, which has no counterpart in the existing lucene core, depspite having a very similar name,