Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebump JNA with LIBFFI_TMPDIR #443

Merged
merged 5 commits into from Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/cassandra.in.sh
Expand Up @@ -99,6 +99,7 @@ JAVA_OPTS="$JAVA_OPTS:-Djava.library.path=$CASSANDRA_HOME/lib/sigar-bin"
CASSANDRA_TEMP_DIR=$SERVICE_HOME/var/data/tmp
JVM_OPTS="${JVM_OPTS} -Djava.io.tmpdir=$CASSANDRA_TEMP_DIR"
JVM_OPTS="${JVM_OPTS} -Djna.tmpdir=$CASSANDRA_TEMP_DIR"
export LIBFFI_TMPDIR="$CASSANDRA_TEMP_DIR"
wi11dey marked this conversation as resolved.
Show resolved Hide resolved

# parse the jvm options files and add them to JVM_OPTS
JVM_OPTS_FILE=$CASSANDRA_CONF/jvm${jvmoptions_variant:--clients}.options
Expand Down
2 changes: 1 addition & 1 deletion build.xml
Expand Up @@ -416,7 +416,7 @@
<exclusion groupId="hsqldb" artifactId="hsqldb"/> <!-- outdated version -->
<exclusion groupId="antlr" artifactId="antlr"/> <!-- outdated version -->
</dependency>
<dependency groupId="net.java.dev.jna" artifactId="jna" version="4.0.0"/>
<dependency groupId="net.java.dev.jna" artifactId="jna" version="5.8.0"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be at least 5.10.0 to pick up the fix java-native-access/jna#1378

Suggested change
<dependency groupId="net.java.dev.jna" artifactId="jna" version="5.8.0"/>
<dependency groupId="net.java.dev.jna" artifactId="jna" version="5.13.0"/>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


<dependency groupId="net.sourceforge.cobertura" artifactId="cobertura" version="${cobertura.version}">
<exclusion groupId="xerces" artifactId="xercesImpl"/>
Expand Down
Binary file removed lib/jna-4.0.0.jar
Binary file not shown.
Binary file added lib/jna-5.8.0.jar
Binary file not shown.
File renamed without changes.