[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#188238: debbugs: postinst fails if links is installed



Package: debbugs
Version: 2.3-4
Severity: normal
Tags: patch

debbugs fails to install when "links" is installed:


Setting up debbugs (2.3-4) ...
Creating files in /var/lib/debbugs/www:
index.html Access.html Unknown option -dump

unable to write /var/lib/debbugs/www/txt/bug-log-access.txt
dpkg: error processing debbugs (--configure):
 subprocess post-installation script returned error exit status 25
Errors were encountered while processing:
 debbugs
E: Sub-process /usr/bin/dpkg returned an error code (1)


The third line is the problem: links doesn't have a -dump option. I suggest
removing support for links in debbugsconfig, as shown in the patch
below.


--- debbugsconfig.old	2003-04-08 19:16:15.000000000 +0100
+++ debbugsconfig	2003-04-08 19:16:37.000000000 +0100
@@ -89,12 +89,7 @@
   unlink("$gDocDir/$text.txt");
   $ENV{'HOME'} = "/tmp";
   $ENV{'TERM'} = "linux";
-  if (-x "/usr/bin/links") {
-    system ("rm -rf /tmp/.links/") == 0 || die;
-    system ("links -dump $gDocDir/$text.html > $gDocDir/$text.txt") == 0 ||
-      die "\nunable to write $gDocDir/$text.txt\n";
-    system ("rm -rf /tmp/.links/");
-  } elsif (-x "/usr/bin/lynx") {
+  if (-x "/usr/bin/lynx") {
     system ("lynx -nolist -dump -cfg=$gConfigDir/html/lynx-cfg $gDocDir/$text.html > $gDocDir/$text.txt") == 0 ||
       die "\nunable to write $gDocDir/$text.txt\n";
   } else {


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux graydon 2.4.20-ck4 #1 Tue Mar 18 22:58:49 GMT 2003 i686
Locale: LANG=en_GB, LC_CTYPE=en_GB

Versions of packages debbugs depends on:
ii  ed                            0.2-20     The classic unix line editor
ii  exim [mail-transport-agent]   3.36-6     An MTA (Mail Transport Agent)
ii  libmailtools-perl [mailtools] 1.56-1     Manipulate email in perl programs
ii  perl [perl5]                  5.8.0-17   Larry Wall's Practical Extraction 

-- no debconf information




Reply to: