Bug#655696: libwww-curl-perl: missing libcurl constants ?

Niko Tyni ntyni at debian.org
Fri Jan 13 17:58:30 UTC 2012


retitle 655696 libwww-curl-perl: missing CURLAUTH_* constants
tag 655696 patch
thanks

On Fri, Jan 13, 2012 at 11:56:43AM +0200, Niko Tyni wrote:
> Package: libwww-curl-perl
> Version: 4.12-1
> Severity: important
> Tags: squeeze
> 
> On Fri, Jan 13, 2012 at 10:05:14AM +0100, David Schneider wrote:
> > hey folks
>  libwww-curl-perl seems to have a bug. it sends basic insted of ntlm
> > header despite that i have defined the option CURLAUTH_NTLM
> > libwww-curl-perl 4.12-1
> > debian: squeeze

>  Bareword "CURLAUTH_NTLM" not allowed while "strict subs" in use at t.pl line 24.

> Exporting libcurl constants to the perl side has had bugs in the
> past, and http://cpansearch.perl.org/src/SZBALINT/WWW-Curl-4.15/Changes
> indicates upstream has fixed this since, 
> 
> Indeed, it's working OK for me on Debian sid (4.15-1+b2).
> 
> I don't have the time to dig out a patch, but this does look
> like a candidate for a stable update IMO, particularly if it concerns
> other curl constants too.

Ow, I think I've looked at the curl.h "parsing" in Makefile.PL in the
past, but I didn't recall how ad-hoc it is/was. I'm surprised it keeps
working at all between libcurl releases. The joy of parsing C #defines
and enums in Perl.

4.15 is a lot better in that it doesn't pretend to know all the libcurl
constant groups by name; unfortunately the patch looks too intrusive
for a stable update.

The attached patch just adds the CURLAUTH_* constants. It seems to work
for me, but testers / eyeballs would be welcome before considering this
to the stable update process.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Include-CURLAUTH_-constants-from-libcurl.patch
Type: text/x-diff
Size: 1453 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120113/9f909747/attachment.patch>


More information about the pkg-perl-maintainers mailing list