Bug#815390: Re: Re: Bug#815390: dh-make-perl: Fail to build package if run with sudo ($orig_pwd not initialized)
gregor herrmann
gregoa at debian.org
Sat May 21 09:16:41 UTC 2016
On Sat, 21 May 2016 12:06:53 +0300, borissh1983 at gmail.com wrote:
> It might be related to an attempt to get a debian package directly
> from cpan but unfortunately I don't remember the exact case. I can
> guess that maybe I was trying to get a debian package directly from
> cpan :
This usually works fine ...
> user at pc: ~$ dh-make-perl make --build --cpan Text::CSV::Simple
>
> == dh-make-perl 0.90 ==
> CPAN: Time::HiRes loaded ok (v1.9726)
> mkdir /root/.cpan: Permission denied at /usr/share/perl/5.22/CPAN/FTP.pm line 520.
Works for me:
% dh-make-perl make --build --cpan Text::CSV::Simple
== dh-make-perl 0.90 ==
CPAN: File::HomeDir loaded ok (v1.00)
Reading '/home/gregoa/.cpan/Metadata'
Database was generated on Fri, 29 Apr 2016 10:29:03 GMT
CPAN: Time::HiRes loaded ok (v1.9726)
Fetching with LWP:
http://mirror.switch.ch/ftp/mirror/CPAN/authors/01mailrc.txt.gz
Reading '/home/gregoa/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://mirror.switch.ch/ftp/mirror/CPAN/modules/02packages.details.txt.gz
Reading '/home/gregoa/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Fri, 20 May 2016 23:53:54 GMT
............................................................................DONE
Fetching with LWP:
http://mirror.switch.ch/ftp/mirror/CPAN/modules/03modlist.data.gz
Reading '/home/gregoa/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /home/gregoa/.cpan/Metadata
Fetching with LWP:
http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/T/TM/TMTM/Text-CSV-Simple-1.00.tar.gz
CPAN: Digest::SHA loaded ok (v5.95)
Fetching with LWP:
http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/T/TM/TMTM/CHECKSUMS
Checksum for /home/gregoa/.cpan/sources/authors/id/T/TM/TMTM/Text-CSV-Simple-1.00.tar.gz ok
Text-CSV-Simple-1.00/
Text-CSV-Simple-1.00/t/
Text-CSV-Simple-1.00/t/pod.t
Text-CSV-Simple-1.00/t/simple.t
[...]
I fail to understand why your CPAN.pm tries "mkdir /root/.cpan" when
you run it us "user". - Does anyone have any ideas?
Cheers,
gregor
--
.''`. Homepage https://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
: :' : Debian GNU/Linux user, admin, and developer - https://www.debian.org/
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160521/cd9270c5/attachment.sig>
More information about the pkg-perl-maintainers
mailing list