﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1940	KDE and cups issues	bdubbs@…	bdubbs@…	"Cups 1.2 forces a patch requirement for kdelibs.  We will need to apply this patch to kdelibs when we add cups 1.2 to the book.  cups-1.2 has not been released yet but is at the -rc3 stage.

This is the patch:

{{{
--- ipprequest.cpp      (revision 534402)
+++ ipprequest.cpp      (working copy)
@@ -511,7 +511,11 @@
       cupsFreeOptions(n, options);

       // find an remove that annoying ""document-format"" attribute
-       // (can't use IppDeleteAttribute as cups 1.0.9 doesn't have that)
+#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2
+    ipp_attribute_t *attr = ippFindAttribute(request_, ""document-format"", IPP_TAG_NAME);
+    ippDeleteAttribute(request_, attr);
+#else
+       // (can't use IppDeleteAttribute as older cups doesn't have that)
       ipp_attribute_t *attr = request_->attrs;
       while (attr)
       {
@@ -524,4 +528,5 @@
               }
               attr = attr->next;
       }
+#endif
} 
}}}

Problem and patch reported by Matthew Carson."	task	closed	normal	6.2.0	BOOK	SVN	medium	fixed	cups kde	
