Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2014 21:47:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 195860] New: textproc/apache-solr specifies JAVA_VERSION=1.7+ but solr rc.d script runs only with OpenJDK 7 (includes suggested fix)
Message-ID:  <bug-195860-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: paul@gromit.dlib.vt.edu
                CC: gaod@hychen.org
                CC: gaod@hychen.org
             Flags: maintainer-feedback?(gaod@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@FreeBSD.org> ---
Maintainer CC'd

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195860-13>