Bug#537581: zope.interface: FTBFS with python 2.6
Michael Bienia
geser at ubuntu.com
Sun Jul 19 15:07:11 UTC 2009
Package: zope.interface
Version: 3.5.1-2
Severity: wishlist
Tags: patch
Hello,
I tried building zope.interface in Ubuntu karmic which has already
python 2.6 as the default python version. The build failed with the
following error:
,----
| /usr/bin/make -f debian/rules post-install-python2.6
| make[2]: Entering directory `/tmp/buildd/zope.interface-3.5.1'
| install -D -m 644 src/zope/__init__.py \
| debian/python-zope.interface/usr/lib/python2.6/site-packages/zope/__init__.py
| (echo -n 'setuptools:Depends=' && van-pydeb depends --egg-info debian/python-zope.interface/usr/lib/python2.6/site-packages/zope.interface.egg-info --exclude-extra docs) >> debian/python-zope.interface.substvars
| Traceback (most recent call last):
| File "/usr/bin/van-pydeb", line 8, in <module>
| load_entry_point('van.pydeb==1.2.1', 'console_scripts', 'van-pydeb')()
| File "/usr/lib/python2.6/dist-packages/van/pydeb/__init__.py", line 35, in main
| return command(argv)
| File "/usr/lib/python2.6/dist-packages/van/pydeb/__init__.py", line 170, in _depends_or_provides
| assert os.path.exists(options.egg_info), "Does not exist: %s" % options.egg_info
| AssertionError: Does not exist: debian/python-zope.interface/usr/lib/python2.6/site-packages/zope.interface.egg-info
| make[2]: *** [post-install-python2.6] Error 1
| make[2]: Leaving directory `/tmp/buildd/zope.interface-3.5.1'
| make[1]: *** [install-python2.6] Error 2
| make[1]: Leaving directory `/tmp/buildd/zope.interface-3.5.1'
| make: *** [install] Error 2
| dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
`----
Attached is a debdiff which uses /usr/share/python/python.mk to
determine the correct libary paths for python 2.5 and python 2.6 and
bumps the needed version of python-all-dev. With this change the package
builds successfully for both python 2.5 and python 2.6.
Regards
Michael
-------------- next part --------------
diff -u zope.interface-3.5.1/debian/changelog zope.interface-3.5.1/debian/changelog
--- zope.interface-3.5.1/debian/changelog
+++ zope.interface-3.5.1/debian/changelog
@@ -1,3 +1,13 @@
+zope.interface (3.5.1-3) unstable; urgency=low
+
+ * debian/rules:
+ Use the macros from python.mk to determine the library path for python 2.5
+ and python 2.6.
+ * debian/control:
+ Bump the needed version of python-all-dev for this.
+
+ -- Michael Bienia <geser at ubuntu.com> Sun, 19 Jul 2009 16:47:04 +0200
+
zope.interface (3.5.1-2) unstable; urgency=low
* Fix maintainers/upload.
diff -u zope.interface-3.5.1/debian/rules zope.interface-3.5.1/debian/rules
--- zope.interface-3.5.1/debian/rules
+++ zope.interface-3.5.1/debian/rules
@@ -4,6 +4,7 @@
+include /usr/share/python/python.mk
post-install-python%:
install -D -m 644 src/zope/__init__.py \
- debian/$(package)/usr/lib/python$*/site-packages/zope/__init__.py
- (echo -n 'setuptools:Depends=' && van-pydeb depends --egg-info debian/$(package)/usr/lib/python$*/site-packages/$(py_package).egg-info --exclude-extra docs) >> debian/$(package).substvars
- (echo -n 'setuptools:Suggests=' && van-pydeb depends --egg-info debian/$(package)/usr/lib/python$*/site-packages/$(py_package).egg-info --extra docs) >> debian/$(package).substvars
+ debian/$(package)/$(call py_libdir,$*)/zope/__init__.py
+ (echo -n 'setuptools:Depends=' && van-pydeb depends --egg-info debian/$(package)/$(call py_libdir,$*)/$(py_package).egg-info --exclude-extra docs) >> debian/$(package).substvars
+ (echo -n 'setuptools:Suggests=' && van-pydeb depends --egg-info debian/$(package)/$(call py_libdir,$*)/$(py_package).egg-info --extra docs) >> debian/$(package).substvars
diff -u zope.interface-3.5.1/debian/control zope.interface-3.5.1/debian/control
--- zope.interface-3.5.1/debian/control
+++ zope.interface-3.5.1/debian/control
@@ -3,7 +3,7 @@
Priority: extra
Maintainer: Debian/Ubuntu Zope Team <pkg-zope-developers at lists.alioth.debian.org>
Uploaders: Brian Sutherland <brian at vanguardistas.net>, Fabio Tranchitella <kobold at debian.org>
-Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6), python-setuptools (>= 0.6b3), python-van.pydeb
+Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.5.4-1~), python-central (>= 0.5.6), python-setuptools (>= 0.6b3), python-van.pydeb
Standards-Version: 3.8.2
XS-Python-Version: all
XS-Vcs-Svn: svn://svn.debian.org/pkg-zope/zope.interface/trunk
More information about the pkg-zope-developers
mailing list