Code

control, rules: Reintroduced a work around for #474087.
authorSebastian Harl <sh@tokkee.org>
Sat, 29 Aug 2009 10:27:19 +0000 (12:27 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 29 Aug 2009 10:27:19 +0000 (12:27 +0200)
Again, the openipmi .pc files are broken in the latest version of openipmi.
The work around provides a fixed version of OpenIPMIpthread.pc in
debian/pkgconfig and adds that path to PKG_CONFIG_PATH. Removed the version
from the libopenipmi-dev build dependency for now.

debian/changelog
debian/control
debian/rules

index d03ee2bda405ff8f36a2f5bce49bb367a07adaf7..ff295aaa41f3478d01ccccc9fa107736a34ddd2c 100644 (file)
@@ -66,6 +66,10 @@ collectd (4.7.2-1) unstable; urgency=low
   * debian/control, debian/rules:
     - No not limit the libvirt plugin to amd64, i386, powerpc - libvirt-dev
       seems to be available on all architectures now.
+    - Reintroduced a work around for #474087 (broken openipmi .pc files) by
+      providing a fixed version of OpenIPMIpthread.pc in debian/pkgconfig and
+      adding that path to PKG_CONFIG_PATH. Removed the version from the
+      libopenipmi-dev build dependency for now.
   * debian/collectd.conf:
     - Set the 'apache' plugin's URL according to the default used by Debian's
       Apache; thanks to Joey Hess for reporting this (Closes: #541888).
@@ -74,7 +78,7 @@ collectd (4.7.2-1) unstable; urgency=low
       release goal to remove those files (for details see
       <http://lists.debian.org/debian-devel/2009/08/msg00783.html>).
 
- -- Sebastian Harl <tokkee@debian.org>  Sat, 29 Aug 2009 09:42:52 +0200
+ -- Sebastian Harl <tokkee@debian.org>  Sat, 29 Aug 2009 12:25:40 +0200
 
 collectd (4.6.3-1) unstable; urgency=low
 
index 2699502413a409eda5e2a66689bb6130bc7c2afe..f21058300b3049a50b39b8fb7e4906b451afd894 100644 (file)
@@ -2,7 +2,7 @@ Source: collectd
 Section: utils
 Priority: optional
 Maintainer: Sebastian Harl <tokkee@debian.org>
-Build-Depends: debhelper (>= 5), dpkg-dev (>= 1.14.10), po-debconf, dpatch, bison, flex, autotools-dev, pkg-config, linux-libc-dev (>= 2.6.25-4) | linux-libc-dev (<< 2.6.25-1), libcurl4-gnutls-dev (>= 7.18.2-5) | libcurl4-gnutls-dev (<= 7.18.2-1) | libcurl3-gnutls-dev, libmysqlclient-dev, librrd-dev | librrd2-dev, libsensors-dev, liboping-dev (>= 0.3.3), libpcap0.8-dev | libpcap-dev, iptables-dev (>= 1.4.3.2-2), libupsclient1-dev, libperl-dev, iproute-dev [!alpha !amd64 !hppa !ia64 !ppc64 !mips !mipsel], libsnmp-dev | libsnmp9-dev, libvirt-dev (>= 0.4.0-6), libxml2-dev, libhal-dev, libopenipmi-dev (>= 2.0.14-1~), libglib2.0-dev, libnotify-dev, libesmtp-dev, libpq-dev, libdbi0-dev, libmemcached-dev, openjdk-6-jdk, libganglia1-dev (>= 3), libgcrypt11-dev
+Build-Depends: debhelper (>= 5), dpkg-dev (>= 1.14.10), po-debconf, dpatch, bison, flex, autotools-dev, pkg-config, linux-libc-dev (>= 2.6.25-4) | linux-libc-dev (<< 2.6.25-1), libcurl4-gnutls-dev (>= 7.18.2-5) | libcurl4-gnutls-dev (<= 7.18.2-1) | libcurl3-gnutls-dev, libmysqlclient-dev, librrd-dev | librrd2-dev, libsensors-dev, liboping-dev (>= 0.3.3), libpcap0.8-dev | libpcap-dev, iptables-dev (>= 1.4.3.2-2), libupsclient1-dev, libperl-dev, iproute-dev [!alpha !amd64 !hppa !ia64 !ppc64 !mips !mipsel], libsnmp-dev | libsnmp9-dev, libvirt-dev (>= 0.4.0-6), libxml2-dev, libhal-dev, libopenipmi-dev, libglib2.0-dev, libnotify-dev, libesmtp-dev, libpq-dev, libdbi0-dev, libmemcached-dev, openjdk-6-jdk, libganglia1-dev (>= 3), libgcrypt11-dev
 Build-Conflicts: libpthread-dev
 Standards-Version: 3.8.3
 Homepage: http://collectd.org/
index f7e3c017121389968f3688feb68f3f1f2037bedd..4e0454db899933ac63eacb513b31eec803bbc7b3 100755 (executable)
@@ -78,6 +78,14 @@ endif
 
 config.status: configure $(DPATCH_STAMPFN)
        dh_testdir
+       
+       # This is a work-around for #474087 (broken openipmi .pc files).
+       mkdir debian/pkgconfig
+       sed -re 's/^(Requires:.*) pthread(.*)$$/\1\2/' \
+               /usr/lib/pkgconfig/OpenIPMIpthread.pc \
+               > debian/pkgconfig/OpenIPMIpthread.pc
+       
+       PKG_CONFIG_PATH="$(CURDIR)/debian/pkgconfig:$$PKG_CONFIG_PATH" \
        ./configure $(confflags) CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
                JAVAC="$(JAVAC)" JAVA_CPPFLAGS="$(JAVA_CPPFLAGS)" \
                JAVA_LDFLAGS="$(JAVA_LDFLAGS)"
@@ -102,6 +110,8 @@ clean: unpatch
        rm -f debian/README.Debian.plugins
        rm -f src/*.1 src/*.5
        
+       rm -rf debian/pkgconfig
+       
        dh_clean
        debconf-updatepo