Bug#4700: gv has install-mime problem
Package: gv
Version: 2d_2.7b5-1
Installation bombs with mime-support-2.03-1 installed:
miles:/mirror/debian/incoming [root] # dpkg -i gv-2d_2.7b5-1_i386.deb
Selecting previously deselected package gv-2d.
(Reading database ... 19671 files and directories currently installed.)
Unpacking gv-2d (from gv-2d_2.7b5-1_i386.deb) ...
Setting up gv-2d (2.7b5-1) ...
/usr/sbin/install-mime: semicolons are not allowed in commands, use || or &&
/usr/sbin/install-mime: semicolons are not allowed in commands, use || or &&
dpkg: error processing gv-2d (--install):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
gv-2d
I patched out the offending --test clause which allowed dpkg to configure:
miles:/var/lib/dpkg/info [root] # diff -c gv-2d.postinst.orig gv-2d.postinst
*** gv-2d.postinst.orig Wed Oct 2 18:50:21 1996
--- gv-2d.postinst Fri Oct 4 18:14:18 1996
***************
*** 1,6 ****
#!/bin/sh
if [ -x /usr/sbin/install-mime ]; then
! install-mime --install --package=gv --content=application/postscript --test="test \"\$DISPLAY\" != \"\"; " --view="gv %s &"
! install-mime --install --package=gv --content=application/pdf --test="test \"\$DISPLAY\" != \"\"; " --view="gv %s &"
fi
--- 1,10 ----
#!/bin/sh
if [ -x /usr/sbin/install-mime ]; then
! install-mime --install --package=gv --content=application/postscript \
! --view="gv %s &"
! install-mime --install --package=gv --content=application/pdf \
! --view="gv %s &"
fi
+
+ exit 0
--
Dirk Eddelb"uttel http://qed.econ.queensu.ca/~edd
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
Reply to: