when installing cassandra2, it uses openjdk 7; it installs correctly but does not work at all! The problem is /usr/local/share/cassandra/conf/cassandra-env.sh, in particular, this part of the code: jvmver=`echo "$java_ver_output" | grep 'java version' | awk -F'"' 'NR==1 {print $2}'` JVM_VERSION=${jvmver%_*} JVM_PATCH_VERSION=${jvmver#*_} if [ "$JVM_VERSION" \< "1.7" ] ; then echo "Cassandra 2.0 and later require Java 7 or later." exit 1; fi $JVM_VERSION never gets the JVM version, here's the relevant part of sh -x cassandra.env.sh: + java -version + java_ver_output='openjdk version "1.7.0_65" OpenJDK Runtime Environment (build 1.7.0_65-b17) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)' + echo 'openjdk version "1.7.0_65" OpenJDK Runtime Environment (build 1.7.0_65-b17) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)' + grep 'java version' + awk '-F"' 'NR==1 {print $2}' + jvmver='' + JVM_VERSION='' + JVM_PATCH_VERSION='' + [ '' '<' 1.7 ] + echo 'Cassandra 2.0 and later require Java 7 or later.' Cassandra 2.0 and later require Java 7 or later. + exit 1
Created attachment 146688 [details] Fixed port
admins, Please submit a proper patch. A shar is *only* used for brand new ports. After that, you only provide patches. CC'ing Kurt who committed the port, he might be interested.
(intentional repeat for Kurt) admins, Please submit a proper patch. A shar is *only* used for brand new ports. After that, you only provide patches. CC'ing Kurt who committed the port, he might be interested.
Created attachment 146808 [details] Patch for port
Can you re-do the patch somehow ? It fails to apply here: Patching file Makefile using Plan A... Hunk #1 succeeded at 2. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/databases/cassandra2/files/patch-env b/databases/cassandra2/files/patch-env |index caacf9c..252e8ec 100644 |--- a/databases/cassandra2/files/patch-env |+++ b/databases/cassandra2/files/patch-env -------------------------- File to patch: files/patch-env Patching file files/patch-env using Plan A... Hunk #1 failed at 1. 1 out of 1 hunks failed--saving rejects to files/patch-env.rej
Created attachment 146832 [details] Patch for port # patch -p1 < /tmp/cassandra2.diff Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -ruN cassandra2.orig/Makefile cassandra2/Makefile |--- cassandra2.orig/Makefile 2014-08-29 06:29:40.000000000 -0700 |+++ cassandra2/Makefile 2014-09-04 13:47:49.000000000 -0700 -------------------------- Patching file Makefile using Plan A... Hunk #1 succeeded at 2. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -ruN cassandra2.orig/files/patch-env cassandra2/files/patch-env |--- cassandra2.orig/files/patch-env 2014-08-29 00:18:10.000000000 -0700 |+++ cassandra2/files/patch-env 2014-09-04 13:49:04.000000000 -0700 -------------------------- Patching file files/patch-env using Plan A... Hunk #1 succeeded at 1. done
A commit references this bug: Author: pi Date: Fri Sep 5 03:30:39 UTC 2014 New revision: 367323 URL: http://svnweb.freebsd.org/changeset/ports/367323 Log: databases/cassandra2: fix jdk7 invocation PR: 193236 Submitted by: toshiro.biz@gmail.com Approved by: admins@perceptyx.com (maintainer) Changes: head/databases/cassandra2/Makefile head/databases/cassandra2/files/patch-env
Committed, thanks!