Package: gamin Version: 0.1.9-2 Severity: wishlist User: [EMAIL PROTECTED] Usertags: origin-ubuntu hardy ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following: - Build a python-gamin-dbg package. - debian/patches/01_python-dbg.patch: + patch configure.in to fix PYTHON_INCLUDES macro - debian/rules: + make cdbs run autoconf (and b-d on autoconf, automake1.10) - debian/libgamin0.shlibs: change libfam shlibs to prefer libgamin0 We thought you might be interested in doing the same. Cheers, Michael -- System Information: Debian Release: lenny/sid APT prefers gutsy-updates APT policy: (500, 'gutsy-updates'), (500, 'gutsy'), (500, 'feisty') Architecture: i386 (i686) Kernel: Linux 2.6.22-14-generic (SMP w/2 CPU cores) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
diff -u gamin-0.1.9/debian/rules gamin-0.1.9/debian/rules --- gamin-0.1.9/debian/rules +++ gamin-0.1.9/debian/rules @@ -23,6 +23,15 @@ DEB_INSTALL_DOCS_ALL := DEB_INSTALL_DOCS_gamin := AUTHORS NEWS README TODO +DEB_DBG_PACKAGE_python-gamin = python-gamin-dbg + +# regenerate the autotools stuff +DEB_AUTO_UPDATE_ACLOCAL := 1.10 +DEB_AUTO_UPDATE_AUTOMAKE := 1.10 +DEB_AUTO_UPDATE_AUTOCONF := 2.61 + +.PRECIOUS: configure-stamp-% dbg-configure-stamp-% + common-binary-predeb-arch:: dh_python @@ -39,28 +48,58 @@ +dbg-configure-stamp-%: + mkdir dbg-build-$* + cd dbg-build-$* && PYTHON=`which $*-dbg` $(subst -O2,-O0,$(DEB_CONFIGURE_SCRIPT_ENV)) \ + $(DEB_CONFIGURE_SCRIPT) \ + $(DEB_CONFIGURE_NORMAL_ARGS) \ + --disable-maintainer-mode \ + $(cdbs_configure_flags) \ + $(DEB_CONFIGURE_EXTRA_FLAGS) \ + $(DEB_CONFIGURE_USER_FLAGS) + touch $@ + configure/python-gamin:: $(addprefix configure-stamp-, $(PY_VERSIONS)) +configure/python-gamin-dbg:: $(addprefix dbg-configure-stamp-, $(PY_VERSIONS)) build-stamp-%: make -C build-$* touch $@ +dbg-build-stamp-%: + make -C dbg-build-$* + touch $@ build/python-gamin:: $(addprefix build-stamp-, $(PY_VERSIONS)) +build/python-gamin-dbg:: $(addprefix dbg-build-stamp-, $(PY_VERSIONS)) install-stamp-%: make -C build-$* install DESTDIR=$(CURDIR)/debian/tmp touch $@ +dbg-install-stamp-%: + make -C dbg-build-$* install DESTDIR=$(CURDIR)/debian/python-gamin-dbg + install/python-gamin:: $(addprefix install-stamp-, $(PY_VERSIONS)) +install/python-gamin-dbg:: $(addprefix dbg-install-stamp-, $(PY_VERSIONS)) + for i in $$(find debian/python-*-dbg/usr/lib/py* -name '*.so'); do \ + b=$$(basename $$i .so); \ + mv $$i $$(dirname $$i)/$${b}_d.so; \ + done + find debian/python-*-dbg ! -type d ! -name '*_d.so' | xargs rm -f + find debian/python-*-dbg -depth -empty -exec rmdir {} \; + binary-install/python-gamin:: # force executable bit on files looking like python scripts egrep -rlZ '^#!(.*)python' debian/python-gamin/usr/lib/ | xargs -0 chmod a+x -- dh_pysupport - dh_python + +binary-predeb/python-gamin-dbg:: + rm -rf debian/python-gamin-dbg/usr/share/doc/python-gamin-dbg + ln -s python-gamin debian/python-gamin-dbg/usr/share/doc/python-gamin-dbg clean:: -rm -rf $(DEB_BUILDDIR) -rm -rf $(addprefix build-, $(PY_VERSIONS)) -rm -rf $(addprefix configure-stamp-, $(PY_VERSIONS)) -rm -rf $(addprefix build-stamp-, $(PY_VERSIONS)) - -rm -rf $(addprefix install-stamp-, $(PY_VERSIONS)) + rm -rf dbg-build* dbg-*-stamp-* diff -u gamin-0.1.9/debian/libgamin0.shlibs gamin-0.1.9/debian/libgamin0.shlibs --- gamin-0.1.9/debian/libgamin0.shlibs +++ gamin-0.1.9/debian/libgamin0.shlibs @@ -1,2 +1,2 @@ -libfam 0 libfam0 +libfam 0 libgamin0 | libfam0 libgamin-1 0 libgamin0 diff -u gamin-0.1.9/debian/control.in gamin-0.1.9/debian/control.in --- gamin-0.1.9/debian/control.in +++ gamin-0.1.9/debian/control.in @@ -3,8 +3,8 @@ Priority: optional Maintainer: Michael Banck <[EMAIL PROTECTED]> Uploaders: @GNOME_TEAM@ -Build-Depends: cdbs, debhelper( >= 5.0.37.2), libglib2.0-dev, gnome-pkg-tools, python-all-dev (>= 2.3.5-11), python-support (>= 0.3), dpkg-dev (>= 1.13.19), autotools-dev +Build-Depends: cdbs, debhelper( >= 5.0.37.2), libglib2.0-dev, gnome-pkg-tools, python-all-dev (>= 2.3.5-11), python-support (>= 0.3), dpkg-dev (>= 1.13.19), autotools-dev, python-all-dbg, automake, libtool Standards-Version: 3.7.2 Package: gamin Section: admin @@ -64,6 +65,19 @@ +Suggests: python-gamin-dbg XB-Python-Version: ${python:Versions} Description: Python binding for the gamin client library Gamin is a file and directory monitoring system defined to be a subset of the FAM (File Alteration Monitor) system. . This package contains the Python bindings for the gamin client library. + +Package: python-gamin-dbg +Priority: extra +Section: python +Architecture: any +Depends: python-gamin (= ${Source-Version}), python-dbg, ${shlibs:Depends} +Description: Python binding for the gamin client library (debug extension) + Gamin is a file and directory monitoring system defined to be a + subset of the FAM (File Alteration Monitor) system. + . + This package contains the Python bindings for the gamin client library, + built for the Python debug interpreter. diff -u gamin-0.1.9/debian/changelog gamin-0.1.9/debian/changelog only in patch2: unchanged: --- gamin-0.1.9.orig/debian/patches/01_python-dbg.patch +++ gamin-0.1.9/debian/patches/01_python-dbg.patch @@ -0,0 +1,15 @@ +diff -Nur gamin-0.1.8-2ubuntu1/configure.in gamin-0.1.8-2ubuntu1.new/configure.in +--- gamin-0.1.8-2ubuntu1/configure.in 2007-05-25 12:51:46.000000000 +0200 ++++ gamin-0.1.8-2ubuntu1.new/configure.in 2007-05-25 12:53:53.000000000 +0200 +@@ -455,7 +455,11 @@ + if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ + -d $with_python/lib/python$PYTHON_VERSION/site-packages + then ++ if $PYTHON-config --help 2>/dev/null; then ++ PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null` ++ else + PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION ++ fi + PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages + else + if test -r $prefix/include/python$PYTHON_VERSION/Python.h