[Bug 226292] Re: python-zodb does not support python-2.5
Tim Abbott
tabbott at mit.edu
Sat Mar 28 21:09:13 UTC 2009
I modified the zodb source package to build for all python versions,
rather than just python 2.4, and the result works for me. In
particular, it fixes the problems the sagemath package has accessing its
databases. I've posted a copy at <http://web.mit.edu/tabbott/Public
/python-zodb/>.
I don't understand the problem with using python 2.5 or later with zodb
3.6. It sounds like the issue is only that upstream is not willing to
support python later than 2.4 with this version of zodb.
Since zodb has only one reverse dependency (along with a missing
dependency from sagemath because sagemath requires a newer version than
2.4), it doesn't seem likely that uploading this will result in
regressions for Jaunty.
Debdiff for my change is below (dpatch seems to not actually apply the
patches in this package, and so I just made a direct diff change to fix
the one python 2.6 incompatibility affecting the binary package it
builds. It is probably worth cleaning this up before this gets
uploaded, but it probably doesn't matter much since I expect Ubuntu to
just sync zodb the next time Debian uploads a new version.)
diff -u zodb-3.6.0/debian/control zodb-3.6.0/debian/control
--- zodb-3.6.0/debian/control
+++ zodb-3.6.0/debian/control
@@ -5,15 +5,14 @@
Uploaders: Fabio Tranchitella <kobold at debian.org>
Build-Depends: debhelper (>= 5.0.37.2), python-all-dev, python-central (>= 0.5.0), python (>= 2.3.5-7), dpatch
Build-Conflicts: python-extclass, python2.3-extclass
-Standards-Version: 3.7.3
-XS-Python-Version: 2.4
+Standards-Version: 3.8.0
+XS-Python-Version: all
-Package: python2.4-zodb
+Package: python-zodb
Architecture: any
Depends: ${python:Depends}, python-zopeinterface, ${shlibs:Depends}
Replaces: zope3
-Conflicts: zope3
+Conflicts: zope3, python2.4-zodb
-Provides: python-zodb
XB-Python-Version: ${python:Versions}
Description: set of tools for using the Zope Object Database (ZODB)
The Zope Object Database provides an object-oriented database for
diff -u zodb-3.6.0/debian/changelog zodb-3.6.0/debian/changelog
--- zodb-3.6.0/debian/changelog
+++ zodb-3.6.0/debian/changelog
@@ -1,3 +1,9 @@
+zodb (1:3.6.0-2ubuntu1) jaunty; urgency=low
+
+ * Build with python 2.5/2.6 support (LP: #226292).
+
+ -- Tim Abbott <tabbott at mit.edu> Sat, 28 Mar 2009 14:47:54 -0400
+
zodb (1:3.6.0-2) unstable; urgency=low
* debian/rules: fixed with the new binary package name. (Closes: #463259)
diff -u zodb-3.6.0/debian/rules zodb-3.6.0/debian/rules
--- zodb-3.6.0/debian/rules
+++ zodb-3.6.0/debian/rules
@@ -25,22 +25,22 @@
for python in $(PYVERS); do \
$$python setup.py clean --all; \
$$python setup.py build; \
- $$python setup.py install --root=$(CURDIR)/debian/python2.4-zodb --no-compile ; \
- mkdir -p debian/python2.4-zodb/usr/share/doc/python2.4-zodb/ ; \
- mv debian/python2.4-zodb/usr/lib/python/site-packages/zope/testing/testrunner-ex \
- debian/python2.4-zodb/usr/share/doc/python2.4-zodb/ ; \
- chmod 644 debian/python2.4-zodb/usr/lib/$$python/site-packages/ZConfig/tests/runtests.bat ; \
- chmod 755 debian/python2.4-zodb/usr/lib/$$python/site-packages/ZEO/zeoctl.py \
- debian/python2.4-zodb/usr/lib/$$python/site-packages/ZConfig/tests/runtests.py \
- debian/python2.4-zodb/usr/lib/$$python/site-packages/zdaemon/tests/nokill.py ; \
- mkdir debian/python2.4-zodb/usr/lib/$$python/site-packages/ZODB/utilities ; \
- mv debian/python2.4-zodb/usr/bin/* debian/python2.4-zodb/usr/lib/$$python/site-packages/ZODB/utilities ; \
- rmdir debian/python2.4-zodb/usr/bin ; \
+ $$python setup.py install --root=$(CURDIR)/debian/python-zodb --prefix=/usr --no-compile ; \
+ mkdir -p debian/python-zodb/usr/share/doc/python-zodb/ ; \
+ mv debian/python-zodb/usr/lib/$$python/site-packages/zope/testing/testrunner-ex \
+ debian/python-zodb/usr/share/doc/python-zodb/ ; \
+ chmod 644 debian/python-zodb/usr/lib/$$python/site-packages/ZConfig/tests/runtests.bat ; \
+ chmod 755 debian/python-zodb/usr/lib/$$python/site-packages/ZEO/zeoctl.py \
+ debian/python-zodb/usr/lib/$$python/site-packages/ZConfig/tests/runtests.py \
+ debian/python-zodb/usr/lib/$$python/site-packages/zdaemon/tests/nokill.py ; \
+ mkdir debian/python-zodb/usr/lib/$$python/site-packages/ZODB/utilities ; \
+ mv debian/python-zodb/usr/bin/* debian/python-zodb/usr/lib/$$python/site-packages/ZODB/utilities ; \
+ rmdir debian/python-zodb/usr/bin ; \
done
: # Replace all '#!' calls to python with $(PY_INTERPRETER)
: # and make them executable
- for i in `find debian/python2.4-zodb -type f`; do \
+ for i in `find debian/python-zodb -type f`; do \
sed '1s,#!.*python[^ ]*\(.*\),#! $(PY_INTERPRETER)\1,' \
$$i > $$i.temp; \
if cmp --quiet $$i $$i.temp; then \
only in patch2:
unchanged:
--- zodb-3.6.0.orig/Dependencies/ZODB-Scripts-ZODB3-3.6.0/ZODB-Scripts/zeoserverlog.py
+++ zodb-3.6.0/Dependencies/ZODB-Scripts-ZODB3-3.6.0/ZODB-Scripts/zeoserverlog.py
@@ -372,7 +372,7 @@
rs = []
ss = []
cs = []
- as = []
+ aborts = []
ts = []
cls = []
@@ -392,7 +392,7 @@
rs.append(r)
ss.append(s)
cs.append(c)
- as.append(a)
+ aborts.append(a)
ts.append(c+a)
mlast = m
r = s = c = a = 0
@@ -417,7 +417,7 @@
rs.append(r)
ss.append(s)
cs.append(c)
- as.append(a)
+ aborts.append(a)
ts.append(c+a)
if summary:
@@ -429,7 +429,7 @@
print 'Reads: \t', '\t'.join(map(str,stats( rs)))
print 'Stores: \t', '\t'.join(map(str,stats( ss)))
print 'Commits: \t', '\t'.join(map(str,stats( cs)))
- print 'Aborts: \t', '\t'.join(map(str,stats( as)))
+ print 'Aborts: \t', '\t'.join(map(str,stats( aborts)))
print 'Trans: \t', '\t'.join(map(str,stats( ts)))
def stats(s):
--
python-zodb does not support python-2.5
https://bugs.launchpad.net/bugs/226292
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list