New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modules/java build issues #495
Comments
I had that today too, trying to build master |
Hi, main problem here is not that you mentioned above (however makefile should follow those rules what you suggested). IMHO the problem is that make has its own dependency management and javac also has such a thing... We can choose between two solutions:
For compiling java files within core, I'd choose 1st one (it's not what I really like but I wouldn't add such a build-dependency to the core). |
As long as And the java module being optional, if the required tools aren't present, just don't build it. Those who work with java, are likely to have the tools anyway... |
👍 |
fixes syslog-ng#495 Signed-off-by: Laszlo Budai <stentor.bgyk@gmail.com>
make -j should work with my PR #500 ( If package maintainers will compile and package jar files, it could work. If not... well in that case we should deliver those jars in an other way. That way could be a central maven repo. If someone just download a pre-built jar file then he/she doesn't need those tools(-> newest gradle which is not part of most of the distros) when compiling syslog-ng: in that case only java support is needed. If those jar files could be downloaded from a central maven repo, then the user could use a maven which is part of her/his distro... |
From the Debian PoV, we are required to compile the jar files, we're not going to ship pre-compiled jars. But our tools are sometimes old, and downloading from the network during build is prohibited. |
+1 |
I think algernon's answer is not about SyslogNg.jar but a general approach they follow in Debian packaging. This means that my idea on delivering pre-compiled jar files (not SyslogNG.jar, but ElasticSearchDestination.jar, KafkaDestination.jar, etc..) is not viable. @algernon : am I right? :-) (however, including SyslogNG.jar within dist tarball is a bug : this is why I asked you to open a separate issue for that) |
Yes, you're right. Debian doesn't care much if jars are included in the source tarball (but it makes things easier if they aren't, mind you). We'll rebuild them whether they're shipped pre-compiled or not. |
When trying to compile syslog-ng with
make -j4
, I got the following results:Trying to track things down, I noticed a few more things:
modules/java/Makefile.am
addslibmod-java.la
tomodule_LTLIBRARIES
, instead ofmodules/java/libmod-java.la
. It also doesn't have themod-java
andmodules/java
shortcut targets, which would have made it a minute faster to arrive to the next problem:In short, I had trouble compiling the Java plugin alone, without having to go through the rest. So much so, that I gave up and just disabled java for the time being.
The text was updated successfully, but these errors were encountered: