You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2021/09/03 18:50:42 UTC
[cassandra] branch cassandra-2.2 updated: Add python2 location to
RPMs
This is an automated email from the ASF dual-hosted git repository.
brandonwilliams pushed a commit to branch cassandra-2.2
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/cassandra-2.2 by this push:
new 2e547df Add python2 location to RPMs
2e547df is described below
commit 2e547dfbc40e6b500db506353bced161c66f3113
Author: Mick Semb Wever <mc...@apache.org>
AuthorDate: Mon Aug 2 11:36:36 2021 +0200
Add python2 location to RPMs
Patch by Mck Semb Wever; reviewed by brandonwilliams for
CASSANDRA-16822
---
CHANGES.txt | 1 +
redhat/cassandra.spec | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/CHANGES.txt b/CHANGES.txt
index d3a26b6..a380853 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
2.2.20
+ * Add python2 location to RPMs (CASSANDRA-16822)
* CQL shell should prefer newer TLS version by default (CASSANDRA-16695)
* Fix Debian init start/stop (CASSANDRA-15770)
* Remove ant targets list-jvm-dtests and ant list-jvm-upgrade-dtests (CASSANDRA-16519)
diff --git a/redhat/cassandra.spec b/redhat/cassandra.spec
index 91115e8..1a1a42f 100644
--- a/redhat/cassandra.spec
+++ b/redhat/cassandra.spec
@@ -85,6 +85,9 @@ mkdir -p %{buildroot}/var/lib/%{username}/saved_caches
mkdir -p %{buildroot}/var/run/%{username}
mkdir -p %{buildroot}/var/log/%{username}
( cd pylib && %{__python} setup.py install --no-compile --root %{buildroot}; )
+# cqlsh before Cassandra version 4.0 still requires python2
+mkdir -p %{buildroot}/usr/lib/python2.7/site-packages
+cp -r %{buildroot}%{python_sitelib}/cqlshlib %{buildroot}/usr/lib/python2.7/site-packages/
# patches for data and log paths
patch -p1 < debian/patches/001cassandra_yaml_dirs.dpatch
@@ -158,6 +161,8 @@ exit 0
%attr(755,%{username},%{username}) /var/run/%{username}*
%{python_sitelib}/cqlshlib/
%{python_sitelib}/cassandra_pylib*.egg-info
+# cqlsh before Cassandra version 4.0 still requires python2
+/usr/lib/python2.7/site-packages/cqlshlib
%post
alternatives --install /%{_sysconfdir}/%{username}/conf %{username} /%{_sysconfdir}/%{username}/default.conf/ 0
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org