Project

General

Profile

Bug #11334

Print: CUPS deprecation warnings

Added by Roman Lebedev over 2 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
General
Target version:
-
Start date:
11/25/2016
Due date:
% Done:

0%

Estimated time:
Affected Version:
git master branch
System:
Mac OS X
bitness:
64-bit
hardware architecture:
amd64/x86

Description

So far we've see this only on OSX, is this specific to that platform, or not i do not know.

https://www.cups.org/doc/api-ppd.html says:

PPD API (DEPRECATED)
The PPD API is deprecated starting in CUPS 1.6/macOS 10.8. Please use the new Job Ticket APIs in the CUPS API documentation. These functions will be removed in a future release of CUPS.

https://travis-ci.org/darktable-org/darktable/jobs/178800558#L1197-L1269

[223/578] /usr/local/bin/gcc-6  -DGDK_DISABLE_DEPRECATED -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_14 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_MIN_REQUIRED -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DHAVE_BUILTIN_CPU_SUPPORTS -DHAVE_CONFIG_H -DHAVE_GPHOTO2 -DHAVE_GPHOTO_25_OR_NEWER -DHAVE_GRAPHICSMAGICK -DHAVE_HTTP_SERVER -DHAVE_KWALLET -DHAVE_LENSFUN -DHAVE_LIBSECRET -DHAVE_MAP -DHAVE_OPENCL -DHAVE_OPENEXR -DHAVE_OPENJPEG -DHAVE_OSMGPSMAP_110_OR_NEWER -DHAVE_PRINT -DMAC_INTEGRATION -DOS_OBJECT_USE_OBJC=0 -DUSE_LUA -D_XOPEN_SOURCE=700 -D__GDK_KEYSYMS_COMPAT_H__ -Dlib_darktable_EXPORTS -I../src -I../src/external -isystem /usr/local/include/glib-2.0 -isystem /usr/local/include/../lib/glib-2.0/include -isystem /usr/local/Cellar/gtk+3/3.22.4/include/gtk-3.0 -isystem /usr/local/Cellar/glib/2.50.2/include/gio-unix-2.0 -isystem /usr/local/Cellar/cairo/1.14.6_1/include/cairo -isystem /usr/local/Cellar/libepoxy/1.3.1/include -isystem /usr/local/Cellar/pango/1.40.3/include/pango-1.0 -isystem /usr/local/Cellar/harfbuzz/1.3.3_1/include/harfbuzz -isystem /usr/local/Cellar/atk/2.22.0/include/atk-1.0 -isystem /usr/local/Cellar/pixman/0.34.0/include/pixman-1 -isystem /usr/local/Cellar/fontconfig/2.12.1_2/include -isystem /usr/local/opt/freetype/include/freetype2 -isystem /usr/local/Cellar/libpng/1.6.26/include/libpng16 -isystem /usr/local/Cellar/gdk-pixbuf/2.36.0_2/include/gdk-pixbuf-2.0 -isystem /usr/local/Cellar/glib/2.50.2/include/glib-2.0 -isystem /usr/local/Cellar/glib/2.50.2/lib/glib-2.0/include -isystem /usr/local/opt/gettext/include -isystem /usr/local/Cellar/pcre/8.39/include -isystem /usr/include/libxml2 -isystem /usr/local/Cellar/libsoup/2.56.0/include/libsoup-2.4 -isystem /usr/local/include -isystem /usr/local/include/OpenEXR -isystem /usr/local/Cellar/lensfun/0.3.2/include/lensfun -isystem /usr/local/include/pango-1.0 -isystem /usr/local/include/librsvg-2.0 -isystem /usr/local/include/json-glib-1.0 -isystem /usr/local/Cellar/openjpeg/2.1.2/include/openjpeg-2.1 -isystem /usr/local/Cellar/libsecret/0.18.5/include/libsecret-1 -isystem /usr/local/include/gtkmacintegration -isystem /usr/local/include/GraphicsMagick -Isrc -isystem /usr/local/opt/lua/include -I../src/external/LuaAutoC -isystem /usr/local/Cellar/osm-gps-map/1.1.0/include/osmgpsmap-1.0 -pipe  -D_DARWIN_C_SOURCE -Wall -fno-strict-aliasing -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -Wold-style-declaration -Wno-error=varargs -Wframe-larger-than=32768 -Wstack-usage=32768 -Wlarger-than=524288 -std=c99 -fopenmp -pthread -mtune=generic -msse2 -g -mfpmath=sse -O2 -g -DNDEBUG -O2 -fPIC -MD -MT src/CMakeFiles/lib_darktable.dir/common/cups_print.c.o -MF src/CMakeFiles/lib_darktable.dir/common/cups_print.c.o.d -o src/CMakeFiles/lib_darktable.dir/common/cups_print.c.o   -c ../src/common/cups_print.c
../src/common/cups_print.c: In function 'dt_get_printer_info':
../src/common/cups_print.c:56:5: warning: 'cupsGetPPD' is deprecated [-Wdeprecated-declarations]
     const char *PPDFile = cupsGetPPD (printer_name);
     ^~~~~
In file included from ../src/common/cups_print.c:19:0:
/usr/include/cups/cups.h:367:20: note: declared here
 extern const char *cupsGetPPD(const char *name) _PPD_DEPRECATED;
                    ^~~~~~~~~~
../src/common/cups_print.c:59:5: warning: 'ppdOpenFile' is deprecated [-Wdeprecated-declarations]
     ppd_file_t *ppd = ppdOpenFile(PPDFile);
     ^~~~~~~~~~
In file included from ../src/common/cups_print.c:20:0:
/usr/include/cups/ppd.h:392:20: note: declared here
 extern ppd_file_t *ppdOpenFile(const char *filename) _PPD_DEPRECATED;
                    ^~~~~~~~~~~
../src/common/cups_print.c:63:7: warning: 'ppdMarkDefaults' is deprecated [-Wdeprecated-declarations]
       ppdMarkDefaults(ppd);
       ^~~~~~~~~~~~~~~
In file included from ../src/common/cups_print.c:20:0:
/usr/include/cups/ppd.h:387:14: note: declared here
 extern void  ppdMarkDefaults(ppd_file_t *ppd) _PPD_DEPRECATED;
              ^~~~~~~~~~~~~~~
../src/common/cups_print.c:64:7: warning: 'cupsMarkOptions' is deprecated [-Wdeprecated-declarations]
       cupsMarkOptions(ppd, dest->num_options, dest->options);
       ^~~~~~~~~~~~~~~
In file included from ../src/common/cups_print.c:20:0:
/usr/include/cups/ppd.h:365:13: note: declared here
 extern int  cupsMarkOptions(ppd_file_t *ppd, int num_options,
             ^~~~~~~~~~~~~~~
../src/common/cups_print.c:68:7: warning: 'ppdFindAttr' is deprecated [-Wdeprecated-declarations]
       ppd_attr_t *attr = ppdFindAttr(ppd, "HWMargins", NULL);
       ^~~~~~~~~~
In file included from ../src/common/cups_print.c:20:0:
/usr/include/cups/ppd.h:402:20: note: declared here
 extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
                    ^~~~~~~~~~~
../src/common/cups_print.c:84:7: warning: 'ppdFindAttr' is deprecated [-Wdeprecated-declarations]
       attr = ppdFindAttr(ppd, "DefaultResolution", NULL);
       ^~~~
In file included from ../src/common/cups_print.c:20:0:
/usr/include/cups/ppd.h:402:20: note: declared here
 extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
                    ^~~~~~~~~~~
../src/common/cups_print.c:101:7: warning: 'ppdClose' is deprecated [-Wdeprecated-declarations]
       ppdClose(ppd);
       ^~~~~~~~
In file included from ../src/common/cups_print.c:20:0:
/usr/include/cups/ppd.h:367:14: note: declared here
 extern void  ppdClose(ppd_file_t *ppd) _PPD_DEPRECATED;
              ^~~~~~~~
../src/common/cups_print.c: In function 'dt_get_papers':
../src/common/cups_print.c:287:3: warning: 'cupsGetPPD' is deprecated [-Wdeprecated-declarations]
   const char *PPDFile = cupsGetPPD(printer_name);
   ^~~~~
In file included from ../src/common/cups_print.c:19:0:
/usr/include/cups/cups.h:367:20: note: declared here
 extern const char *cupsGetPPD(const char *name) _PPD_DEPRECATED;
                    ^~~~~~~~~~
../src/common/cups_print.c:288:3: warning: 'ppdOpenFile' is deprecated [-Wdeprecated-declarations]
   ppd_file_t *ppd = ppdOpenFile(PPDFile);
   ^~~~~~~~~~
In file included from ../src/common/cups_print.c:20:0:
/usr/include/cups/ppd.h:392:20: note: declared here
 extern ppd_file_t *ppdOpenFile(const char *filename) _PPD_DEPRECATED;
                    ^~~~~~~~~~~
../src/common/cups_print.c:308:5: warning: 'ppdClose' is deprecated [-Wdeprecated-declarations]
     ppdClose(ppd);
     ^~~~~~~~
In file included from ../src/common/cups_print.c:20:0:
/usr/include/cups/ppd.h:367:14: note: declared here
 extern void  ppdClose(ppd_file_t *ppd) _PPD_DEPRECATED;
              ^~~~~~~~

Also available in: Atom PDF

Go to top