[Pkg-zenoss-commits] r203 - in /packages/pynetsnmp/trunk/debian: changelog control libdeps/ libdeps/test.c rules

bzed-guest at users.alioth.debian.org bzed-guest at users.alioth.debian.org
Tue Jul 3 23:26:45 UTC 2007


Author: bzed-guest
Date: Tue Jul  3 23:26:45 2007
New Revision: 203

URL: http://svn.debian.org/wsvn/pkg-zenoss/?sc=1&rev=203
Log:
better version dep. handling which is not trivial as we're using ctypes :)

Added:
    packages/pynetsnmp/trunk/debian/libdeps/
    packages/pynetsnmp/trunk/debian/libdeps/test.c
Modified:
    packages/pynetsnmp/trunk/debian/changelog
    packages/pynetsnmp/trunk/debian/control
    packages/pynetsnmp/trunk/debian/rules

Modified: packages/pynetsnmp/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-zenoss/packages/pynetsnmp/trunk/debian/changelog?rev=203&op=diff
==============================================================================
--- packages/pynetsnmp/trunk/debian/changelog (original)
+++ packages/pynetsnmp/trunk/debian/changelog Tue Jul  3 23:26:45 2007
@@ -3,10 +3,15 @@
   * new upstream version
   * debian/patches:
     - removing as upstream complied with our wishes - thanks!
+  * debian/libdeps:
+    - adding a small test.c file to be able to figure out
+      the right snmp library dependency on build time
   * debian/control, debian/rules:
     - removing dpatch
+    - removing the hardcoded dep. on libsnmp10, instead
+      we build debian/libdeps/test and use dh_shlibdeps on it.
 
- -- Bernd Zeimetz <bernd at bzed.de>  Tue, 03 Jul 2007 23:25:55 +0200
+ -- Bernd Zeimetz <bernd at bzed.de>  Wed, 04 Jul 2007 01:16:24 +0200
 
 pynetsnmp (0.26-1) unstable; urgency=low
 

Modified: packages/pynetsnmp/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-zenoss/packages/pynetsnmp/trunk/debian/control?rev=203&op=diff
==============================================================================
--- packages/pynetsnmp/trunk/debian/control (original)
+++ packages/pynetsnmp/trunk/debian/control Tue Jul  3 23:26:45 2007
@@ -3,14 +3,14 @@
 Priority: optional
 Maintainer: Zenoss Packaging Team <pkg-zenoss-team at lists.alioth.debian.org>
 Uploaders: Bernd Zeimetz <bernd at bzed.de>, Stefano Zacchiroli <zack at debian.org>
-Build-Depends: cdbs, debhelper (>= 5), python, python-support (>= 0.4), libsnmp10-dev
+Build-Depends: cdbs, debhelper (>= 5), python, python-support (>= 0.4), libsnmp-dev
 XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-zenoss/packages/pynetsnmp/trunk/
 XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-zenoss/packages/pynetsnmp/trunk/
 Standards-Version: 3.7.2
 
 Package: python-pynetsnmp
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}, python-ctypes, python-twisted-core, libsnmp10
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-ctypes, python-twisted-core
 Description: Python ctypes bindings for NET-SNMP with Twisted integration
  pynetsnmp is a set of Python ctypes binding for NET-SNMP, an
  implementation of the Simple Network Management Protocol (SNMP).

Added: packages/pynetsnmp/trunk/debian/libdeps/test.c
URL: http://svn.debian.org/wsvn/pkg-zenoss/packages/pynetsnmp/trunk/debian/libdeps/test.c?rev=203&op=file
==============================================================================
--- packages/pynetsnmp/trunk/debian/libdeps/test.c (added)
+++ packages/pynetsnmp/trunk/debian/libdeps/test.c Tue Jul  3 23:26:45 2007
@@ -1,0 +1,3 @@
+#include <net-snmp/version.h>
+
+int main(){}

Modified: packages/pynetsnmp/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-zenoss/packages/pynetsnmp/trunk/debian/rules?rev=203&op=diff
==============================================================================
--- packages/pynetsnmp/trunk/debian/rules (original)
+++ packages/pynetsnmp/trunk/debian/rules Tue Jul  3 23:26:45 2007
@@ -5,5 +5,14 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
+LIBDEPSTESTDIR = $(CURDIR)/debian/libdeps
+DEB_DH_SHLIBDEPS_ARGS = -P debian/libdeps
+
+build/python-pynetsnmp::
+	gcc -o $(LIBDEPSTESTDIR)/test -lnetsnmp $(LIBDEPSTESTDIR)/test.c
+
 cleanbuilddir/python-pynetsnmp::
 	find . -name \*.pyc -exec rm {} \;
+
+clean::
+	rm -f $(LIBDEPSTESTDIR)/test




More information about the Pkg-zenoss-commits mailing list