Re: Pre-Depends: dpkg (>= 1.15.7.2) for dpkg-maintscript-helper okay?
- To: Anders Kaseorg <andersk@MIT.EDU>
- Cc: Steve Langasek <vorlon@debian.org>, debian-devel@lists.debian.org, Jonathan Nieder <jrnieder@gmail.com>, debian-dpkg@lists.debian.org, git@packages.debian.org
- Subject: Re: Pre-Depends: dpkg (>= 1.15.7.2) for dpkg-maintscript-helper okay?
- From: Raphael Hertzog <hertzog@debian.org>
- Date: Mon, 7 Mar 2011 08:16:09 +0100
- Message-id: <[🔎] 20110307071609.GF14615@rivendell.home.ouaza.com>
- Mail-followup-to: Anders Kaseorg <andersk@MIT.EDU>, Steve Langasek <vorlon@debian.org>, debian-devel@lists.debian.org, Jonathan Nieder <jrnieder@gmail.com>, debian-dpkg@lists.debian.org, git@packages.debian.org
- In-reply-to: <[🔎] alpine.DEB.2.02.1103070136380.4468@dr-wily.mit.edu>
- References: <[🔎] alpine.DEB.2.02.1103050345130.4468@dr-wily.mit.edu> <[🔎] 20110305095025.GA16220@virgil.dodds.net> <[🔎] alpine.DEB.2.02.1103070136380.4468@dr-wily.mit.edu>
Hi,
On Mon, 07 Mar 2011, Anders Kaseorg wrote:
> > So in this case the pre-dependency should *not* be set, as it only
> > serves to complicate the upgrade path.
>
> If this becomes the consensus of debian-devel, there are two things that
> should probably be changed:
>
> • The section of the dpkg-maintscript-helper(1) about the Pre-Depends
> being “unconditionally required” should be clarified.
You're misparsing the documentation. It says "using
[dpkg-maintscript-helper] unconditionally requires a pre-dependency" but
then it advise you to avoid the Pre-Depends by protecting the call with
a test:
if dpkg-maintscript-helper supports <command>; then
dpkg-maintscript-helper <command> ...
fi
> • In Debhelper, dh_installdeb shouldn’t add this Pre-Depends automatically
> via ${misc:Pre-Depends} (see #574443).
I think it's fine for debhelper to do it automatically but maybe it could offer
an option to switch to the protected variant and not set the Pre-Depends.
I don't really think that the Pre-Depends on dpkg are problematic. We must just
ensure that we don't get any Pre-Depends loop with dpkg's (pre|)dependencies.
Of course, the pre-depends become mostly irrelevant when the version in
oldstable supports it but that's not the case yet. And it's not unusual for
people to try an upgrade that skips a release... even if we don't officially
support it, it's not a reason to break them when there's no really need to.
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)
Reply to: