Bug#71621: marked as done (No policy on calling update-alternatives (was Re: update-alternatives))
Your message dated Sat, 31 Aug 2002 06:34:35 -0400
with message-id <E17l5aN-0005Yv-00@auric.debian.org>
and subject line Bug#112828: fixed in debian-policy 3.5.7.0
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 13 Sep 2000 23:15:28 +0000
>From cjw44@flatline.org.uk Wed Sep 13 18:15:28 2000
Return-path: <cjw44@flatline.org.uk>
Received: from (mta07-svc.ntlworld.com) [::ffff:62.253.162.47]
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 13ZLkW-0007eP-00; Wed, 13 Sep 2000 18:15:28 -0500
Received: from localhost ([62.253.132.107]) by mta07-svc.ntlworld.com
(InterMail vM.4.01.02.27 201-229-119-110) with ESMTP
id <20000913231526.LBDR282.mta07-svc.ntlworld.com@localhost>
for <submit@bugs.debian.org>; Thu, 14 Sep 2000 00:15:26 +0100
Received: from cjw44 by localhost with local (Exim 3.16 #1 (Debian))
for submit@bugs.debian.org
id 13ZLlY-0008Od-00; Thu, 14 Sep 2000 00:16:32 +0100
From: cjw44@flatline.org.uk (Colin Watson)
To: submit@bugs.debian.org
X-Debbugs-Cc: debian-mentors@lists.debian.org
Subject: No policy on calling update-alternatives (was Re: update-alternatives)
In-Reply-To: <Pine.LNX.4.21.0009132205400.1097-100000@perkele>
References: <Pine.LNX.4.21.0009132205400.1097-100000@perkele>
Organization: riva.ucam.org
Message-Id: <E13ZLlY-0008Od-00@localhost>
Date: Thu, 14 Sep 2000 00:16:32 +0100
Delivered-To: submit@bugs.debian.org
Package: packaging-manual
Version: 3.2.1.0
peter karlsson <peter@softwolves.pp.se> wrote:
>How do I get update-alternatives to keep information when upgrading a
>package?
>
>Currently I have postinst add it and prerm remove it, but if I set the
>alternative to point to something else than the default, this means
>that that information gets lost everytime I upgrade the package...
(This is a long, rambling answer to a short question. Sorry.)
You need to remove the alternative only in certain conditions.
On my system, there are no less than eight distinct ways used by
packages to remove alternatives (excluding special-case conditions like
that used by ae, and folding down the various ways used to express
conditions on $1):
1. prerm, remove
(communicator-smotif-475, elvis-tiny, eterm, exuberant-ctags,
iamerican, ibritish, less, miscfiles, perl-5.005-base, rxvt,
util-linux)
2. prerm, remove|upgrade
(xterm)
3. prerm, remove|upgrade|deconfigure
(icewm-gnome, icewm, ipchains, ipfwadm, perl-5.005,
perl-5.005-debug, perl-5.005-suid, perl-5.005-thread, w3m, w3m-ssl)
4. prerm, remove|failed-upgrade|deconfigure
(ae, bison, csh, ee, elvis, emacs20, fte, ftp, fvwm, gcc, gom,
gom-x, gpc, g++, guile1.3, info, irssi-gtk, irssi-text, itcl3.0,
itcl3.1, itk3.1, jdk1.1, jdk1.1-dev, joe, libopenldap1, lukemftp,
mawk, mpg123, nano, ncftp2, pinfo, procps, psptools, rsh-client,
talk, tcl8.0, tcl8.2, tcl8.2-dev, tcl8.3, tcl8.3-dev, tclx8.0.4,
tcsh, telnet-ssl, tix41, tk8.0, tk8.2, tk8.3, twm, vim-gtk,
wu-ftpd, xbase-clients, xboard, xcoral, ytalk)
5. prerm, remove|deconfigure
(lesstif-bin, ssh-askpass, ssh, zsh, zsh30
6. prerm, unconditionally
(expect5.24, expect5.31, expectk5.24, ircii, man-db, pgp-i, pgp-us,
sawfish, tetex-bin, wenglish, wfrench, wmaker, wngerman, xcal,
xcolorsel, xcontrib, xless, xrn, xvncviewer, xvt)
7. postrm, remove|failed-upgrade|deconfigure
(gawk)
8. postrm, unconditionally
(freeciv-xaw3d, libqt2-dev, powershell)
Note also that dh_installxaw generates unconditional uses of
update-alternatives in prerms, affecting some of the packages above.
This package list won't be complete, as it's just what I happened to
have installed here.
It's clear that there is no consensus about what to use, and there is no
guidance either in the packaging manual (Section 10 would seem to be the
logical place) or in the update-alternatives(8) man page. I think
Section 10 of the packaging manual ought to clarify this.
It's probably worth trying to analyse the cases in maintainer scripts to
see where they break, on the understanding that a package should not
remove and reinstall its alternative(s) on a simple upgrade, as that
breaks manually set alternatives with our current dpkg as described by
Peter above. I realize this is a bug in dpkg - it's inconsistent with
the behaviour described in the man page - but it's still biting a lot of
people, and there's no need to remove the alternative on a simple
upgrade anyway unless it's being changed.
The following cases result in alternatives being removed that might
shortly afterwards be reinstalled:
prerm upgrade
prerm failed-upgrade
postrm upgrade
postrm failed-upgrade
postrm abort-install
postrm abort-upgrade
Also, removing alternatives in 'postrm abort-upgrade' might mean that
you don't get them back unless 'postinst abort-upgrade' reinstalls them,
and removing alternatives in 'postrm purge' is always redundant if
you've already removed them in either 'prerm remove' or 'postrm remove'.
This leaves prerm remove, prerm deconfigure, postrm remove, and postrm
disappear. [fx: sweats] You only need to call update-alternatives in one
or the other remove case, and I'm not sure about the remaining two
cases.
Could we please have some guidance about this in the packaging manual?
Every time I try to work this out I get a different answer. At least if
all packages do it the same way then any future bugs in
update-alternatives might manifest themselves consistently rather than
in several different and hard-to-predict ways.
Thanks,
--
Colin Watson [cjw44@flatline.org.uk]
---------------------------------------
Received: (at 112828-close) by bugs.debian.org; 31 Aug 2002 10:38:24 +0000
>From rmurray@auric.debian.org Sat Aug 31 05:38:24 2002
Return-path: <rmurray@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] (mail)
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 17l5e3-00033Y-00; Sat, 31 Aug 2002 05:38:23 -0500
Received: from rmurray by auric.debian.org with local (Exim 3.35 1 (Debian))
id 17l5aN-0005Yv-00; Sat, 31 Aug 2002 06:34:35 -0400
From: Manoj Srivastava <srivasta@debian.org>
To: 112828-close@bugs.debian.org
X-Katie: $Revision: 1.17 $
Subject: Bug#112828: fixed in debian-policy 3.5.7.0
Message-Id: <E17l5aN-0005Yv-00@auric.debian.org>
Sender: Ryan Murray <rmurray@auric.debian.org>
Date: Sat, 31 Aug 2002 06:34:35 -0400
Delivered-To: 112828-close@bugs.debian.org
We believe that the bug you reported is fixed in the latest version of
debian-policy, which is due to be installed in the Debian FTP archive:
debian-policy_3.5.7.0.dsc
to pool/main/d/debian-policy/debian-policy_3.5.7.0.dsc
debian-policy_3.5.7.0.tar.gz
to pool/main/d/debian-policy/debian-policy_3.5.7.0.tar.gz
debian-policy_3.5.7.0_all.deb
to pool/main/d/debian-policy/debian-policy_3.5.7.0_all.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 112828@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Manoj Srivastava <srivasta@debian.org> (supplier of updated debian-policy 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 ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sat, 31 Aug 2002 02:18:02 -0500
Source: debian-policy
Binary: debian-policy
Architecture: source all
Version: 3.5.7.0
Distribution: unstable
Urgency: low
Maintainer: Debian Policy List <debian-policy@lists.debian.org>
Changed-By: Manoj Srivastava <srivasta@debian.org>
Description:
debian-policy - Debian Policy Manual and related documents
Closes: 47298 69311 81852 97755 100346 100472 106280 106826 109672 111025 112828 113525 114949 116134 118608 131441 134977 137521 137521 138681 139067 139820 139832 139969 140697 141307 141903 143770 144297 144411 145067 146703 146756 147554 150456 151328 152965 153704 154142 154660 155680 156546 157131
Changes:
debian-policy (3.5.7.0) unstable; urgency=low
.
* Fixed some broken hrefs in links
* No longer use local debiandoc stuff (it's been fixed upstream)
* Added table of contents (index.html) to policy-process.sgml, fixing
the new error reported to bug #137521 closes: Bug#137521
* Fixed a couple of typos closes: Bug#139832
* Ran through the policy document looking for long instances of text in
the <tt> tag, and changed it to <file> where appropriate. This is
since the <file> tag can handle line breaking, but the <t> flag does
not. closes: Bug#139820
* Change the requirement to ask permission to make devices to merely
requiring a notification. closes: Bug#106280
* Added a build dependson docbook utils. closes: Bug#154660
* Since this is being built with a newer version of debiandoc-sgml, this
should display better with lynx. closes: Bug#153704
* Add in the crypto-in-main amendment. closes: Bug#81852, Bug#144411
* we no longer have task packages, instead, we define tasks using a
special field in the control file (and these should be added only
after discussion on the mailing lists) closes: Bug#97755
* Clarify wording in the section for packages providing fonts.
closes: Bug#109672
* Fix the doc base file for policy process closes: Bug#137521, Bug#147554
closes: Bug#146756
* using set -e is not dubious advice. Rejecting this. closes: Bug#139969
* Make the directory one is building under ./debian/ be up to the
maintainer, instead of mandating ./debian/tmp/ closes: Bug#144297
* Add a standards version closes: Bug#145067
* Added virtual package debconf-2.0 closes: Bug#151328
* Added The Window Manager Specification Project support to the default
window manager selection mechanism closes: Bug#155680
* The confusion between /var/mail and /var/spool/mail seems to have been
disambiguated. closes: Bug#114949
* Mention the new Build-Depend-Indep semantic and the new
build-indep/build-arch rules in upgrading checklist closes: Bug#116134
* Made package naming rules in policy consistent. I did not eliminate
the duplication, since I don't want to make major changes to the flow,
since we are supposed to be re-writing policy anyway. closes: Bug#131441
* Clarified wording about cases where we may have concrete and virtual
packages with the same name. closes: Bug#134977
* Fixed typo 'be be' closes: Bug#138681
* Fixed typo in appendix G -- example of diversion closes: Bug#140697
* fix typo shlib: -> shlibs: closes: Bug#141903
* Provide a link between two sections dealing with virtual packages.
closes: Bug#143770
* Fixed xtifr's email address in the menu policy closes: Bug#152965
* Allow shared library names to be have a hyphen between library name
and soversion if the library name ends in a number. closes: Bug#100472
* Permit some libraries to only install static libs. closes: Bug#100346
* Remove the debug option, add noopt closes: Bug#157131, Bug#113525
* provide dhcp-client virtual package. closes: Bug#154142
* We do not need bits in policy that ``should not be enforced''.
closes: Bug#150456
* We are building this with the latest debianndoc-sgml. closes: Bug#146703
* Finish incorporating all of the accepted changes in Bug#72335, and
this closes: Bug#141307, Bug#156546
* Added virtual package aspell-dictionary closes: Bug#139067
* Added virtual package radius-server closes: Bug#118608
* Clarifying manual pages is not a policy issue. closes: Bug#112828
* Corrected the ldconfig handling instructions. closes: Bug#111025
* Not a policy issue. closes: Bug#106826
* Removed the /usr/doc/ symlink clause. closes: Bug#47298, Bug#69311
Files:
f0da89116b92e54347d2924dcb891bc3 792 doc optional debian-policy_3.5.7.0.dsc
538deca6636d771319afea1405dcc196 569509 doc optional debian-policy_3.5.7.0.tar.gz
13c3dd1a4cad18ecb08d13f7605ca9d6 595702 doc optional debian-policy_3.5.7.0_all.deb
fc34e5d47979c1fe6bbbfae067bc25e5 93119 byhand - policy.txt.gz
12f50e6fdbfeda37e11a4588c172b351 2137 byhand - menu-policy.txt.gz
56b51697d5f7924c4c6f95b7e75386fb 1563 byhand - mime-policy.txt.gz
4f02b12bef47d46284be9aedabae845a 4497 byhand - policy-process.txt.gz
d5b675249edb9396659d5ef8c427f9dc 4400 byhand - perl-policy.txt.gz
e84ca799d0bd503879c7332ce7010037 104301 byhand - policy.html.tar.gz
745262ba198b4cd35549768b400ad054 2804 byhand - menu-policy.html.tar.gz
6c9855fc81bbd236d964b00fff6b50db 2163 byhand - mime-policy.html.tar.gz
1936adb9629913a178c5977101073df8 5200 byhand - policy-process.html.tar.gz
ad20fd4399f0cf475919d2c47bac9f69 5804 byhand - perl-policy.html.tar.gz
57bfae059e907807da5ca6978bef12f3 6104 byhand - debconf_specification.txt.gz
2b6ac31aefc3ed74bad716b3fb2eb60f 30171 byhand - debconf_specification.html
3ed7aa5a489834b24bb28ff377a34aa9 10982 byhand - libc6-migration.txt
754f5c28f50298c94d96ee39aa3a0026 9170 byhand - virtual-package-names-list.txt
445f783dd5d3d56e23c32974889f7d69 175739 byhand - policy.ps.gz
7a4d94570f1cb1f7f99c68e42fef5bdf 411899 byhand - policy.pdf.gz
540f308e7fac7ec81f2c065f6a0aabc3 17344 byhand - upgrading-checklist.txt
93679f707ec4cbc94b6f667afb1f2600 34997 byhand - fhs-2.1.html.tar.gz
4beb6c43e8a0845e619e798b5516d217 103024 byhand - fhs.txt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9cIM+Ibrau78kQkwRAme5AJ9p2Nvn8QcNjtGt/Z31fFm6qkxEUgCgr4Ch
iAYeNJy71t9IdQ1nMkoXnlU=
=NMk/
-----END PGP SIGNATURE-----
Reply to: