pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/53388: p5-WWW-Curl-4.17nb9 .. Easy.pm doesn't export CURLOPT symbols



The following reply was made to PR pkg/53388; it has been noted by GNATS.

From: Leonardo Taccari <leot%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/53388: p5-WWW-Curl-4.17nb9 .. Easy.pm doesn't export CURLOPT symbols
Date: Fri, 22 Jun 2018 10:02:47 +0200

 Hello Graham,
 
 grahjenk%hotmail.com@localhost writes:
 > [...]
 > >Description:
 > CURLOPT options are not exported in Easy.pm, so that programs which use =
 such options give errors like:
 >   Bareword "CURLOPT_URL" not allowed while "strict subs" in use
 > >How-To-Repeat:
 > Simple program:
 > --
 > #!/usr/bin/env perl
 > use strict;
 > use warnings;
 > use WWW::Curl::Easy;
 >
 > sub get {                       # Usage: get($url)
 >   my ($string,$handle);
 >   open($handle,'>',\$string);
 >   my $curl=3Dnew WWW::Curl::Easy;
 >   $curl->setopt(CURLOPT_TIMEOUT,30);
 >   $curl->setopt(CURLOPT_URL,shift);
 >   $curl->setopt(CURLOPT_FILE,$handle);
 >   my $ret=3D$curl->perform();
 >   return $string
 > }
 >
 > if ( defined(my $Address=3Dget("http://v4.ident.me";) ) ) {
 >   print "Got $Address \n"
 > } else {
 >   print "Failed!\n"
 > }
 >
 >
 > >Fix:
 > Update p5-WWW-Curl and test.
 >
 
 I have tried to also dig the commits upstream but if I'm not missing
 something I think that there isn't any possible patch to backport
 (I have tried to backport commit `bbc69bab79011f7fb40402862adfd08ec220cfa7=
 '
 but does not seem to help).
 
 Can you please fill a bug upstream? (I think that it is not a pkgsrc
 bugs but a WWW::Curl one unfortunately, but please correct me if I'm
 wrong!)
 
 
 Thank you!
 


Home | Main Index | Thread Index | Old Index