Source: ensymble
Version: 0.28-1.1
Severity: important
User: debian-pyt...@lists.debian.org
Usertags: python2.7
Tags: patch
I rebuilt ensymble against python-defaults 2.7.2-1 (currently in
experimental). The resulting binary package was subtly broken. Its
dependencies looked like this:
Depends: python (>= 2.6), openssl
However, the package didn't work with python 2.6.6-14 from unstable
(even though it satisfies the dependency):
$ ensymble --help
Traceback (most recent call last):
File "/usr/bin/ensymble", line 5, in <module>
if imp.get_magic()!='\x03\xf3\r\n':raise RuntimeError,s
RuntimeError: requires python 2.7.2rc1 or bytecode compatible
The attached patch is an attempt to make the packaging a bit more,
*cough*, conventional.
--
Jakub Wilk
--- ensymble-0.28/debian/rules
+++ ensymble-0.28/debian/rules
@@ -9,6 +9,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+python_modules = $(shell while read line; do echo $$line; done < install.sh | sed -n -e 's/.*-b cmdmain//p')
+
ensymble.1: debian/ensymble.sgml
docbook-to-man $< > $@
@@ -43,10 +45,7 @@
dh_testroot
dh_clean -k
dh_installdirs
-
- mkdir -p $(CURDIR)/debian/ensymble/usr/bin
- ./install.sh $(CURDIR)/debian/ensymble/usr/bin
- mv $(CURDIR)/debian/ensymble/usr/bin/ensymble.py $(CURDIR)/debian/ensymble/usr/bin/ensymble
+ dh_install $(python_modules) /usr/share/ensymble/
# Build architecture-independent files here.
binary-indep: build install
@@ -55,7 +54,6 @@
dh_installchangelogs
dh_installdocs
# dh_installexamples
-# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
diff -u ensymble-0.28/debian/control ensymble-0.28/debian/control
--- ensymble-0.28/debian/control
+++ ensymble-0.28/debian/control
@@ -4,7 +4,7 @@
Maintainer: Dominic Hargreaves <d...@earth.li>
Build-Depends: debhelper (>= 5), docbook-to-man, python-central
Standards-Version: 3.8.0
-XS-Python-Version: 2.6
+XS-Python-Version: all
Homepage: http://code.google.com/p/ensymble/
Vcs-Browser: http://code.google.com/p/ensymble/source/browse/
Vcs-Svn: http://ensymble.googlecode.com/svn/trunk/
only in patch2:
unchanged:
--- ensymble-0.28.orig/debian/ensymble.links
+++ ensymble-0.28/debian/ensymble.links
@@ -0,0 +1 @@
+/usr/share/ensymble/cmdmain.py /usr/bin/ensymble