#1940: KDE and cups issues
-----------------------------------------+----------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  [EMAIL PROTECTED]
     Type:  task                         |      Status:  new                    
    
 Priority:  normal                       |   Milestone:  future                 
    
Component:  BOOK                         |     Version:  SVN                    
    
 Severity:  normal                       |    Keywords:  cups kde               
    
-----------------------------------------+----------------------------------
 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.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/1940>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to