Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using perlbrew on Cygwin - a problem with gnu tar unwrapping perl archive files #833

Open
somian opened this issue Dec 17, 2024 Discussed in #832 · 0 comments
Open

Using perlbrew on Cygwin - a problem with gnu tar unwrapping perl archive files #833

somian opened this issue Dec 17, 2024 Discussed in #832 · 0 comments

Comments

@somian
Copy link

somian commented Dec 17, 2024

Discussed in #832

Originally posted by somian December 16, 2024
I'm having some trouble setting up and using perlbrew on cygwin, and I don't think I am going to be the only one. Unfortunately I don't understand how to use Github and I don't have time to learn it right now. I'll describe the problem and I can offer a patch by uploading it to this message.

The problem occurs where perlbrew acts on a downloaded perl archive, using gnu tar to expand it. Gnu tar must not be used on a filename that is absolute, on cygwin or MSWindows, because it misunderstands the C: as referring to a remote tape drive or similar device. The flag --force-local must be used or tar dies with an error.

So, I have a fix that should not break any other platform. Thank you for your kind attention.

Here's my console error:

-bash-5.2$ perlbrew install perl-5.38.2
Fetching perl 5.38.2 as C:/Users/somia/perl5/perlbrew/dists/perl-5.38.2.tar.gz
Download https://cpan.metacpan.org/authors/id/P/PE/PEVANS/perl-5.38.2.tar.gz to C:/Users/somia/perl5/perlbrew/dists/perl-5.38.2.tar.gz
tar (child): Cannot connect to C: resolve failed

gzip: stdin: unexpected end of file
tar: Child returned status 128
tar: Error is not recoverable: exiting now
Failed to extract C:/Users/somia/perl5/perlbrew/dists/perl-5.38.2.tar.gz at C:/Users/somia/perl5/perlbrew/bin/perlbrew line 1726.

cygwin-gnutar.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant