Hi Ludo,

The instructions for building Derby can be found here: http://svn.apache.org/viewvc/db/derby/code/trunk/BUILDING.html?view=co The instructions say that you need Java 9, but any version from Java 9 on up should work. You don't need to download either javacc or Lucene. Both tools are bundled in the Derby source code. The bundling of 3rd party assets in the Derby source distro satisfied the Linux package rules the last time that we went through this exercise. Maybe the rules have changed.

I believe that the version of Lucene bundled inside Derby is the highest version we have tested against. That would be Lucene 4.9.0, according to http://db.apache.org/derby/docs/10.15/tools/rtoolsoptlucene.html. I will double-check that this weekend. If you're in a hurry, you can crack open the Lucene jars located in the Derby source tree under tools/java and look for the version number yourself.

I will also look up the javacc version which is bundled inside Derby. Again, you can crack open tools/java/javacc.jar to look up that information if you are in a hurry.

Hope this helps,
-Rick


On 8/21/20 3:25 AM, Ludovic Hirlimann wrote:
Hi,


I'm ludo; I'm far from being a Java coder , but I've decided to package
JOSM for fedora. One of the first dependency is Derby.

I've managed to compile the latest derby on my fedora32 VM. I'm now
trying to figure what the next steps are in order to be able to publish
a rpm. I've asked a question onf the java/fedora devel list and the
answer came back as
<https://lists.fedoraproject.org/archives/list/java-de...@lists.fedoraproject.org/thread/QA3OGE4553TAYUTQ2K2RZJTK3DVB7LZF/>.


Where does one find version numbers of Lucene and Javacc that derbys is
happy to run with ?

eg https://src.fedoraproject.org/rpms/derby/pull-request/1#request_diff
contains 2 patches related to these projects ; I don't really understand
the scope of these patches (specially that I've built Derby without any
traces of Lucene on my systems). I'll happily read all documentation snt
to me in order for me to grasp concepts and things I clearly don't right
now.


Thanks in advance.

Ludo


Reply via email to