Opened 3 years ago

Last modified 3 years ago

#909 new defect

java build error for plugins

Reported by: nhruby Owned by: nobody
Priority: normal Milestone: Munin 1.4.7
Component: plugins Version: 1.4.4
Severity: normal Keywords:
Cc:

Description

Hi!

The current 1.4.4. release does not build when java is present due to a typo in the makefile that prevents javac from finding classfiles during the plugin build. I encountered this bug when trying to update the MacPorts build to 1.4.4.

I've attached the patch to make this work, which is the same patch as submitted to MacPorts.

Thanks!

-n

Attachments (1)

patch-Makefile-javaplugin (339 bytes) - added by nhruby 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by nhruby

comment:1 Changed 3 years ago by knan

It builds nicely without this on Linux. What make, javac and OS X versions are you using?

comment:2 Changed 3 years ago by knan

BTW, your patch breaks the build on linux, so it's not obviously correct...

cd plugins/javalib && javac -g -source 1.5 -target 1.5 .org/munin/plugin/jmx/ThreadsPeak.java
javac: file not found: .org/munin/plugin/jmx/ThreadsPeak.java
Usage: javac <options> <source files>
use -help for a list of possible options
make: *** [plugins/javalib/org/munin/plugin/jmx/ThreadsPeak.class] Error 2
Note: See TracTickets for help on using tickets.