develooper Front page | perl.perl5.porters | Postings from July 2019

Re: "Damaged tar archive" for perl-5.32.2 on ftp callsfromCPANmirrors

Thread Previous | Thread Next
From:
James E Keenan
Date:
July 22, 2019 13:57
Subject:
Re: "Damaged tar archive" for perl-5.32.2 on ftp callsfromCPANmirrors
Message ID:
20190722135748.17468.qmail@lists-nntp.develooper.com
On 7/22/19 1:07 AM, Tony Cook wrote:
> On Sun, Jul 21, 2019 at 09:49:04PM -0400, James E Keenan wrote:
>>>
>>> Does that sha256 match?
>>>
>>> tony@mars:~/src$ sha256sum perl-5.31.2.tar.gz
>>> 4047199a79bf793e1f245e20fe7eb25f3c76969a475634613b152c5969826d01  perl-5.31.2.tar.gz
>>> tony@mars:~/src$ cat perl-5.31.2.tar.gz.sha256.txt
>>> 4047199a79bf793e1f245e20fe7eb25f3c76969a475634613b152c5969826d01
>>
>> That looks like the problem:
>>
>> #####
>> # In my FreeBSD-12 VM:
>> $ sha256 perl-5.31.2.tar.gz
>> SHA256 (perl-5.31.2.tar.gz) =
>> a26478e09f7e3c9ad78c295cb0a4781132c56c200b208ac93291474f85fa21d3
>>
>> # ftp://mirrors.rit.edu/CPAN/src/5.0/perl-5.31.2.tar.gz.sha256.txt
>>
>> 4047199a79bf793e1f245e20fe7eb25f3c76969a475634613b152c5969826d01
>> #####
>>
>> Also:
>>
>> #####
>> # In my FreeBSD-12 VM:
>> $ sha1 perl-5.31.2.tar.gz
>> SHA1 (perl-5.31.2.tar.gz) = 306fcf528e33e2985fab954ccba73cd6397717a5
>>
>> # ftp://mirrors.rit.edu/CPAN/src/5.0/perl-5.31.2.tar.gz.sha1.txt
>> 3a2e2beb54e6a44b4bb6c4bd2967ec0a0c9f5324
>> #####
>>
>> How should we proceed?
>>
> 
> The sha256 mismatch isn't the "the problem" - it's just a diagnostic.
> 
>>>
>>> Otherwise, since you're using FTP, do you call binary() on the
>>> Net::FTP object?
>>>
>>
>> No, I don't.  But I've performed this call (inside Perl::Download::FTP)
>> hundreds of times with no problem -- and now dozens of times from within
>> this VM.
> 
> Try it, I expect you've just been lucky in your choice of mirrors.
> 
> If you're transferring binary files always use binary mode for FTP.
> 
> You might want to check the checksums too.
> 
> Tony
> 

Tony, ask, sisyphus ... thanks as always for your contributions.

[sisyphus is now in his 20th year of giving me helpful suggestions for 
Perl!]

Here is what I have done to move things forward, specifically, to get 
the CPAN-River-3000 to run for perl-5.31.2.

1. On github, I have created a new branch for my CPAN distro 
Perl-Download-FTP:

https://github.com/jkeenan/perl-download-ftp/tree/binary

In this branch, following Tony's suggestion, I have added a call to the 
Net::FTP::binary() method before each call to Net::FTP::get().  No 
changes yet in test suite or documentation, but all tests PASS including 
live network tests.

2. In the VM I have added the git checkout directory to the @INC for the 
call to the CPAN-River-3000 program which is run by cron.  I also 
redirected the ftp calls to ftp.cpan.org.  So that call starts like this:

#####
perl -I/home/jkeenan/gitwork/perl-download-ftp/lib 
/home/jkeenan/bin/perl/trigger-tad.pl \
     --application_dir=/home/jkeenan/var/tad \
     --tdir=/home/jkeenan/tmp/scratch \
     --host=ftp.cpan.org \
     --hostdir=/pub/CPAN/src/5.0 \
     --minor_version=31 \
     --compression=gz \
     --river_file=/home/jkeenan/var/tad/src/modules-for-cpanm-20190713.txt \
     --title=cpan-river-3000 \
...
#####

3. I reset the kickoff time in the cron job.  It downloaded the tarball 
apparently successfully, configured, built and installed perl in the 
expected location and began installing CPAN modules against that perl. 
This process will take 6-8 hours.

4. Not done so far:
a. Any implementation in Perl-Download-FTP of Tony's suggestion re 
checksums.
b. Any testing of this new version of Perl-Download-FTP on the 3 
problematic mirrors.

Thank you very much.
Jim Keenan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About