[Bug 195860] New: textproc/apache-solr specifies JAVA_VERSION=1.7+ but solr rc.d script runs only with OpenJDK 7 (includes suggested fix)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 10 21:47:25 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195860

            Bug ID: 195860
           Summary: textproc/apache-solr specifies JAVA_VERSION=1.7+ but
                    solr rc.d script runs only with OpenJDK 7 (includes
                    suggested fix)
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: paul at gromit.dlib.vt.edu
                CC: gaod at hychen.org
                CC: gaod at hychen.org
             Flags: maintainer-feedback?(gaod at hychen.org)

Created attachment 150438
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150438&action=edit
Diff to /usr/local/etc/rc.d/solr to allow Solr to run using current default
Java

The Makefile for textproc/apache-solr specifies that it works with Java 1.7+. 
This version of Solr will run with Java 1.7 or 1.8 but the startup rc.d script
"solr" hardcodes procname as /usr/local/openjdk7/bin/java.  This means the
script won't work properly if, say, OpenJDK 8 is installed.

A possible fix for this is to set procname according to the Java VM actually
run via /usr/local/bin/java, i.e.:

procname=`env JAVAVM_DRYRUN=true /usr/local/bin/java | grep JAVAVM_PROG | cut
-f 2 -d =`

See attached diff.

Cheers,

Paul.

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Maintainer CC'd

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list