Bug#815390: dh-make-perl: Fail to build package if run with sudo ($orig_pwd not initialized)
Boris Shtrasman
borissh1983+bugs at gmail.com
Sun Feb 21 07:06:05 UTC 2016
Package: dh-make-perl
Version: 0.89-1
Severity: important
Dear Maintainer,
When invoking dh-make-perl with sudo for any cpan packgage it will fail
with :
CPAN: File::Temp loaded ok (v0.2304)
Use of uninitialized value $orig_pwd in chdir at
/usr/share/perl5/DhMakePerl/Command/make.pm line 335.
Use of chdir('') or chdir(undef) as chdir() is deprecated at
/usr/share/perl5/DhMakePerl/Command/make.pm line 335.
Use of uninitialized value $to in string eq at
/usr/share/perl/5.22/File/Copy.pm line 64.
Use of uninitialized value $to in -d at
/usr/share/perl/5.22/File/Copy.pm line 96.
Use of uninitialized value $to in stat at
/usr/share/perl/5.22/File/Copy.pm line 104.
Use of uninitialized value $to in open at
/usr/share/perl/5.22/File/Copy.pm line 167.
Use of uninitialized value $orig_pwd in concatenation (.) or string at
/usr/share/perl5/DhMakePerl/Command/make.pm line 344.
copy(/root/.cpan/sources/authors/id/$PACKAGE_NAME.tar.gz, ): No
such file or directory at /usr/share/perl5/DhMakePerl/Command/make.pm
line 344.
Workaround:
not to use sudo but to switch to root directly.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (901, 'unstable'), (900, 'testing'), (200, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages dh-make-perl depends on:
ii debhelper 9.20160115
ii dpkg-dev 1.18.4
ii fakeroot 1.20.2-1
ii libapt-pkg-perl 0.1.29+b5
ii libarray-unique-perl 0.08-2
ii libclass-accessor-perl 0.34-1
ii libconfig-ini-perl 1:0.025-1
ii libcpan-meta-perl 2.150005-1
ii libdpkg-perl 1.18.4
ii libemail-address-perl 1.908-1
ii libemail-date-format-perl 1.005-1
ii libfile-which-perl 1.19-1
ii liblist-moreutils-perl 0.413-1+b1
ii libmodule-depends-perl 0.16-2
ii libparse-debcontrol-perl 2.005-4
ii libparse-debianchangelog-perl 1.2.0-8
ii libsoftware-license-perl 0.103011-1
ii libtie-ixhash-perl 1.23-2
ii libwww-mechanize-perl 1.75-1
ii libyaml-libyaml-perl 0.41-6+b1
ii libyaml-perl 1.15-1
ii make 4.1-5
ii perl 5.22.1-7
ii perl-modules-5.22 [libcpan-meta-perl] 5.22.1-7
Versions of packages dh-make-perl recommends:
ii apt-file 2.5.5
ii git 1:2.7.0-1
ii libdpkg-parse-perl 0.03-1
ii pristine-tar 1.33
dh-make-perl suggests no packages.
-- no debconf information
More information about the pkg-perl-maintainers
mailing list