Re: [Development] Volunteer wanted: update use of CUPS API
On Monday, 4 May 2020 00:08:54 PDT Albert Astals Cid via Development wrote: > This is https://bugreports.qt.io/browse/QTBUG-56545 > > As mentioned there a few years ago I don't think there is a CUPS way to do > stuff like "printer supports stapling" using non deprecated functions. > > I'd like to be proven wrong though Thanks for the info, Albert. I've suppressed the warning then: https://codereview.qt-project.org/c/qt/qtbase/+/299195 -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel System Software Products ___ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development
Re: [Development] Volunteer wanted: update use of CUPS API
On 04/05/2020 09.15, Lars Knoll wrote: >> On 4 May 2020, at 09:08, Albert Astals Cid via Development >> wrote: >> >> El diumenge, 3 de maig de 2020, a les 3:35:01 CEST, Thiago Macieira va >> escriure: >>> We have plenty of warnings when building the CUPS plugin to QtPrintSupport >>> about deprecated methods. See attached. >>> >>> Any volunteers to go fix this? >> >> This is https://bugreports.qt.io/browse/QTBUG-56545 >> >> As mentioned there a few years ago I don't think there is a CUPS way to do >> stuff like "printer supports stapling" using non deprecated functions. > > So CUPS deprecated API without providing any (non-deprecated) replacement? > That makes this somewhat difficult. Well, as far as I can tell, the so-called "Job Ticket API" is a replacement that does generally provide the required functionality. The problem is that many printers (even relatively new models) e.g. use PPD files with vendor-specific keywords for some funcationality and don't support the same functionality using IPP (Internet Printing Protocol) even though equivalents would exist, meaning the functionality is not available via the "new API". Some more information also in CUPS issue [1]. I'll also post a link to this discussion and QTBUG-56545 there, in case anybody from the CUPS community wants to join... As far as I know, the plan is to develop/use so-called "Printer Applications" to allow using such functionality to work with new new API without having to be done in CUPS itself, but that needs more work elsewhere and does not "just work out of the box", so it would IMHO still be a bit over-hasty to drop the use of the PPD API functions right now, breaking existing printing use cases in practice. Regards, Michael [1] https://github.com/apple/cups/issues/5271 ___ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development
Re: [Development] Volunteer wanted: update use of CUPS API
> On 4 May 2020, at 09:08, Albert Astals Cid via Development > wrote: > > El diumenge, 3 de maig de 2020, a les 3:35:01 CEST, Thiago Macieira va > escriure: >> We have plenty of warnings when building the CUPS plugin to QtPrintSupport >> about deprecated methods. See attached. >> >> Any volunteers to go fix this? > > This is https://bugreports.qt.io/browse/QTBUG-56545 > > As mentioned there a few years ago I don't think there is a CUPS way to do > stuff like "printer supports stapling" using non deprecated functions. So CUPS deprecated API without providing any (non-deprecated) replacement? That makes this somewhat difficult. > > I'd like to be proven wrong though :) > > Cheers, > Albert > > P.S: Someone should really really remove John Layt as printinting mantainer > stuff, i don't think he's been around for years. Agreed. I’ll remove him. Cheers, Lars ___ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development
Re: [Development] Volunteer wanted: update use of CUPS API
El diumenge, 3 de maig de 2020, a les 3:35:01 CEST, Thiago Macieira va escriure: > We have plenty of warnings when building the CUPS plugin to QtPrintSupport > about deprecated methods. See attached. > > Any volunteers to go fix this? This is https://bugreports.qt.io/browse/QTBUG-56545 As mentioned there a few years ago I don't think there is a CUPS way to do stuff like "printer supports stapling" using non deprecated functions. I'd like to be proven wrong though :) Cheers, Albert P.S: Someone should really really remove John Layt as printinting mantainer stuff, i don't think he's been around for years. -- Albert Astals Cid | albert.astals@kdab.com | Senior Software Engineer Klarälvdalens Datakonsult AB, a KDAB Group company Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322) KDAB - The Qt, C++ and OpenGL Experts ___ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development
Re: [Development] Volunteer wanted: update use of CUPS API
Hi! Am 02.05.2020 um 18:35 hat Thiago Macieira geschrieben: We have plenty of warnings when building the CUPS plugin to QtPrintSupport about deprecated methods. See attached. Sorry for not really replying to the original request but... Any volunteers to go fix this? ...motivation for fixing stuff or improving things in Qt has slightly suffered in recent days due to the Qt Company's disastrous communication strategy (or whatever that is). I suppose other contributors might have similar feelings towards this miserable situation. Just posted to let Qt upper management know, in case they actually want to. Nils signature.asc Description: PGP signature ___ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development
[Development] Volunteer wanted: update use of CUPS API
We have plenty of warnings when building the CUPS plugin to QtPrintSupport about deprecated methods. See attached. Any volunteers to go fix this? -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel System Software Products /home/tjmaciei/src/qt/qt5/qtbase/src/plugins/printsupport/cups/qppdprintdevice.cpp:71:35: warning: 'cupsGetPPD' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] const char *ppdFile = cupsGetPPD(m_cupsName); ^ /usr/include/cups/ppd.h:358:65: note: 'cupsGetPPD' has been explicitly marked deprecated here extern const char *cupsGetPPD(const char *name) __attribute__ ((deprecated("Use cupsCopyDestInfo and friends instead."))) __attribute__ ((visibility("default"))); ^ /home/tjmaciei/src/qt/qt5/qtbase/src/plugins/printsupport/cups/qppdprintdevice.cpp:73:25: warning: 'ppdOpenFile' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] m_ppd = ppdOpenFile(ppdFile); ^ /usr/include/cups/ppd.h:389:70: note: 'ppdOpenFile' has been explicitly marked deprecated here extern ppd_file_t *ppdOpenFile(const char *filename) __attribute__ ((deprecated("Use cupsCopyDestInfo and friends instead."))) __attribute__ ((visibility("default"))); ^ /home/tjmaciei/src/qt/qt5/qtbase/src/plugins/printsupport/cups/qppdprintdevice.cpp:77:17: warning: 'ppdMarkDefaults' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] ppdMarkDefaults(m_ppd); ^ /usr/include/cups/ppd.h:384:62: note: 'ppdMarkDefaults' has been explicitly marked deprecated here extern void ppdMarkDefaults(ppd_file_t *ppd) __attribute__ ((deprecated("Use cupsCopyDestInfo and friends instead."))) __attribute__ ((visibility("default"))); ^ /home/tjmaciei/src/qt/qt5/qtbase/src/plugins/printsupport/cups/qppdprintdevice.cpp:78:17: warning: 'cupsMarkOptions' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] cupsMarkOptions(m_ppd, m_cupsDest->num_options, m_cupsDest->options); ^ /usr/include/cups/ppd.h:362:102: note: 'cupsMarkOptions' has been explicitly marked deprecated here extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) __attribute__ ((deprecated("Use cupsCopyDestInfo and friends instead."))) __attribute__ ((visibility("default"))); ^ /home/tjmaciei/src/qt/qt5/qtbase/src/plugins/printsupport/cups/qppdprintdevice.cpp:79:17: warning: 'ppdLocalize' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] ppdLocalize(m_ppd); ^ /usr/include/cups/ppd.h:434:57: note: 'ppdLocalize' has been explicitly marked deprecated here extern int ppdLocalize(ppd_file_t *ppd) __attribute__ ((deprecated("Use cupsCopyDestInfo and friends instead."))) __attribute__ ((visibility("default"))); ^ /home/tjmaciei/src/qt/qt5/qtbase/src/plugins/printsupport/cups/qppdprintdevice.cpp:109:9: warning: 'ppdClose' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] ppdClose(m_ppd); ^ /usr/include/cups/ppd.h:364:55: note: 'ppdClose' has been explicitly marked deprecated here extern void ppdClose(ppd_file_t *ppd) __attribute__ ((deprecated("Use cupsCopyDestInfo and friends instead."))) __attribute__ ((visibility("default"))); ^ /home/tjmaciei/src/qt/qt5/qtbase/src/plugins/printsupport/cups/qppdprintdevice.cpp:149:31: warning: 'ppdFindOption' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] ppd_option_t *pageSizes = ppdFindOption(m_ppd, "PageSize"); ^ /usr/include/cups/ppd.h:381:35: note: 'ppdFindOption' has been explicitly marked deprecated here __attribute__ ((deprecated("Use cupsCopyDestInfo and friends instead."))) __attribute__ ((visibility("default"))); ^ /home/tjmaciei/src/qt/qt5/qtbase/src/plugins/printsupport/cups/qppdprintdevice.cpp:152:41: warning: 'ppdPageSize' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] const ppd_size_t *ppdSize = ppdPageSize(m_ppd, pageSizes->choices[i].choice); ^ /usr/include/cups/ppd.h:393:33: note: 'ppdPageSize' has been explicitly marked deprecated here __attribute__ ((deprecated("Use cupsCopyDestInfo and friends instead."))) __attribute__ ((visibili