Salvaging python-cassandra for Stretch
Hi Sandro and others,
Sandro Tosi has left python-cassandra-driver in a bad state, which leads
me to attempt to salvage it before it's too late. No harsh feeling, this
happened to everyone of us, and we can all be busy. Though something
must be done. Indeed, python-cassandra-driver suffers from #857298,
which is an RC bug that will lead to AUTORM in 16 days. This will also
remove openstack-trove, which I would like to avoid.
As I don't want to repeat history and get a flame war started by an NMU,
I'm in advance of a possible NMU upload, sharing the debdiff with the
debian-python list. If Sandro agrees, or if there's a consensus in this
list that it's appropriate, I'll NMU. Best would be if Sandro himself
fixes the issue though.
Attached is the debdiff. As you can see, I'm attempting to use the new
system that creates -dbgsym, and transitioning to it. Of course, for
this to happen, we will need the FTP masters to approve such change in a
timely manner, and likewise with the release team unblock. If someone
believe he has a better approach, let me know, though what I did is
probably the safest way to fix #857298.
Also, does #857298 really deserves severity "grave"? Are others sharing
the view that it could be downgraded to "important"?
Cheers,
Thomas Goirand (zigo)
diff -Nru python-cassandra-driver-3.7.1/debian/changelog python-cassandra-driver-3.7.1/debian/changelog
--- python-cassandra-driver-3.7.1/debian/changelog 2017-01-08 16:28:48.000000000 +0000
+++ python-cassandra-driver-3.7.1/debian/changelog 2017-04-06 15:17:46.000000000 +0000
@@ -1,3 +1,11 @@
+python-cassandra-driver (3.7.1-2.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * python{3,}-cassandra-dbg are now transition packages to *-dbgsym
+ packages than are handled automatically (Closes: #857298).
+
+ -- Thomas Goirand <zigo@debian.org> Thu, 06 Apr 2017 15:17:46 +0000
+
python-cassandra-driver (3.7.1-2) unstable; urgency=medium
* debian/rules
diff -Nru python-cassandra-driver-3.7.1/debian/control python-cassandra-driver-3.7.1/debian/control
--- python-cassandra-driver-3.7.1/debian/control 2017-01-08 16:28:48.000000000 +0000
+++ python-cassandra-driver-3.7.1/debian/control 2017-04-06 15:17:46.000000000 +0000
@@ -32,10 +32,9 @@
Package: python-cassandra-dbg
Section: debug
Priority: extra
-Architecture: any
-Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}, python-cassandra (= ${binary:Version}),
-Suggests: python-snappy, python-lz4, python-blist
-Description: Python driver for Apache Cassandra (debug)
+Architecture: all
+Depends: ${misc:Depends}, python-cassandra-dbgsym
+Description: Python driver for Apache Cassandra (transition package)
A modern, feature-rich and highly-tunable Python client library for Apache
Cassandra (1.2+) and DataStax Enterprise (3.1+) using exclusively Cassandra's
binary protocol and Cassandra Query Language v3.
@@ -51,7 +50,7 @@
* Concurrent execution utilities
* Object mapper
.
- This package contains the debug extension for python-cassandra
+ This empty package is a transition package to the python-cassandra-dbgsym.
Package: python3-cassandra
Architecture: any
@@ -78,10 +77,9 @@
Package: python3-cassandra-dbg
Section: debug
Priority: extra
-Architecture: any
-Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}, python3-cassandra (= ${binary:Version})
-Suggests: python3-blist
-Description: Python driver for Apache Cassandra (Python 3 debug)
+Architecture: all
+Depends: ${misc:Depends}, python3-cassandra-dbgsym
+Description: Python 3 driver for Apache Cassandra (transition package)
A modern, feature-rich and highly-tunable Python client library for Apache
Cassandra (1.2+) and DataStax Enterprise (3.1+) using exclusively Cassandra's
binary protocol and Cassandra Query Language v3.
@@ -97,4 +95,4 @@
* Concurrent execution utilities
* Object mapper
.
- This package contains the debug extensions for python3-cassandra
+ This empty package is a transition package to the python3-cassandra-dbgsym.
diff -Nru python-cassandra-driver-3.7.1/debian/rules python-cassandra-driver-3.7.1/debian/rules
--- python-cassandra-driver-3.7.1/debian/rules 2017-01-08 16:28:48.000000000 +0000
+++ python-cassandra-driver-3.7.1/debian/rules 2017-04-06 15:17:46.000000000 +0000
@@ -11,17 +11,7 @@
override_dh_auto_install:
python setup.py install --install-layout=deb --root $(CURDIR)/debian/python-cassandra
- python-dbg setup.py install --install-layout=deb --root $(CURDIR)/debian/python-cassandra-dbg
python3 setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-cassandra
- python3-dbg setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-cassandra-dbg
-
- rm -rf debian/python*-dbg/usr/lib/python*/dist-packages/cassandra/numpyFlags.h
-
-override_dh_strip:
-ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
- dh_strip -ppython-cassandra --dbg-package=python-cassandra-dbg
- dh_strip -ppython3-cassandra --dbg-package=python3-cassandra-dbg
-endif
override_dh_installdocs:
dh_installdocs README.rst
Reply to: