[Pkg-sysvinit-devel] Bug#716974: Can't locate File/Path.pm in @INC

TJ debian at iam.tj
Mon Jul 15 14:11:24 UTC 2013


Package: sysv-rc
Version: 2.88dsf-42

Using pbuilder and deboostrap to create a 'sid' pbuilder from Ubuntu 13.04 I hit what looks to be a dependency issue as util-linux is being unpacked. I have a customised ~/.pbuilderrc to allow me to
build Debian releases on Ubuntu which is run thus:

$ sudo BUILD_TEST=1 BASE=/home/all/pbuilder/base RELEASE=sid ARCH=i386 pbuilder create --debug

debootstrap does its work until this:

...
Unpacking util-linux (from .../util-linux_2.20.1-5.5_i386.deb) ...
Can't locate File/Path.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl .) at /usr/sbin/update-rc.d line 8.
BEGIN failed--compilation aborted at /usr/sbin/update-rc.d line 8.
dpkg: error processing /var/cache/apt/archives/util-linux_2.20.1-5.5_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2


$ sudo chroot /var/cache/pbuilder/build/8627/
# dpkg  --yet-to-unpack
 util-linux           (no description available)


the util-linux preinst script makes a call to /usr/sbin/update-rc.d:

...
if [ "$1" = install ] || [ "$1" = upgrade ]; then
...
update-rc.d hwclockfirst.sh remove >/dev/null
fi


sysv-rc's /usr/sbin/update-rc.d calls on a file from perl-modules:

...
use File::Path qw(make_path); # in core since Perl 5.001
...


but the sysv-rc package has no dependency on perl-modules or perl, and neither package is unpacked/installed by debootstrap at this point (even though they are due to be installed later).

$ grep ' perl' /var/cache/pbuilder/build/8627/debootstrap/debootstrap.log

Selecting previously unselected package perl-base.
Unpacking perl-base (from .../perl-base_5.14.2-21_i386.deb) ...
Setting up perl-base (5.14.2-21) ...
Preparing to replace perl-base 5.14.2-21 (using .../perl-base_5.14.2-21_i386.deb) ...
Unpacking replacement perl-base ...
 liblocale-gettext-perl pre-depends on perlapi-5.14.2
  perl-base provides perlapi-5.14.2 but is unpacked but not configured.
Preparing to replace perl-base 5.14.2-21 (using .../perl-base_5.14.2-21_i386.deb) ...
Unpacking replacement perl-base ...
 liblocale-gettext-perl pre-depends on perlapi-5.14.2
  perl-base provides perlapi-5.14.2 but is unpacked but not configured.
Preparing to replace perl-base 5.14.2-21 (using .../perl-base_5.14.2-21_i386.deb) ...
Unpacking replacement perl-base ...
 liblocale-gettext-perl pre-depends on perlapi-5.14.2
  perl-base provides perlapi-5.14.2 but is unpacked but not configured.
Preparing to replace perl-base 5.14.2-21 (using .../perl-base_5.14.2-21_i386.deb) ...
Unpacking replacement perl-base ...
 liblocale-gettext-perl pre-depends on perlapi-5.14.2
  perl-base provides perlapi-5.14.2 but is unpacked but not configured.
Preparing to replace perl-base 5.14.2-21 (using .../perl-base_5.14.2-21_i386.deb) ...
Unpacking replacement perl-base ...



More information about the Pkg-sysvinit-devel mailing list