Package Details: perl-cpanel-json-xs 4.19-2

Git Clone URL: https://aur.archlinux.org/perl-cpanel-json-xs.git (read-only, click to copy)
Package Base: perl-cpanel-json-xs
Description: cPanel fork of JSON::XS, fast and correct serializing
Upstream URL: https://metacpan.org/release/Cpanel-JSON-XS
Licenses: GPL, PerlArtistic
Submitter: nous
Maintainer: Ordoban
Last Packager: Ordoban
Votes: 15
Popularity: 0.178765
First Submitted: 2014-01-13 17:58
Last Updated: 2020-06-03 12:26

Dependencies (1)

Required by (5)

Sources (1)

Latest Comments

1 2 3 Next › Last »

Ralf_Mardorf commented on 2020-06-03 11:48

Hi, what is the reason for continuing using a http search URL, that does break building the package on at least some machines, instead of using the direct https link, that allows to build the package for everybody?

The link is always the same, add the pkgver variable and you even have to maintain less than before:

#source=('http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/Cpanel-JSON-XS-4.19.tar.gz')
source=("https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Cpanel-JSON-XS-${pkgver}.tar.gz")

Vrakfall commented on 2019-11-07 15:31

Thank you!

Vrakfall commented on 2019-11-07 13:22

Please use variables in paths, at least for the version.

haawda commented on 2019-06-12 18:55

Ralf, checkou a tool like customizepkg to automatically apply such changes in your workflow.

Ralf_Mardorf commented on 2019-06-12 14:06

wget, google-chrome-stable and firefox all return ERROR 403.

$ pacman -Q curl 
curl 7.65.1-1

I always edit the few PKGBUILDs that use those URLs, it's still annoying that the PKGBUILDs don't use the direct links by default.

Ordoban commented on 2019-06-12 11:58

@Ralf_Mardorf

yes, of course, makepkg should work.

Which curl version is used? Does this link work in your browser?

Which output does "wget http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/Cpanel-JSON-XS-4.12.tar.gz" generate?

Otherwise you can also change the PKGBUILD, change the source-URL.

But the important thing is, why is a 403 returned?

Ralf_Mardorf commented on 2019-06-12 11:33

I still don't understand how it should work. Shouldn't it be possible to use an AUR tarball, to build a package with makepkg?

[rocketmouse@archlinux tmp]$ wget -q https://aur.archlinux.org/cgit/aur.git/snapshot/perl-cpanel-json-xs.tar.gz
[rocketmouse@archlinux tmp]$ tar xf perl-cpanel-json-xs.tar.gz 
[rocketmouse@archlinux tmp]$ cd perl-cpanel-json-xs/
[rocketmouse@archlinux perl-cpanel-json-xs]$ makepkg -s
==> Making package: perl-cpanel-json-xs 4.12-1 (Wed 12 Jun 2019 01:27:39 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading Cpanel-JSON-XS-4.12.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 403 Forbidden
==> ERROR: Failure while downloading http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/Cpanel-JSON-XS-4.12.tar.gz
    Aborting...             
[rocketmouse@archlinux perl-cpanel-json-xs]$ diff /etc/makepkg.conf /etc/makepkg.conf.pacnew
44c44
< MAKEFLAGS="-j2"
---
> #MAKEFLAGS="-j2"
115d114
< PKGDEST=/var/cache/aur
122d120
< LOGDEST=/var/log/makepkglogs
125d122
< PACKAGER="Ralf Mardorf <ralf.mardorf@[snip]>"

Ordoban commented on 2019-06-12 11:18

@Ralf_Mardorf,

the URL is hardcoded. You can change it.

/usr/share/perl5/vendor_perl/CPANPLUS/Dist/Arch.pm Line 37 Line 1660 (remove 'CPAN')

Ralf_Mardorf commented on 2019-06-12 11:08

I installed perl-cpanplus-dist-arch and run setupdistarch. What else has to be done? I still need to replace the PKGBUILD's "http://search"-URL by the direct link.

Ordoban commented on 2019-06-12 09:54

@Ralf_Mardorf,

CPANPLUS::Dist::Arch 1.32 generates the source link. perl-cpanplus-dist-arch