Homebrew, Mac OS X - Warning about the location where JARs are installed


(Pawel Krakowiak) #1

I posted about this a day or so before the old group was closed, so it kinda
drowned in all the other messages, I guess. I realize that the Homebrew
package is maintained by some other people, but at the moment I am not sure
where to post it, so here goes... When installing the ES package via
Homebrew on Mac OS X I get the following warning:

Warning: JARs were installed to "lib".
Installing JARs to "lib" can cause conflicts between packages.
For Java software, it is typically better for the formula to
install to "libexec" and then symlink or wrap binaries into "bin".
See "activemq", "jruby", etc. for examples.

It's been like that for the last couple of months.


(Lee Hambley) #2

Pawel,

What problem does this cause exactly? This is a pretty standard homebrew
warning for Java packages, owing to Java assumptions Homebrew can't really
isolate the environment, so the warning just says that.

  • Lee

(Pawel Krakowiak) #3

It doesn't seem to cause any problems. The warning says it may cause
problems. I'm no Java developer and wouldn't know, I just saw a warning
message and wanted to share it.


(Shay Banon) #4

Strange, I thought that we fixed it at one point in the formula. Anyone up
to looking at the suggested reference formulas and see if we can copy over
what they do to be a better brew citizen?

2011/9/23 Paweł Krakowiak pawel.krakowiak@gmail.com

It doesn't seem to cause any problems. The warning says it may cause
problems. I'm no Java developer and wouldn't know, I just saw a warning
message and wanted to share it.


(Karel Minarik) #5

I remember that from the time I got involved with the formula, it
already spilled the warnings. I can't see any fixes when I quickly
check out the diffs of (https://github.com/mxcl/homebrew/commits/
master/Library/Formula/elasticsearch.rb)...

I remember checking out AMQP formula to get a sense what should be
done, but it was somehow unclear. Will check it out again. Seems like
ActiveMQ is doing:

libexec.install Dir['*']

and we're doing:

prefix.install Dir['*']

Karel.

On Sep 24, 1:11 am, Shay Banon kim...@gmail.com wrote:

Strange, I thought that we fixed it at one point in the formula. Anyone up
to looking at the suggested reference formulas and see if we can copy over
what they do to be a better brew citizen?

2011/9/23 Paweł Krakowiak pawel.krakow...@gmail.com

It doesn't seem to cause any problems. The warning says it may cause
problems. I'm no Java developer and wouldn't know, I just saw a warning
message and wanted to share it.


(system) #6