Package: dbconfig-common
Version: 1.8.20
Severity: important
Justification: dependant packages could not be installed on affected systems
Tags: patch

Not all systems have /dev/stderr symlinks. But /usr/share/dbconfig-common/internel/common uses this file to redirect output to stderr (I have couple systems with custom compiled 2.6.9 which do not have these symlinks). As a consequence I was unable to install otrs2 package (I believe others would fail too):
Setting up otrs2 (2.0.4p01-12) ...
dbconfig-common: writing config to /etc/dbconfig-common/otrs2.conf
Replacing config file /etc/otrs/database.pm with new version
/usr/share/dbconfig-common/internal/common: line 14: /dev/stderr: Permission denied /usr/share/dbconfig-common/internal/common: line 29: /dev/stderr: Permission denied /usr/share/dbconfig-common/internal/common: line 14: /dev/stderr: Permission denied /usr/share/dbconfig-common/internal/common: line 29: /dev/stderr: Permission denied /usr/share/dbconfig-common/internal/common: line 14: /dev/stderr: Permission denied /usr/share/dbconfig-common/internal/common: line 29: /dev/stderr: Permission denied /usr/share/dbconfig-common/internal/common: line 14: /dev/stderr: Permission denied
dpkg: error processing otrs2 (--configure):
 subprocess post-installation script returned error exit status 1


Please find attached patch which will not depend on presence of these special symlinks. Applying this patch allowed me to install aforementioned package.

--
Aidas Kasparas
IT administrator
GM Consult Group, UAB
--- common.R    2006-08-21 12:26:10.734720687 +0300
+++ common      2006-08-21 12:26:32.782215689 +0300
@@ -11,7 +11,7 @@
 dbc_logpart(){
        # for the time being, at least, let's default to verbose
        #if [ "$dbc_debug" ]; then
-               echo -ne "$@ " > /dev/stderr
+               echo -ne "$@ " >&2
        #fi
        if [ "$dbc_log" ]; then
                dbc_log="$dbc_log $@"
@@ -26,7 +26,7 @@
 dbc_logline(){
        # for the time being, at least, let's default to verbose
        #if [ "$dbc_debug" ]; then
-               echo -e "[EMAIL PROTECTED]" > /dev/stderr
+               echo -e "[EMAIL PROTECTED]" >&2
        #fi
        if [ "$dbc_log" ]; then
                dbc_log="$dbc_log [EMAIL PROTECTED]"

Reply via email to