Subject: cl-sql: not binNMU safe
From: Lior Kaplan <[email-masked]>
To: Debian Bug Tracking System <[email-masked]>
Date: Fri, 27 Jul 2007 00:32:36 +0300

Package: cl-sql
Version: 3.8.6.1-2
Severity: normal
Tags: patch

Hi Kevin,

>From your changelog:
  * debian/control: Tighten version dependencies. Convert source:Version to
    binary:Version for any-to-any dependencies. Revert changes in 3.8.6.1-1
      (closes:434358)

But no binary:Version does actually appear in your debian/control. Please
use the attached patch. 

Notice that it's also lossen the dependency on cl-sql-uffi, as it's a arch:any 
package, which can get new versions due to newer builds (version xyz -> xyz+b1).

More info at http://wiki.debian.org/binNMU

Let me know if you have questions about this patch.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-k7 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cl-sql depends on:
pn  cl-sql-base                   <none>     (no description available)

cl-sql recommends no packages.
--- /tmp/control	2007-07-26 23:13:37.000000000 +0300
+++ debian/control	2007-07-27 00:15:07.000000000 +0300
@@ -25,7 +25,7 @@
 
 Package: cl-sql-mysql
 Architecture: any
-Depends: cl-sql (= ${source:Version}), cl-sql-uffi (= ${source:Version}), ${shlibs:Depends}, libmysqlclient15-dev
+Depends: cl-sql (= ${source:Version}), cl-sql-uffi (= ${binary:Version}), ${shlibs:Depends}, libmysqlclient15-dev
 Provides: cl-sql-backend
 Description: CLSQL database backend, MySQL
  This package enables you to use the CLSQL data access package
@@ -54,7 +54,7 @@
 
 Package: cl-sql-postgresql
 Architecture: all
-Depends: cl-sql (= ${source:Version}), libpq-dev, cl-sql-uffi (= ${source:Version})
+Depends: cl-sql (= ${source:Version}), libpq-dev, cl-sql-uffi (>= ${source:Version})
 Provides: cl-sql-backend
 Description: CLSQL database backend, PostgreSQL
  This package enables you to use the CLSQL data access package
@@ -63,7 +63,7 @@
 
 Package: cl-sql-postgresql-socket
 Architecture: all
-Depends: cl-sql (= ${source:Version}), cl-md5, cl-sql-uffi (= ${source:Version}), libc6-dev
+Depends: cl-sql (= ${source:Version}), cl-md5, cl-sql-uffi (>= ${source:Version}), libc6-dev
 Provides: cl-sql-backend
 Description: CLSQL database backend, PostgreSQL
  This package enables you to use the CLSQL data access package
@@ -72,7 +72,7 @@
 
 Package: cl-sql-sqlite
 Architecture: all
-Depends: cl-sql (= ${source:Version}), libsqlite0-dev, cl-sql-uffi (= ${source:Version})
+Depends: cl-sql (= ${source:Version}), libsqlite0-dev, cl-sql-uffi (>= ${source:Version})
 Provides: cl-sql-backend
 Description: CLSQL database backend, SQLite
  This package enables you to use the CLSQL data access package
@@ -81,7 +81,7 @@
 
 Package: cl-sql-sqlite3
 Architecture: all
-Depends: cl-sql (= ${source:Version}), libsqlite3-dev, cl-sql-uffi (= ${source:Version})
+Depends: cl-sql (= ${source:Version}), libsqlite3-dev, cl-sql-uffi (>= ${source:Version})
 Provides: cl-sql-backend
 Description: CLSQL database backend, SQLite3
  This package enables you to use the CLSQL data access package
@@ -91,7 +91,7 @@
 Package: cl-sql-oracle
 Section: contrib/devel
 Architecture: all
-Depends: cl-sql (= ${source:Version}), cl-sql-uffi (= ${source:Version})
+Depends: cl-sql (= ${source:Version}), cl-sql-uffi (>= ${source:Version})
 Provides: cl-sql-backend
 Description: CLSQL database backend, Oracle
  This package enables you to use the CLSQL data access package