Re: Two things in latest disks...
Michael Alan Dorman writes:
>Second, we've got a problem in that dselect's ftp method does not work in
>the base system. If you try to chose it, you get the error:
>
> Can't locate lib.pm in @INC at /usr/lib/dpkg/methods/ftp/setup line 4.
> BEGIN failed--compilation aborted at /usr/lib/dpkg/methods/ftp/setup line 4.
>
> query/setup script returned error exit status 2.
> Press RETURN to continue.
>
>This is presumably because the method tries to 'use' several modules that
>aren't installed. It would be nice if 1) workarounds could be found or
>2) the necessary modules could be determined and included.
dpkg-ftp currently depends on a "full" perl. However the only thing
it is using are:
use lib '/usr/lib/dpkg/methods/ftp';
use strict;
use diagnostics;
use Net::FTP;
use File::Path;
use File::Basename;
use File::Find;
I can happily remove strict, diagnostics and Net::FTP is part of the
package and I could easily add File:: as none of these are exactly
large. The 'use lib' could probably be replaced with some perl but I am
not sure how.
Andy.
Reply to: