pycups broken with current cups (Bug #417)


Added by Tommy Boatman over 2 years ago. Updated over 1 year ago.


Status:Closed Start date:07/30/2012
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:-
Target version:-
Grimoire:Stable

Description

cupsmodule.c: In function 'cups_ppdSetConformance':
cupsmodule.c:419:3: warning: 'ppdSetConformance' is deprecated (declared at /usr/include/cups/ppd.h:414) [-Wdeprecated-declarations]
cupsmodule.c: In function 'initcups':
cupsmodule.c:845:80: error: 'CUPS_SERVER_REMOTE_PRINTERS' undeclared (first use in this function)
cupsmodule.c:845:80: note: each undeclared identifier is reported only once for each function it appears in
error: command 'gcc' failed with exit status 1
make: *** [cups.so] Error 1
Running make with 16 jobs failed. Attempt to run with a single job? [y]

python setup.py build
running build
running build_ext
building 'cups' extension
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=corei7-avx -fPIC -DPIC -pipe -DPIC -fPIC -ffast-math -funroll-loops -O3 -fPIC -DVERSION="1.9.59" -I/usr/include/python2.7 -c cupsmodule.c -o build/temp.linux-x86_64-2.7/cupsmodule.o
cupsmodule.c: In function 'cups_ppdSetConformance':
cupsmodule.c:419:3: warning: 'ppdSetConformance' is deprecated (declared at /usr/include/cups/ppd.h:414) [-Wdeprecated-declarations]
cupsmodule.c: In function 'initcups':
cupsmodule.c:845:80: error: 'CUPS_SERVER_REMOTE_PRINTERS' undeclared (first use in this function)
cupsmodule.c:845:80: note: each undeclared identifier is reported only once for each function it appears in
error: command 'gcc' failed with exit status 1
make: *** [cups.so] Error 1
! Problem Detected !
Creating compile log /var/log/sorcery/compile/pycups-1.9.59.bz2
Creating castfs debug log /var/log/sorcery/compile/pycups-1.9.59.castfs.dbglog.bz2

Spells that encountered problems:
---------------------------------
pycups (build)

-----------------------
CUPS_SERVER_REMOTE_PRINTERS has been deprecated after cups 1.5.4 (pycups throws this error on 1.6.1 and 1.6.0). git version of pycups appears to have a fix that is yet unreleased. Curtrent listed solution for most distros appears to be downgrade cups or roll the dice with developement build.

This pair of version bumps breaks the following spells:

pycups
system-config-printer
printer-applet

The following spells optionally depend on the above and thus are potentially broken depending on the choices selected in casting.

kdeadmin4 (non-optional if configure CUPS administration tool is set "y")
kdeutils4 (optional printer-applet)


Related issues

blocks Grimoire - Bug #424: [stable 0-61.3 cast failures] Master Bug New 08/05/2012

Associated revisions

Revision ce5efc79
Added by Sukneet Basuta about 2 years ago

pycups: apply patch to fix compatibility with cups 1.6 (fixes #417)
  • pycups-1.9.61-cups-1.6.patch: from upstream git, fixes pycups for cups 1.6

History

Updated by Sukneet Basuta about 2 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved

Updated by Vlad Glagolev over 1 year ago

Closing the bug.

  • Status changed from Resolved to Closed

Also available in: Atom PDF