I managed to solve this bug.  It is caused by dh_pyppd that fails to
find the .pdd files and does not generate the /usr/lib/cups/driver/escpr
file that is needed to install a printer.

The problem is that the ppds are in debian/tmp/... while dh_pyppd looks
for them in debian/$pkg/

The attached patch imitates dh_install that falls back to debian/tmp
if the requested file is not found in debian/$pkg.

Cheers
-- 
Enrico Tassi
>From 533d32b96fffc7f13f437257403a0f566a213e3a Mon Sep 17 00:00:00 2001
From: Enrico Tassi <gareuselesi...@debian.org>
Date: Mon, 7 Oct 2013 23:22:56 +0200
Subject: [PATCH] fallback to debian/tmp if no ppd is found

---
 debian/changelog | 7 +++++++
 debian/dh_pyppd  | 9 +++++++++
 2 files changed, 16 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 71d296c..f1f5a9d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pyppd (1.0.1-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * fallback to debian/tmp if no ppds are found in debian/$pkg 
+
+ -- Enrico Tassi <gareuselesi...@debian.org>  Mon, 07 Oct 2013 23:22:14 +0200
+
 pyppd (1.0.1-1) unstable; urgency=low
 
   * New 1.0.1 upstream release.
diff --git a/debian/dh_pyppd b/debian/dh_pyppd
index eb10b53..b38b12d 100755
--- a/debian/dh_pyppd
+++ b/debian/dh_pyppd
@@ -39,6 +39,15 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 			   }
 			  }, "$ppd_src");
 
+		# fall back to debian/tmp as dh_install does
+	        if (! compat(6) && ! $ppds_presence) {
+			$ppd_src="debian/tmp/usr/share/";
+			find(sub { if(($_ =~ m/\.ppd(\.gz)?$/) ) {
+				$ppds_presence++;
+			   }
+			}, "$ppd_src");
+		}
+
 		if( $ppds_presence ) {
 			# verbose_print("PPDs found in $ppd_src.");
 
-- 
1.8.4.rc3

Reply via email to