Debian bug report logs - #968
kermit should only ask once about the /etc/skel files
Package: kermit; Reported by: iwj10@cus.cam.ac.uk (Ian Jackson); Done: mitchell@mdd.comm.mot.com (Bill Mitchell).
Message received at debian-bugs:
From cus.cam.ac.uk!iwj10 Tue Jun 13 11:50:32 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sLb2m-0005nTC; Tue, 13 Jun 95 11:50 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA00720
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Tue, 13 Jun 1995 11:43:13 -0700
Received: by bootes.cus.cam.ac.uk
(Smail-3.1.29.0 #36) id m0sLaf4-000C0sC; Tue, 13 Jun 95 19:26 BST
Received: by chiark
id <m0sLaEI-0000XqZ@chiark.al.cl.cam.ac.uk>
(Debian /\oo/\ Smail3.1.29.1 #29.32); Tue, 13 Jun 95 18:58 BST
Message-Id: <m0sLaEI-0000XqZ@chiark.al.cl.cam.ac.uk>
Date: Tue, 13 Jun 95 18:58 BST
From: iwj10@cus.cam.ac.uk (Ian Jackson)
To: debian-bugs@pixar.com
Subject: Re: Bug#968: kermit should only ask once about the /etc/skel files
In-Reply-To: <9506122138.AA22390@bb29c.mdd.comm.mot.com>
References: <9506122138.AA22390@bb29c.mdd.comm.mot.com>
Bill Mitchell writes:
> Regarding "dpkg --various_options", I think we're on the wrong track if
> we expect Joe C. User (C. for Casual) to deal with this, and do it
> without error. Joe will use the dselect interface, and that interface
> needs to address a very high percentage of his package administration
> needs. For packages with nontrivial install-time configuration
> interaction, I think Joe has a legitimate need to be able to do
> a post-install package reconfiguration.
I agree.
> Given that dselect is Joe's package administration interface, I think
> that Joe needs to be able to initiate reconfiguration of an installed
> package via dselect. This would be a new dselect requirement, I think.
> It'd be nice if dselect could indicate to Joe somehow whether or
> not the package supported post-install reconfiguration (dselect
> would need some help from the package to do this -- some convention
> to be established for package maintainers to indicate that this
> is supported). For packages supporting post-install reconfiguration,
> dselect might call the postinst with a "--reconfigure" argument,
> or somesuch.
This would be one way of doing it, yes. (Though `reconfigure' rather
than `configure' would be a better bet - none of the other maintainer
script options start with hyphens.)
Another way (that would make it obvious to dselect/dpkg whether a
package could be reconfigured) would be to use a separate maintainer
script.
Discussion on this topic is welcome, but I can't promise to have time
to join in, so I'd like you all to argue amongst yourselves :-).
> Regarding the postinst being able to DTRT during upgrades while
> minimizing user interaction. Perhaps the kermit postinst, and
> other postinsts, need to be smarter about this.
Yes, that was what I would be suggesting.
> The ideal situation would be for the postinst to only ask necessary
> questions. To do that it'd need to know what package version (if any)
> is being replaced, and what vintage (if any) install-time-configurable
> files are installed (the installed files might predate the installed
> package). I'll think about smartening up the kermit postinst, but
> it occurs to me that this would be easier all around if there was
> a simple (and standard) method for the postinst script to know if
> it was upgrading a package and, if so, what package vintage. How
> about having dpkg place this info in environment variables before
> invoking postinstall and/or postrm scripts? INSTALLED_VERSION and
> INSTALLED_REVISION, or somesuch?
This is difficult, because by the time the postinst is running only
one version of the package is installed, and it's not easy to define
what the `old version' of the package (if any) is.
How about `old version = last version for which the postinst script
was *started* (or conffiles update completed), even if it didn't
complete' ?
I could pass the version number as an argument to the postinst script.
> Hopefully, a full system upgrade will only reinstall currently-installed
> packages for which the VERSION and PACKAGE_REVISION fields indicate that
> an upgrade is indicated, not every installed package on the system.
Your hope shall be fulfilled.
Ian.
Acknowledgement sent to iwj10@cus.cam.ac.uk (Ian Jackson):
Extra info received and forwarded.
Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#968; Package kermit.
Full text available.
Message received at debian-bugs:
From mdd.comm.mot.com!mitchell Mon Jun 12 14:41:43 1995
Return-Path: <mitchell@mdd.comm.mot.com>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sLHEs-0007mEC; Mon, 12 Jun 95 14:41 PDT
Received: from motgate.mot.com by pixar.com with SMTP id AA01431
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Mon, 12 Jun 1995 14:40:14 -0700
Received: from pobox.mot.com (pobox.mot.com [129.188.137.100]) by motgate.mot.com (8.6.11/8.6.10/MOT-3.7) with ESMTP id QAA19599; Mon, 12 Jun 1995 16:38:34 -0500
Received: from mdd.comm.mot.com (mdisea.mdd.comm.mot.com [138.242.64.201]) by pobox.mot.com (8.6.11/8.6.10/MOT-3.7) with SMTP id QAA12836; Mon, 12 Jun 1995 16:38:33 -0500
Received: from bb29c.mdd.comm.mot.com by mdd.comm.mot.com (4.1/SMI-4.1)
id AA06021; Mon, 12 Jun 95 14:38:31 PDT
Received: by bb29c.mdd.comm.mot.com (4.1/SMI-4.1)
id AA22390; Mon, 12 Jun 95 14:38:24 PDT
Date: Mon, 12 Jun 95 14:38:24 PDT
From: mitchell@mdd.comm.mot.com (Bill Mitchell)
Message-Id: <9506122138.AA22390@bb29c.mdd.comm.mot.com>
To: debian-bugs@pixar.com, iwj10@cus.cam.ac.uk
Subject: Re: Bug#968: kermit should only ask once about the /etc/skel files
iwj10@cus.cam.ac.uk (Ian Jackson) wrote, regarding questions re config
file changes during upgrade.
> > [...]
> Or for ELF conversion or package dependency changes or .deb file
> format change or whatever. [...]
> The best universal way to get a package `reconfigured' is:
> dpkg --remove --purge foo
> dpkg --install foo-latest-version.deb
> You should be able to write your postinst script so that this will
> DTRT. [...]
> There are well over a hundred Debian packages at the moment; in a few
> months there'll probably be over 250. If one in five asks a single
> question at each reinstall that's 50 questions to be answered during a
> full system upgrade from the quarterly CDROM or whatever.
A couple of thoughts on this general topic have come out of this
discussion for me.
Regarding "dpkg --various_options", I think we're on the wrong track if
we expect Joe C. User (C. for Casual) to deal with this, and do it
without error. Joe will use the dselect interface, and that interface
needs to address a very high percentage of his package administration
needs. For packages with nontrivial install-time configuration
interaction, I think Joe has a legitimate need to be able to do
a post-install package reconfiguration.
Given that dselect is Joe's package administration interface, I think
that Joe needs to be able to initiate reconfiguration of an installed
package via dselect. This would be a new dselect requirement, I think.
It'd be nice if dselect could indicate to Joe somehow whether or
not the package supported post-install reconfiguration (dselect
would need some help from the package to do this -- some convention
to be established for package maintainers to indicate that this
is supported). For packages supporting post-install reconfiguration,
dselect might call the postinst with a "--reconfigure" argument,
or somesuch.
Regarding the postinst being able to DTRT during upgrades while
minimizing user interaction. Perhaps the kermit postinst, and
other postinsts, need to be smarter about this.
Thinking back on it -- the kermit postinst added an install-time
/etc/skel file configuration option or two at one point (file
transfer type and filename translation mode, as I recall).
I think that ehancement coincided with a change in upstream version
number, and I'm not sure whether the /etc/skel files from the
previous version would have been compatable with the files from
the new version (I'm guessinnng that they would have been, but
that's not a given).
The ideal situation would be for the postinst to only ask necessary
questions. To do that it'd need to know what package version (if any)
is being replaced, and what vintage (if any) install-time-configurable
files are installed (the installed files might predate the installed
package). I'll think about smartening up the kermit postinst, but
it occurs to me that this would be easier all around if there was
a simple (and standard) method for the postinst script to know if
it was upgrading a package and, if so, what package vintage. How
about having dpkg place this info in environment variables before
invoking postinstall and/or postrm scripts? INSTALLED_VERSION and
INSTALLED_REVISION, or somesuch?
> There are well over a hundred Debian packages at the moment; in a few
> months there'll probably be over 250. If one in five asks a single
> question at each reinstall that's 50 questions to be answered during a
> full system upgrade from the quarterly CDROM or whatever.
Hopefully, a full system upgrade will only reinstall currently-installed
packages for which the VERSION and PACKAGE_REVISION fields indicate that
an upgrade is indicated, not every installed package on the system.
Acknowledgement sent to mitchell@mdd.comm.mot.com (Bill Mitchell):
Extra info received and forwarded.
Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#968; Package kermit.
Full text available.
Message received at debian-bugs:
From cus.cam.ac.uk!iwj10 Mon Jun 12 07:00:21 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sLA2P-0006H0C; Mon, 12 Jun 95 07:00 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA29395
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Mon, 12 Jun 1995 06:58:54 -0700
Received: by bootes.cus.cam.ac.uk
(Smail-3.1.29.0 #36) id m0sLA2D-000BzoC; Mon, 12 Jun 95 15:00 BST
Received: by chiark
id <m0sKyA3-0000YJZ@chiark.al.cl.cam.ac.uk>
(Debian /\oo/\ Smail3.1.29.1 #29.32); Mon, 12 Jun 95 02:19 BST
Message-Id: <m0sKyA3-0000YJZ@chiark.al.cl.cam.ac.uk>
Date: Mon, 12 Jun 95 02:19 BST
From: iwj10@cus.cam.ac.uk (Ian Jackson)
To: debian-bugs@pixar.com
Subject: Re: Bug#968: kermit should only ask once about the /etc/skel files
In-Reply-To: <Pine.SUN.3.91.950610182231.21624E-100000@bb29c>
References: <m0sKQdC-0000XfZ@chiark.al.cl.cam.ac.uk>
<Pine.SUN.3.91.950610182231.21624E-100000@bb29c>
Bill Mitchell writes:
> On Sat, 10 Jun 1995, Ian Jackson wrote:
> > you assuming that new versions of the kermit package will not come out
> > more frequently than that ?
>
> Upgrades due to changes in the upstream kermit distribution probably
> won't. Debian upgrades might appear more frequently, as today's
> bugfix upgrade for a bug I introduced in the last upgrade attests.
Or for ELF conversion or package dependency changes or .deb file
format change or whatever.
> Actually, the scenario I had in mind was re-installation with the
> purpose of installing the /etc/skel files, after an initial package
> installation in which the user chose not to install them.
The best universal way to get a package `reconfigured' is:
dpkg --remove --purge foo
dpkg --install foo-latest-version.deb
You should be able to write your postinst script so that this will
DTRT.
Surely the whole point of having an upgradeable system is that you
_don't_ have to reconfigure everything when you upgrade it ?!
> > Remember that the user will get asked this *every* time they upgrade.
> >[...]
> > If people get the impression that they will have to answer all sorts
> > of stupid questions again every time they upgrade they won't do so.
>
> It's only one question, [...]
There are well over a hundred Debian packages at the moment; in a few
months there'll probably be over 250. If one in five asks a single
question at each reinstall that's 50 questions to be answered during a
full system upgrade from the quarterly CDROM or whatever.
I don't think that's a good idea.
Ian.
Acknowledgement sent to iwj10@cus.cam.ac.uk (Ian Jackson):
Extra info received and forwarded.
Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#968; Package kermit.
Full text available.
Message received at debian-bugs:
From mdd.comm.mot.com!mitchell Sat Jun 10 18:35:13 1995
Return-Path: <mitchell@mdd.comm.mot.com>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sKbvk-0006q4C; Sat, 10 Jun 95 18:35 PDT
Received: from motgate.mot.com by pixar.com with SMTP id AA11767
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sat, 10 Jun 1995 18:33:39 -0700
Received: from pobox.mot.com (pobox.mot.com [129.188.137.100]) by motgate.mot.com (8.6.11/8.6.10/MOT-3.7) with ESMTP id UAA23133; Sat, 10 Jun 1995 20:33:56 -0500
Received: from mdd.comm.mot.com (mdisea.mdd.comm.mot.com [138.242.64.201]) by pobox.mot.com (8.6.11/8.6.10/MOT-3.7) with SMTP id UAA18862; Sat, 10 Jun 1995 20:33:55 -0500
Received: from bb29c.mdd.comm.mot.com by mdd.comm.mot.com (4.1/SMI-4.1)
id AA00267; Sat, 10 Jun 95 18:33:54 PDT
Received: by bb29c.mdd.comm.mot.com (4.1/SMI-4.1)
id AA21680; Sat, 10 Jun 95 18:33:51 PDT
Date: Sat, 10 Jun 1995 18:33:50 -0700 (PDT)
From: Bill Mitchell <mitchell@mdd.comm.mot.com>
X-Sender: mitchell@bb29c
To: Ian Jackson <iwj10@cus.cam.ac.uk>, debian-bugs@pixar.com
Cc: debian-bugs@pixar.com
Subject: Re: Bug#968: kermit should only ask once about the /etc/skel files
In-Reply-To: <m0sKQdC-0000XfZ@chiark.al.cl.cam.ac.uk>
Message-Id: <Pine.SUN.3.91.950610182231.21624E-100000@bb29c>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sat, 10 Jun 1995, Ian Jackson wrote:
> Bill Mitchell writes:
> > > The kermit package asks
> > > Do you wish to install init files in /etc/skel at this time?
> > > Please answer with "y", "n", or "q": n
> > > even if you've already answered this question with `n' during a
> > > previous installation.
> >
> > I'm closing this. I consider it a non-bug.
> > I don't think that not wishing to install those files during installation
> > in May implies that the files are not wished to be installed during an
> > upgrade in December. It's a long, long time from May to December.
>
> Why do you assume that the interval will be May to December ? Are
Actually, I wasn't assuming that. That line from September Song
happened to pop into my head as I was responding, and I couldn't
resist the temptation to use it.
> you assuming that new versions of the kermit package will not come out
> more frequently than that ?
Upgrades due to changes in the upstream kermit distribution probably
won't. Debian upgrades might appear more frequently, as today's
bugfix upgrade for a bug I introduced in the last upgrade attests.
Actually, the scenario I had in mind was re-installation with the
purpose of installing the /etc/skel files, after an initial package
installation in which the user chose not to install them.
> Remember that the user will get asked this *every* time they upgrade.
>[...]
> If people get the impression that they will have to answer all sorts
> of stupid questions again every time they upgrade they won't do so.
It's only one question, if they choose to answer it "n". The postinst
takes a negative response to the question about installing the
/etc/skel files as an indication that all the other questions
about options in those files are unnecessary, and doesn't ask them.
> Ian M., do you have a position on this question ?
Acknowledgement sent to Bill Mitchell <mitchell@mdd.comm.mot.com>:
Extra info received and forwarded.
Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#968; Package kermit.
Full text available.
Message received at debian-bugs:
From cus.cam.ac.uk!iwj10 Sat Jun 10 11:59:42 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sKVl0-0005z9C; Sat, 10 Jun 95 11:59 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA26614
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sat, 10 Jun 1995 11:58:04 -0700
Received: by bootes.cus.cam.ac.uk
(Smail-3.1.29.0 #36) id m0sKVkJ-000BzaC; Sat, 10 Jun 95 19:58 BST
Received: by chiark
id <m0sKQdC-0000XfZ@chiark.al.cl.cam.ac.uk>
(Debian /\oo/\ Smail3.1.29.1 #29.31); Sat, 10 Jun 95 14:31 BST
Message-Id: <m0sKQdC-0000XfZ@chiark.al.cl.cam.ac.uk>
Date: Sat, 10 Jun 95 14:31 BST
From: iwj10@cus.cam.ac.uk (Ian Jackson)
To: debian-bugs@pixar.com
Subject: Re: Bug#968: kermit should only ask once about the /etc/skel files
Bill Mitchell writes:
> > The kermit package asks
> > Do you wish to install init files in /etc/skel at this time?
> > Please answer with "y", "n", or "q": n
> > even if you've already answered this question with `n' during a
> > previous installation.
>
> I'm closing this. I consider it a non-bug.
>
> I don't think that not wishing to install those files during installation
> in May implies that the files are not wished to be installed during an
> upgrade in December. It's a long, long time from May to December.
Why do you assume that the interval will be May to December ? Are
you assuming that new versions of the kermit package will not come out
more frequently than that ?
Remember that the user will get asked this *every* time they upgrade.
For some users this may only be twice a year, but for others it will
be much for frequently.
We want to make upgrading as painless as possible - much of our effort
has been concentrated in making it as easy as possible to upgrade to
the latest version as soon as it comes out.
If people get the impression that they will have to answer all sorts
of stupid questions again every time they upgrade they won't do so.
Ian M., do you have a position on this question ?
Ian.
Acknowledgement sent to iwj10@cus.cam.ac.uk (Ian Jackson):
Extra info received and forwarded.
Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#968; Package kermit.
Full text available.
Message received at debian-bugs-done:
From mdd.comm.mot.com!mitchell Thu Jun 8 07:52:14 1995
Return-Path: <mitchell@mdd.comm.mot.com>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sJiwQ-0007m2C; Thu, 8 Jun 95 07:52 PDT
Received: from motgate.mot.com by pixar.com with SMTP id AA22045
(5.67b/IDA-1.5 for debian-bugs-done-pipe@mongo.pixar.com); Thu, 8 Jun 1995 07:50:48 -0700
Received: from pobox.mot.com (pobox.mot.com [129.188.137.100]) by motgate.mot.com (8.6.11/8.6.10/MOT-3.7) with ESMTP id JAA12533; Thu, 8 Jun 1995 09:52:11 -0500
Received: from mdd.comm.mot.com (mdisea.mdd.comm.mot.com [138.242.64.201]) by pobox.mot.com (8.6.11/8.6.10/MOT-3.7) with SMTP id JAA20192; Thu, 8 Jun 1995 09:52:09 -0500
Received: from bb29c.mdd.comm.mot.com by mdd.comm.mot.com (4.1/SMI-4.1)
id AA12002; Thu, 8 Jun 95 07:52:08 PDT
Received: by bb29c.mdd.comm.mot.com (4.1/SMI-4.1)
id AA20068; Thu, 8 Jun 95 07:52:07 PDT
Date: Thu, 8 Jun 95 07:52:07 PDT
From: mitchell@mdd.comm.mot.com (Bill Mitchell)
Message-Id: <9506081452.AA20068@bb29c.mdd.comm.mot.com>
To: debian-bugs-done@pixar.com, iwj10@cus.cam.ac.uk
Subject: Re: Bug#968: kermit should only ask once about the /etc/skel files
Cc: debain-devel@pixar.com
> Package: kermit
> Version: 190-2
>
> The kermit package asks
> Do you wish to install init files in /etc/skel at this time?
> Please answer with "y", "n", or "q": n
> even if you've already answered this question with `n' during a
> previous installation.
I'm closing this. I consider it a non-bug.
I don't think that not wishing to install those files during installation
in May implies that the files are not wished to be installed during an
upgrade in December. It's a long, long time from May to December.
Notification sent to iwj10@cus.cam.ac.uk (Ian Jackson):
Bug acknowledged by developer.
Full text available.
Reply sent to mitchell@mdd.comm.mot.com (Bill Mitchell):
You have taken responsibility.
Full text available.
Message received at debian-bugs:
From cus.cam.ac.uk!iwj10 Thu Jun 8 05:17:22 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sJgWY-0007hlC; Thu, 8 Jun 95 05:17 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA19219
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Thu, 8 Jun 1995 05:15:54 -0700
Received: by bootes.cus.cam.ac.uk
(Smail-3.1.29.0 #36) id m0sJgWO-000C01C; Thu, 8 Jun 95 13:17 BST
Received: by chiark
id <m0sJUPR-0000YKZ@chiark.al.cl.cam.ac.uk>
(Debian /\oo/\ Smail3.1.29.1 #29.31); Thu, 8 Jun 95 00:21 BST
Message-Id: <m0sJUPR-0000YKZ@chiark.al.cl.cam.ac.uk>
Date: Thu, 8 Jun 95 00:21 BST
From: iwj10@cus.cam.ac.uk (Ian Jackson)
To: Debian bugs submission address <debian-bugs@pixar.com>
Subject: kermit should only ask once about the /etc/skel files
Package: kermit
Version: 190-2
The kermit package asks
Do you wish to install init files in /etc/skel at this time?
Please answer with "y", "n", or "q": n
even if you've already answered this question with `n' during a
previous installation.
Ian.
Acknowledgement sent to iwj10@cus.cam.ac.uk (Ian Jackson):
New bug report received and forwarded.
Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#968; Package kermit.
Full text available.
Ian Jackson /
iwj10@thor.cam.ac.uk,
with the debian-bugs tracking mechanism