Your message dated Fri, 27 Jun 2008 14:17:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#466517: fixed in debianutils 2.30
has caused the Debian Bug report #466517,
regarding update-mime: don't ignore alternatives / text/html should use
sensible-browser
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
466517: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466517
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: mime-support
Version: 3.39-1
Severity: serious
Justification: ignores local admin's preferences[1]
--- Please enter the report below this line. ---
Hello,
I have set my alternatives[1] for x-www-browser and gnome-www-browser as
follows:
LANG=C /usr/sbin/update-alternatives --display x-www-browser
x-www-browser - status is manual.
link currently points to /usr/bin/iceweasel
/usr/bin/xlinks2 - priority 69
slave x-www-browser.1.gz: /usr/share/man/man1/xlinks2.1.gz
/usr/bin/iceweasel - priority 70
slave x-www-browser.1.gz: /usr/share/man/man1/iceweasel.1.gz
/usr/bin/epiphany - priority 85
slave x-www-browser.1.gz: /usr/share/man/man1/epiphany.1.gz
Current `best' version is /usr/bin/epiphany.
LANG=C /usr/sbin/update-alternatives --display gnome-www-browser
gnome-www-browser - status is manual.
link currently points to /usr/bin/firefox
/usr/bin/firefox - priority 70
slave gnome-www-browser.1.gz: /usr/share/man/man1/firefox.1.gz
/usr/bin/iceweasel - priority 70
slave gnome-www-browser.1.gz: /usr/share/man/man1/iceweasel.1.gz
/usr/bin/epiphany - priority 85
slave gnome-www-browser.1.gz: /usr/share/man/man1/epiphany.1.gz
/usr/bin/galeon - priority 120
slave gnome-www-browser.1.gz: /usr/share/man/man1/galeon.1.gz
Current `best' version is /usr/bin/galeon.
Also, my BROWSER environment variable:
env | grep BROW
BROWSER=firefox %s
And at this point, *by*pure*coincidence*, the mailcap info is somewhat
correctly set, using iceweasel for html:
grep -i 'text/html' /etc/mailcap
text/html; /usr/bin/iceweasel '%s'; description=HTML Text; test=test -n
"$DISPLAY"; nametemplate=%s.html
text/html; /usr/bin/w3m -T text/html '%s'; needsterminal;
description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/w3m -dump -T text/html '%s'; copiousoutput;
description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/html2text '%s'; copiousoutput; description=HTML Text
text/html; /usr/bin/sensible-browser '%s'; description=HTML Text;
nametemplate=%s.html
If I install also galeon, the damn thing breaks to pieces and all my
alternatives and BROWSER settings are simply ignored (as they were
before, but I was lucky):
grep -i 'text/html' /etc/mailcap
text/html; /usr/bin/galeon '%s'; description=HTML Text; test=test -n
"$DISPLAY"; nametemplate=%s.html
text/html; /usr/bin/iceweasel '%s'; description=HTML Text; test=test -n
"$DISPLAY"; nametemplate=%s.html
text/html; /usr/bin/w3m -T text/html '%s'; needsterminal;
description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/w3m -dump -T text/html '%s'; copiousoutput;
description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/html2text '%s'; copiousoutput; description=HTML Text
text/html; /usr/bin/sensible-browser '%s'; description=HTML Text;
nametemplate=%s.html
Also, I suspect that if I remove and then install iceweasel I will get
the desired effect, but this would mean I will always get as default the
latest installed browser, which is wrong. I just tested this and,
weirdly, no, this was not what happened - woohoo, more weird behaviour.
As a fix I propose sensible-browser to be, by default and always, the
first handler for text/html. Note that by doing this you are fixing also
displaying html even on pure text consoles and respect the alternatives,
at the same time.
from sensible-browser(1):
DESCRIPTION
sensible-editor, sensible-pager and sensible-browser make
sensible decisions on which editor, pager,
and web browser to call, respectively. Programs in Debian can
use these scripts as their default
editor, pager, or web browser or emulate their behavior.
Judging from the code from /usr/bin/sensible-browser, one can easily see
that it will always do the right thing.
Notes:
- sensible-browser is part of the essential package debianutils, so
there's no extra dep needed or something like that.
- of course, mailcap.order can override this, as usual, but the default
behaviour will no longer be broken.
[1] http://www.debian.org/doc/debian-policy/ap-pkg-alternatives.html
--- System information. ---
Architecture: amd64
Kernel: Linux 2.6.24.2-bounty
Debian Release: lenny/sid
900 testing security.debian.org
900 testing ftp.ro.debian.org
10 unstable ftp.ro.debian.org
--- Package information. ---
Depends (Version) | Installed
=======================-+-===========
|
--
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein
--- End Message ---
--- Begin Message ---
Source: debianutils
Source-Version: 2.30
We believe that the bug you reported is fixed in the latest version of
debianutils, which is due to be installed in the Debian FTP archive:
debianutils_2.30.dsc
to pool/main/d/debianutils/debianutils_2.30.dsc
debianutils_2.30.tar.gz
to pool/main/d/debianutils/debianutils_2.30.tar.gz
debianutils_2.30_i386.deb
to pool/main/d/debianutils/debianutils_2.30_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Clint Adams <[EMAIL PROTECTED]> (supplier of updated debianutils package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 27 Jun 2008 09:47:54 -0400
Source: debianutils
Binary: debianutils
Architecture: source i386
Version: 2.30
Distribution: unstable
Urgency: low
Maintainer: Clint Adams <[EMAIL PROTECTED]>
Changed-By: Clint Adams <[EMAIL PROTECTED]>
Description:
debianutils - Miscellaneous utilities specific to Debian
Closes: 466517
Changes:
debianutils (2.30) unstable; urgency=low
.
* Raise sensible-browser's mime priority to 6. closes: #466517.
Checksums-Sha1:
11ba95341a7af28186bda720118c7c39f22280f7 820 debianutils_2.30.dsc
eab0ce4eb26d7997f2bbc240bb3639e90fe7ab19 139274 debianutils_2.30.tar.gz
e880b5fea48ea2627c1df6ce4e78d37b7043687c 55362 debianutils_2.30_i386.deb
Checksums-Sha256:
24af32767c9ee83bd7a8f75efbdd819309d2f06a99d5ef0049eb7e722b419052 820
debianutils_2.30.dsc
d62e98fee5b1a758d83b62eed8d8bdec473677ff782fed89fc4ae3ba3f381401 139274
debianutils_2.30.tar.gz
7fbb7890531e3a4be89c70603f885efa362df78183ec43c8fd09508f66296a3c 55362
debianutils_2.30_i386.deb
Files:
8cdb9a5c1294b4d31986640b14698331 820 utils required debianutils_2.30.dsc
7fdd5f8395162d8728d4b79e97b9819e 139274 utils required debianutils_2.30.tar.gz
0edc6f7dcc65a77d39462b14b25119f5 55362 utils required debianutils_2.30_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Debian!
iD8DBQFIZPTG5m0u66uWM3ARAlXwAJ4n6n0ugL90BNMQ09Kp86KHa9sqCwCfSQsd
oS3RCxrUj3T7rbsG7kQPUxM=
=BKkK
-----END PGP SIGNATURE-----
--- End Message ---