Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143039 - dev-perl/Net-CUPS-0.41 doesn't compile with cups-1.2
Summary: dev-perl/Net-CUPS-0.41 doesn't compile with cups-1.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-06 19:09 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2006-09-20 15:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Net-CUPS-0.41-CUPS_FOO_DEVICE.patch (Net-CUPS-0.41-CUPS_FOO_DEVICE.patch,1.98 KB, patch)
2006-08-06 19:11 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff
Net-CUPS-0.41-r1.ebuild (Net-CUPS-0.41-r1.ebuild,706 bytes, text/plain)
2006-08-06 19:13 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2006-08-06 19:09:40 UTC
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 
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2006-08-06 19:09:40 UTC
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.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2006-08-06 19:11:53 UTC
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
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2006-08-06 19:13:10 UTC
Created attachment 93631 [details]
Net-CUPS-0.41-r1.ebuild

ebuild to use the patch
Comment 4 Christian Hartmann (RETIRED) gentoo-dev 2006-08-08 14:20:08 UTC
Did you send your patch upstream (to the original author of the Net-CUPS module)?
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2006-08-08 14:55:43 UTC
OK, I sent an email to Dave Hageman (listed as the author on cpan).
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2006-08-08 18:17:19 UTC
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 :)
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2006-08-08 18:23:05 UTC
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?
Comment 8 Michael Cummings (RETIRED) gentoo-dev 2006-08-08 18:39:09 UTC
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).
Comment 9 Christian Hartmann (RETIRED) gentoo-dev 2006-09-20 15:36:01 UTC
In cvs (0.41-r1)