Bug#225047: libapache-mod-perl: Error in post install script - no such file or directory
Package: libapache-mod-perl
Version: 1.29.0.1-3
Severity: normal
Tags: patch
When attempting to upgrade the libapache-mod-perl package I received
the following error:
Setting up libapache-mod-perl (1.29.0.1-3) ...
ln: creating symbolic link `usr/lib/perl5/auto/Apache/include' to `../../../../include/apache-1.3': No such file or directory
This is caused by the post install script assuming that the current
directory is the root directory and in my case it was not. To fix
this a 'cd /' could be added to the post install script thus:
--- libapache-mod-perl.postinst.orig 2003-12-24 21:17:43.000000000 +0000
+++ libapache-mod-perl.postinst 2003-12-24 21:17:25.000000000 +0000
@@ -6,6 +6,7 @@
# replaced by a symlink provided by the new package
if [ ! -h /usr/lib/perl5/auto/Apache/include ]; then
+ cd /
rm -rf /usr/lib/perl5/auto/Apache/include
ln -sf ../../../../include/apache-1.3 usr/lib/perl5/auto/Apache/include
fi
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux tuborg 2.6.0-test11 #1 Mon Dec 1 10:45:49 GMT 2003 i686
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB.ISO-8859-15
Versions of packages libapache-mod-perl depends on:
ii apache-common 1.3.29.0.1-3 Support files for all Apache webse
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii libdevel-symdump-perl 2.03-3 Perl module for inspecting perl's
ii libperl5.8 5.8.2-2 Shared Perl library.
ii liburi-perl 1.23-1 Manipulates and accesses URI strin
ii libwww-perl 5.69-4 WWW client/server library for Perl
ii perl [libmime-base64-perl] 5.8.2-2 Larry Wall's Practical Extraction
-- no debconf information
Reply to: