FS#30462 - [perl] cpan requires /bin/gzip

Attached to Project: Arch Linux
Opened by Harley Laue (losinggeneration) - Wednesday, 27 June 2012, 17:19 GMT
Last edited by Florian Pritz (bluewind) - Friday, 29 June 2012, 14:05 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Florian Pritz (bluewind)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
It looks like cpan is expecting /bin/gzip to exist. So this either needs to be have the last commit to gzip partially reverted or cpan needs to know gzip is in /usr/bin instead.

Additional info:
* package version(s): gzip-1.5-1 perl-5.16.0-2

Steps to reproduce:
go to cpan, try to install something and get the following:
* sh: /bin/gzip: No such file or directory
This task depends upon

Closed by  Florian Pritz (bluewind)
Friday, 29 June 2012, 14:05 GMT
Reason for closing:  Won't fix
Comment by Philip Nilsson (leffe) - Wednesday, 27 June 2012, 19:57 GMT
This bug also affects lynx.

% strings =lynx | grep /bin/gzip
/bin/gzip
"/bin/gzip"
Comment by Florian Pritz (bluewind) - Thursday, 28 June 2012, 10:12 GMT
cpan uses IPC::Cmd::can_run() which uses $PATH to find the binaries. Since your error is generated in a shell script the distribution probably uses a shell script for testing or something and hardcodes wrong paths there.

Please provide more output and the exact distribution you are trying to install. I can't reproduce with DBI.
Comment by Florian Pritz (bluewind) - Thursday, 28 June 2012, 10:16 GMT
Also open a separate bug report for lynx.
Comment by Harley Laue (losinggeneration) - Thursday, 28 June 2012, 13:35 GMT
Net::Twitter was specifically what I was trying to install and fails when gzip is not in /bin
Comment by Florian Pritz (bluewind) - Thursday, 28 June 2012, 18:25 GMT
I still can't reproduce, please provide the output you get when trying to install it.
Comment by Harley Laue (losinggeneration) - Thursday, 28 June 2012, 18:30 GMT
ok, attached is the log
Comment by Florian Pritz (bluewind) - Thursday, 28 June 2012, 18:48 GMT
"~/.cpan/CPAN/MyConfig.pm" should contain something like:
'gzip' => q[/bin/gzip],

I guess, you have to adjust that path manually or ask cpan upstream to remove this from the default file and always autodetect, unless the user adds it to the config.

Loading...