Skip to content

Commit 929b710

Browse files
authored
cassandra: fix build (#13860)
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
1 parent 309f7af commit 929b710

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

SPECS-EXTENDED/cassandra/cassandra.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Summary: Cassandra is a highly scalable, eventually consistent, distributed, structured key-value store
55
Name: cassandra
66
Version: 4.0.10
7-
Release: 1%{?dist}
7+
Release: 2%{?dist}
88
URL: http://cassandra.apache.org/
99
License: Apache License, Version 2.0
1010
Group: Applications/System
@@ -61,7 +61,7 @@ tar -xvf %{SOURCE2}
6161
mkdir -p ~/.m2
6262
mv repository ~/.m2/
6363

64-
export JAVA_HOME="%{java_home}"
64+
export JAVA_HOME=$(find %{_libdir}/jvm -name "msopenjdk-11")
6565
export ANT_OPTS="-Xmx1024m -XX:MaxPermSize=512m"
6666
ant -v clean jar javadoc -Drelease=true -Duse.jdk11=true
6767

@@ -141,6 +141,9 @@ fi
141141
%exclude %{_var}/opt/cassandra/build/lib
142142

143143
%changelog
144+
* Thu May 22 2025 Jyoti Kanase <v-jykanase@microsoft.com> - 4.0.10-2
145+
- Update path for JAVA_HOME
146+
144147
* Tue May 30 2023 Suresh Babu Chalamalasetty <schalam@microsoft.com> 4.0.10-1
145148
- Upgrade version to 4.0.10 to address CVE-2023-30601.
146149

0 commit comments

Comments
 (0)