Package: libhtml-mason-perl-examples
Version: 1:1.35-3
Severity: normal
Tags: patch
*** Please type your report below this line ***
When installing the package on a rather pristine Etch, I get the
following error message:
Setting up libhtml-mason-perl-examples (1.35-3) ...
cp: cannot create regular file `/usr/lib/cgi-bin/mason_example.cgi': No such
file or directory
The problem appears to be a failure to check for the existence of the
directory /usr/lib/cgi-bin. The patch attempts to correct this in a
straight-forward manner by testing for the existence, and only
attempting to copy+chmod if it's there.
Identifying the cause of the error message and fixing it is probably
beyond a regular user, but it only appears to affect the installability
of the examples in a ready-to-use state, hence the "normal" severity
level.
I'm also doubtful whether it's right that the examples should try to
install themselves in any particular directories at all.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.14-vs2.0.2.1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages libhtml-mason-perl-examples depends on:
ii debconf [debconf-2.0] 1.5.11 Debian configuration management sy
ii libhtml-mason-perl 1:1.35-3 HTML::Mason Perl module
Versions of packages libhtml-mason-perl-examples recommends:
ii apache2 2.2.3-4 Next generation, scalable, extenda
ii apache2-mpm-worker [apache2] 2.2.3-4 High speed threaded model for Apac
ii libapache2-mod-perl2 2.0.2-2.4 Integration of perl with the Apach
-- debconf information:
libhtml-mason-perl/install_examples: true
libhtml-mason-perl/auto_restart_apache: true
diff -ru libhtml-mason-perl-1.35/debian/libhtml-mason-perl-examples.postinst
libhtml-mason-perl-1.35-new/debian/libhtml-mason-perl-examples.postinst
--- libhtml-mason-perl-1.35/debian/libhtml-mason-perl-examples.postinst
2007-08-01 21:43:12.000000000 +0000
+++ libhtml-mason-perl-1.35-new/debian/libhtml-mason-perl-examples.postinst
2007-08-01 21:47:13.000000000 +0000
@@ -69,8 +69,10 @@
else
cp_or_gunzip $APACHE_CONF_SOURCE $APACHE_CONF_FRAGMENT
fi
- cp_or_gunzip
/usr/share/doc/libhtml-mason-perl-examples/examples/mason_example.cgi
/usr/lib/cgi-bin/mason_example.cgi
- vcmd chmod $vflag 0755 /usr/lib/cgi-bin/mason_example.cgi
+ if [ -d /usr/lib/cgi-bin ]; then
+ cp_or_gunzip
/usr/share/doc/libhtml-mason-perl-examples/examples/mason_example.cgi
/usr/lib/cgi-bin/mason_example.cgi
+ vcmd chmod $vflag 0755 /usr/lib/cgi-bin/mason_example.cgi
+ fi
vcmd cp -R $vflag
/usr/share/doc/libhtml-mason-perl-examples/examples/mason_example /var/www
vcmd find $EXAMPLE_DOCROOT -name '*.gz' | xargs gunzip $vflag -f --
if [ -x $APACHE_CTL ] && dc_true
libhtml-mason-perl/auto_restart_apache; then
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]