Package: libopensync0-dev
Version: 0.18-2.2
Severity: serious
Tags: patch

        Hi,

 Between 0.18-2 and 0.18-2.2, the pkg-config files seem to have changed,
 presumably due to relibtoolizing with newer autotools, and are now
 broken:
 Variable 'datarootdir' not defined in /usr/lib/pkgconfig/opensync-1.0.pc

 This is the delta:

-configdir=${prefix}/share/opensync/defaults
+configdir=${datarootdir}/opensync/defaults

 Say hi to autoreconf at build time.  BTW, this doesn't sound very safe:
    configure: debian/rules
 ... especially if your .diff.gz patches both configure and debian/rules,
 you have no guarantee on the order of files in the patch, hence this
 might result in relibtoolizing at each build or not and creates
 surprizes for NMUers.  I suggest you either unconditionnally
 autoreconf or make it a maintainer only rule which you only run
 manually.
   For example, mipsel didn't autoreconf:
 
http://buildd.debian.org/fetch.php?&pkg=opensync&ver=0.18-2.2&arch=mipsel&stamp=1155242504&file=log&as=raw
 ... but sparc did:
 
http://buildd.debian.org/fetch.php?&pkg=opensync&ver=0.18-2.2&arch=sparc&stamp=1154939480&file=log&as=raw

 Attached patch should fix the issue for autoconf before and after 2.60,
 but bumps the build-dep nevertheless to avoid a warning.  This is an
 upstream issue as well.  I didn't run autoreconf myself to avoid
 cluttering the interdiff, but you should do so.

 One trivial way to force autoreconf is to change:
    configure: debian/rules
 in:
    configure: debian/rules force
 and add a dummy "force:" target that you need to list in .PHONY.

   Bye,

-- System Information:
Debian Release: Debian unstable (sid)
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

-- 
Loïc Minier <[EMAIL PROTECTED]>
--- opensync-0.18/debian/control
+++ opensync-0.18/debian/control
@@ -4,7 +4,7 @@
 Maintainer: Robert Collins <[EMAIL PROTECTED]>
 Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), 
  python-support (>= 0.3.9), libglib2.0-dev, libsqlite3-dev, libxml2-dev, check,
- swig, automake1.9, autoconf, libtool
+ swig, automake1.9, autoconf (>= 2.60), libtool
 Standards-Version: 3.7.2
 
 Package: libopensync0
--- opensync-0.18/debian/changelog
+++ opensync-0.18/debian/changelog
@@ -1,3 +1,11 @@
+opensync (0.18-2.3) unstable; urgency=low
+
+  * Fix *.pc files to resolve datarootdir.
+  * Build-depend on autoconf >= 2.60 to avoid warnings about a missing
+    datarootdir (should work nevertheless with older autoconf).
+
+ -- Loic Minier <[EMAIL PROTECTED]>  Fri, 15 Sep 2006 09:11:24 +0200
+
 opensync (0.18-2.2) unstable; urgency=low
 
   * Non-maintainer upload.
--- opensync-0.18.orig/opensync-1.0.pc.in
+++ opensync-0.18/opensync-1.0.pc.in
@@ -2,6 +2,7 @@
 [EMAIL PROTECTED]@
 [EMAIL PROTECTED]@
 [EMAIL PROTECTED]@
[EMAIL PROTECTED]@
 [EMAIL PROTECTED]@
 [EMAIL PROTECTED]@
 [EMAIL PROTECTED]@
--- opensync-0.18.orig/osengine-1.0.pc.in
+++ opensync-0.18/osengine-1.0.pc.in
@@ -2,9 +2,10 @@
 [EMAIL PROTECTED]@
 [EMAIL PROTECTED]@
 [EMAIL PROTECTED]@
[EMAIL PROTECTED]@
 
 Name: osengine
 Description: OpenSync sync engine
 Version: @VERSION@
 Libs: -L${libdir} -losengine
-Cflags: -I${includedir}/opensync-1.0
\ No newline at end of file
+Cflags: -I${includedir}/opensync-1.0

Reply via email to