Le vendredi 22 août 2008 à 13:48 +0200, Josselin Mouette a écrit :
> Here is a patch fixing most of the PPDs to pass the cups sanity checks.
> 
> Most of the changes come from real mistakes from the people who wrote
> them.

After discussing with the release team, this makes quite a big change
for lenny, and although I’m sure the patch fixes a lot of issues (and
should probably be forwarded upstream), it is hard to guarantee it does
not break anything.

I’m therefore attaching a much simpler patch. It only fixes the most
common mistake, but it is fortunately the only one that makes cups
completely fail to handle the PPD.

Please get a fixed version in unstable ASAP so that we can have it for
lenny; I can do a NMU if you want.

Thanks,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.
diff -u foomatic-db-20080211/debian/changelog foomatic-db-20080211/debian/changelog
--- foomatic-db-20080211/debian/changelog
+++ foomatic-db-20080211/debian/changelog
@@ -1,3 +1,11 @@
+foomatic-db (20080211-2.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Makefile.in: after installation, fix a common mistake in the .ppd 
+    files that makes cups fail to use them.
+
+ -- Josselin Mouette <[EMAIL PROTECTED]>  Wed, 27 Aug 2008 23:14:30 +0200
+
 foomatic-db (20080211-2) unstable; urgency=low
 
   * Fix conflicts for openprinting-ppds (Closes: #470148, #470120).
only in patch2:
unchanged:
--- foomatic-db-20080211.orig/Makefile.in
+++ foomatic-db-20080211/Makefile.in
@@ -74,6 +74,8 @@
 	cp db/source/opt/*.xml $(DESTDIR)$(LIBDIR)/db/source/opt
 	( cd db/source && tar cf - --exclude=.svn PPD ) | \
 	  ( cd $(DESTDIR)$(LIBDIR)/db/source && tar xf -)
+        # Fix a common error in PPDs that makes cups choke
+	find $(DESTDIR)$(LIBDIR)/db/source/PPD -name "*.ppd" -exec sed -i 's/^\*CloseUI /*CloseUI: /' "{}" \;
 	if test $(GZIP) != GZIP_NOT_FOUND -a $(GZIP_PPDS) != no ; then \
 	  GZIP='' find $(DESTDIR)$(LIBDIR)/db/source/PPD -name "*.ppd" -exec $(GZIP) "{}" \; ; \
 	fi

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to