Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Perl Monk, Perl Meditation
 
PerlMonks  

CPAN installer with files in the future

by stefp (Vicar)
on Feb 14, 2005 at 07:29 UTC ( [id://430758]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

stefp has asked for the wisdom of the Perl Monks concerning the following question:

I just tried to install Data::Page::Viewport that is still hot from the press. The CPAN utility is confused because the distribution files in the tarball are stamped in the close future. Clearly the distribution has been done with a different locale from mine. That must be a common problem. Is there a standard way to fix such a problem? Within CPAN?

-- stefp

  • Comment on CPAN installer with files in the future

Replies are listed 'Best First'.
Re: CPAN installer with files in the future
by merlyn (Sage) on Feb 14, 2005 at 08:36 UTC
    It's not a common problem that I've seen, and I install a huge amount of stuff immediately from the CPAN (to the point where it even annoys some of the developers when I report bugs within minutes of CPAN submission).

    The timestamps inside a tarball are timezone neutral, so it can't be about "locale". However, I have seen very occasionally a tarball created with a mis-set clock so that files are a day or so into the future. First, I report the mistake immediately, but the workaround is simple: set all modtimes to "right now":

    tar xvfz Bad-Distro-1.4.tar.gz find Bad-Distro-1.4 -type f -print | xargs -t touch

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

      Or alternatively if the version of tar supports it you can use the -m option which doesn't restore the modification time from the archive. I.E:

      tar xvmfz Bad-Distro-1.4.tar.gz

      /J\

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://430758]
Approved by holli
Front-paged by holli
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.