You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sebastián Lacuesta (JIRA)" <ji...@apache.org> on 2013/10/07 21:07:47 UTC

[jira] [Comment Edited] (CASSANDRA-6131) JAVA_HOME on cassandra-env.sh is ignored on Debian packages

    [ https://issues.apache.org/jira/browse/CASSANDRA-6131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13788446#comment-13788446 ] 

Sebastián Lacuesta edited comment on CASSANDRA-6131 at 10/7/13 7:07 PM:
------------------------------------------------------------------------

Tried the patch with the 2.0.1 source tarball from the debian src file extracted from .dsc,
{code}
patching file debian/init
Hunk #4 FAILED at 53.
Hunk #5 FAILED at 95.
2 out of 5 hunks FAILED -- saving rejects to file debian/init.rej
{code}
content of debian/init.rej:
{code:title=debian/init.rej|borderStyle=solid}
--- debian/init
+++ debian/init
@@ -53,10 +29,6 @@
 # Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
 . /lib/lsb/init-functions
 
-# If JNA is installed, add it to EXTRA_CLASSPATH
-#
-EXTRA_CLASSPATH="/usr/share/java/jna.jar:$EXTRA_CLASSPATH"
-
 #
 # Function that returns 0 if process is running, or nonzero if not.
 #
@@ -95,7 +67,7 @@
     [ -e `dirname "$PIDFILE"` ] || \
         install -d -ocassandra -gcassandra -m750 `dirname $PIDFILE`
 
-    export EXTRA_CLASSPATH
+
 
     start-stop-daemon -S -c cassandra -a /usr/sbin/cassandra -q -p "$PIDFILE" -t >/dev/null || return 1
{code}


was (Author: sebastianlacuesta):
Tried the patch with the 2.0.1 source tarball from the debian src file extracted from .dsc,
patching file debian/init
Hunk #4 FAILED at 53.
Hunk #5 FAILED at 95.
2 out of 5 hunks FAILED -- saving rejects to file debian/init.rej

content of debian/init.rej:
--- debian/init
+++ debian/init
@@ -53,10 +29,6 @@
 # Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
 . /lib/lsb/init-functions
 
-# If JNA is installed, add it to EXTRA_CLASSPATH
-#
-EXTRA_CLASSPATH="/usr/share/java/jna.jar:$EXTRA_CLASSPATH"
-
 #
 # Function that returns 0 if process is running, or nonzero if not.
 #
@@ -95,7 +67,7 @@
     [ -e `dirname "$PIDFILE"` ] || \
         install -d -ocassandra -gcassandra -m750 `dirname $PIDFILE`
 
-    export EXTRA_CLASSPATH
+
 
     start-stop-daemon -S -c cassandra -a /usr/sbin/cassandra -q -p "$PIDFILE" -t >/dev/null || return 1


> JAVA_HOME on cassandra-env.sh is ignored on Debian packages
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-6131
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6131
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>         Environment: I've just got upgraded to 2.0.1 package from the apache repositories using apt. I had the JAVA_HOME environment variable set in /etc/cassandra/cassandra-env.sh but after the upgrade it only worked by setting it on /usr/sbin/cassandra script. I can't configure java 7 system wide, only for cassandra.
> Off-toppic: Thanks for getting rid of the jsvc mess.
>            Reporter: Sebastián Lacuesta
>            Assignee: Eric Evans
>              Labels: debian
>             Fix For: 2.0.2
>
>         Attachments: 6131.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.1#6144)