Package Details: perl-http-proxy 0.304-1

Git Clone URL: https://aur.archlinux.org/perl-http-proxy.git (read-only, click to copy)
Package Base: perl-http-proxy
Description: HTTP proxy
Upstream URL: http://search.cpan.org/dist/HTTP-Proxy
Licenses: GPL, PerlArtistic
Submitter: sputnick
Maintainer: sputnick
Last Packager: sputnick
Votes: 3
Popularity: 0.000000
First Submitted: 2010-04-03 23:11
Last Updated: 2017-05-25 10:09

Latest Comments

neowinx commented on 2020-02-03 15:40

As @rdoursenaud pointed out, the PKGBUILD needs to contain the patched version or the build doesn't work:

PKGBUILD:

# Maintener: sputnick <gilles DOT quenot AT gmail DOT com>
# Generator  : CPANPLUS::Dist::Arch 0.18
pkgname='perl-http-proxy'
pkgver='0.304'
pkgrel='1'
pkgdesc="HTTP proxy"
arch=('i686' 'x86_64')
license=('PerlArtistic' 'GPL')
makedepends=('perl-libwww' 'perl-test-simple')
url='http://search.cpan.org/dist/HTTP-Proxy'
source=("http://mirror.ibcp.fr/pub/CPAN/authors/id/B/BO/BOOK/HTTP-Proxy-${pkgver}.tar.gz" "https://rt.cpan.org/Public/Ticket/Attachment/1705481/916222/HTTP-Proxy-0.304-Support-IPv6.patch")
md5sums=('09ac64c5f67b7d8baff4ea135d74af48'
         'f1289730e04721c7184ad17fc1c938d9')
_dist_dir="HTTP-Proxy-${pkgver}"

prepare() {
  cd "$srcdir/${_dist_dir}"
  patch --forward --strip=1 --input="${srcdir}/HTTP-Proxy-0.304-Support-IPv6.patch"
}

build() {
  export PERL_MM_USE_DEFAULT=1 export PERL_AUTOINSTALL=--skipdeps
  { cd "$_dist_dir" &&
    /usr/bin/perl Makefile.PL INSTALLDIRS=vendor &&
    make &&
    make test
  } || return 1
}

package() {
    cd "$_dist_dir"
    find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
    make DESTDIR="$pkgdir" install
}

rdoursenaud commented on 2019-05-22 12:42

The relevant patch has been posted there: https://rt.cpan.org/Public/Bug/Display.html?id=120275

It's the same that is applied by Debian.

Please add it to the package.

Thanks.

andreagi commented on 2019-03-03 09:37

There is an issue on the dependency https://www.archlinux.org/packages/extra/any/perl-libwww/ that prevents this package to successfully complete the test where the proxy is an IPv6 address. There are two different issues open on the libwww-perl tracker, see:

https://github.com/libwww-perl/libwww-perl/issues/148

https://github.com/libwww-perl/libwww-perl/issues/237

both the patches correct the file:

/usr/share/perl5/vendor_perl/LWP/UserAgent.pm

this line:

Carp::croak("Bad http proxy specification '$url'") if $url =~ /^https?:/ && $url !~ m,^https?://\w,;

with either:

Carp::croak("Bad http proxy specification '$url'") if $url =~ /^https?:/ && $url !~ m,^https?://(\w|[),;

or

Carp::croak("Bad http proxy specification '$url'") if $url =~ /^https?:/ && $url !~ m,^https?://[\w[],;

alessiotomelleri commented on 2018-09-24 08:54

Hi,

problem still there...

t/20dummy.t ............... Bad http proxy specification .... line 80

@jcorthoefer if your patch works, could you upload it or simply show it ?!

thx in advance to everyone could help here. Alessio

sputnick commented on 2018-04-02 16:27

Latest commit b8065e8 on 16 Jun 2015 https://github.com/book/HTTP-Proxy

sputnick commented on 2018-04-02 16:25

If test fails, it's an upstream issue, not related to aur

astroty commented on 2018-04-02 14:44

Test 20dummy.t is still failing with the error:

t/20dummy.t ............... Bad http proxy specification 'http://[::1]:33485/' at t/20dummy.t line 80.

jcorthoefer commented on 2018-01-19 16:23

This package does not currently build nor do the tests work. I've added patches to at least let it build. I'll submit the diff file as soon as I figure out how to upload it.

Radar2 commented on 2017-12-15 09:05

Hi. Build breaks:

t/20dummy.t ............... Bad http proxy specification 'http://[::1]:46805/' at t/20dummy.t line 80.

Then it hangs indefinitely

bparmentier commented on 2017-01-05 11:30

.SRCINFO needs to be updated. It doesn't match PKGBUILD.