cups-1.1 defined CUPS_ADD_DEVICE and CUPS_DELETE_DEVICE in ipp.h; cups-1.2 removes them from ipp.h as deprecated, and AFAICT no longer does anything useful when it receives these commands. Net-CUPS wraps all of the ipp wire protocol, including useless parts of it like CUPS_{ADD|DELETE}_DEVICE. Therefore, when trying to emerge Net-CUPS on a cups-1.2 system, one gets # emerge Net-CUPS [...] In file included from Protocol.xs:2: /usr/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:163:1: warning: this is the location of the previous definition In file included from Protocol.xs:11: Protocol_constant_c.inc: In function
cups-1.1 defined CUPS_ADD_DEVICE and CUPS_DELETE_DEVICE in ipp.h; cups-1.2 removes them from ipp.h as deprecated, and AFAICT no longer does anything useful when it receives these commands. Net-CUPS wraps all of the ipp wire protocol, including useless parts of it like CUPS_{ADD|DELETE}_DEVICE. Therefore, when trying to emerge Net-CUPS on a cups-1.2 system, one gets # emerge Net-CUPS [...] In file included from Protocol.xs:2: /usr/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:163:1: warning: this is the location of the previous definition In file included from Protocol.xs:11: Protocol_constant_c.inc: In function constant_15: Protocol_constant_c.inc:1102: error: CUPS_ADD_DEVICE undeclared (first use in this function) Protocol_constant_c.inc:1102: error: (Each undeclared identifier is reported only once Protocol_constant_c.inc:1102: error: for each function it appears in.) Protocol_constant_c.inc: In function constant_18: Protocol_constant_c.inc:1712: error: CUPS_DELETE_DEVICE undeclared (first use in this function) Protocol.xs: In function XS_Net__CUPS__Protocol_ippTimeToDate: Protocol.xs:53: warning: assignment discards qualifiers from pointer target type make[1]: *** [Protocol.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/Net-CUPS-0.41/work/Net-CUPS-0.41/Protocol' make: *** [subdirs] Error 2 !!! ERROR: dev-perl/Net-CUPS-0.41 failed.
Created attachment 93630 [details, diff] Net-CUPS-0.41-CUPS_FOO_DEVICE.patch Patch to remove CUPS_ADD_DEVICE and CUPS_DELETE_DEVICE from Net-CUPS
Created attachment 93631 [details] Net-CUPS-0.41-r1.ebuild ebuild to use the patch
Did you send your patch upstream (to the original author of the Net-CUPS module)?
OK, I sent an email to Dave Hageman (listed as the author on cpan).
if he doesn't respond to email, tossing it on rt.cpan.org would be nice (that way other folks with the same problem can find it). wow, listen to us push upstream :)
dhageman responded, said he will be releasing an updated version sometime next week. btw, are we (the non-@gentoo.org bugreporters) generally expected to contact upstream? I thought that generally users are supposed to report on gentoo bugzilla, and then the gentoo devs inform upstream if it's relevant. Or does the perl herd work differently?
Depends, actually. In this case, I think ian asked if you would since you wrote the patch (credit where credit is due and all that jazz).
In cvs (0.41-r1)