Subject: python-pyinotify: Would be
Package: python-pyinotify
Version: 0.7.1-1
Severity: wishlist

*** Please type your report below this line ***
I am developing a university project depending on pyinotify.
Unfortunately we are unable to debug it in pydev because no -dbg
extension exists for the package, and most of the team is not really
used to debugging "manually" with pdb or pydb. Also, being a
client/server app it is more difficult than relying on an IDE.

As far as I know this is our only dependence lacking a -dbg version. We
mostly use ubuntu, but they just use the debian version ^^.

I've tried to patch the debian/rules file and debian/control (sorry for
not knowing how to properly attach a patch with reportbug), trying to
follow guidelines on https://wiki.ubuntu.com/PyDbgBuilds , unfortunately it 
overwhelms me quite a bit. I've tried to hack something to pass as a 
debian/rules by looking at other -dbg packages, but although it generates a deb 
package which is installable, when run with python2.4-dbg -c "import pyinotify" 
I get the dreaded: 

python2.4-dbg -c "import pyinotify"
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/var/lib/python-support/python2.4/pyinotify/pyinotify.py", line 47, in ?
    from inotify import inotify_init, inotify_add_watch, inotify_rm_watch
  File "/var/lib/python-support/python2.4/pyinotify/inotify.py", line 48, in ?
    from _inotify import inotify_init, inotify_add_watch, inotify_rm_watch
ImportError: /var/lib/python-support/python2.4/pyinotify/_inotify.so: undefined 
symbol: Py_InitModule4

which shows something is not working. 


My debian rules, as output by diff -u (the debian/control is trivial): 

--- ../pyinotify-0.7.1-orig/debian/rules        2008-03-14 23:44:58.000000000 
+0100
+++ debian/rules        2008-03-14 23:54:44.000000000 +0100
@@ -8,6 +8,7 @@
 # List of python versions this package will be compiled for.
 # This list has to match the package list in debian/control.
 PYVERS = $(shell pyversions -r)
+CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
 
 configure: configure-stamp
 configure-stamp: patch
@@ -15,6 +16,9 @@
        for python in $(PYVERS); do \
            "$${python}" setup.py config; \
        done
+       for python in $(PYVERS); do \
+               "$${python-dbg} setup.py config; \
+       done
        touch $@
 
 build:
@@ -45,6 +49,13 @@
            $$python setup.py build --force; \
            $$python setup.py install --root=$(CURDIR)/debian/python-pyinotify; 
\
        done
+       for python in $(PYVERS); do \
+               $${python-dbg} setup.py build --force; \
+               $${python-dbg} setup.py install 
--root=$(CURDIR)/debian/python-pyinotify-dbg; \
+       done
+       find debian/python-*-dbg ! -type d ! -name '*.so' | xargs rm -f 
+       find debian/python-*-dbg -depth -empty -exec rmdir {} \;
+
 
 # Installing documentation in html/ subdirectory.
        cp -R doc html
@@ -57,7 +68,7 @@
        dh_installexamples -i -Xautopath.py
        dh_installchangelogs -i ChangeLog
        dh_link -i
-       dh_strip -i
+       dh_strip -i --dbg-package=python-pyinotify-dbg
        dh_compress -i -Xexamples
        dh_fixperms -i
        dh_pysupport -i
@@ -74,7 +85,7 @@
        dh_installdocs -a
        dh_installchangelogs -a ChangeLog
        dh_link -a
-       dh_strip -a
+       dh_strip -a --dbg-package=python-pyinotify-dbg
        dh_compress -a
        dh_fixperms -a
        dh_pysupport -a



Any help would be appreciated to fix it to be able to create a -dbg version 
myself ^^. 

(and just for the record: our project is at launchpad.net/hdlorean but it's not 
too much functional yet)... 

Thanks a lot for your time


Ezequiel Lara Gómez
[EMAIL PROTECTED]

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-pyinotify depends on:
ii  libc6                         2.7-6      GNU C Library: Shared libraries
ii  python                        2.4.4-6    An interactive high-level object-o
ii  python-support                0.7.6      automated rebuilding support for p

python-pyinotify recommends no packages.

-- no debconf information



       
---------------------------------

Enviado desde Correo Yahoo!
El buzón de correo sin límite de almacenamiento..
  

Reply via email to