Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian dpkg (http://www.linux-archive.org/debian-dpkg/)
-   -   dpkg-maintscript-helper(1): dpkg only has to be unpacked for it to be usable (http://www.linux-archive.org/debian-dpkg/495534-dpkg-maintscript-helper-1-dpkg-only-has-unpacked-usable.html)

Jonathan Nieder 02-28-2011 11:53 PM

dpkg-maintscript-helper(1): dpkg only has to be unpacked for it to be usable
 
Some packages use a pre-dependency to ensure a version of dpkg with
dpkg-maintscript-helper is available by the time preinst is run.
Clarify that "available" here means "unpacked", not configured, for
some added peace of mind.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
Raphael Hertzog wrote:

> Unpacking is enough. It's just a shell script, there's nothing more needed
> to make it work.

Thanks. How about this patch?

[...]
> Until then I advise people to use the protected version (with the if test)
> or to add the pre-dependency (but it's not really needed to discuss it on
> -devel, introducing a requirement to upgrade dpkg early in the upgrade
> process is not a big deal).

Hmm, isn't the policy on pre-dependencies rather meant to avoid
pre-dependency loops? So, for example, it would be a Bad Thing™ if
coreutils acquires a pre-dependency (or dependency, for that matter)
on dpkg for this feature.

I don't see why it's justified to waive the policy §3.5 requirement
here without at least some discussion on the debian-policy list.

debian/changelog | 2 ++
man/dpkg-maintscript-helper.1 | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e488faf..c34dbd7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -55,6 +55,8 @@ dpkg (1.16.0) UNRELEASED; urgency=low
[ Jonathan Nieder ]
* Remove support for use of synchronous sync(2), due to its pernicious
side-effects and to ease maintenance.
+ * Clarify that an up-to-date dpkg only needs to be unpacked for
+ dpkg-maintscript-helper to work.

[ Updated programs translations ]
* Portuguese (Miguel Figueiredo).
diff --git a/man/dpkg-maintscript-helper.1 b/man/dpkg-maintscript-helper.1
index c01ac78..4cd061f 100644
--- a/man/dpkg-maintscript-helper.1
+++ b/man/dpkg-maintscript-helper.1
@@ -110,7 +110,7 @@ abort-upgrade/abort-install, the fBpostrmfP renames
.P
Given that fBdpkg-maintscript-helperfP is used in the fBpreinstfP,
using it unconditionally requires a pre-dependency to ensure that the
-required version of dpkg has been configured before. The required version
+required version of dpkg has been unpacked before. The required version
depends on the command used, for fBrm_conffilefP and fBmv_conffilefP
it is 1.15.7.2:
.P
--
1.7.4.1


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110301005313.GA5597@elie">http://lists.debian.org/20110301005313.GA5597@elie

Raphael Hertzog 03-01-2011 07:27 AM

dpkg-maintscript-helper(1): dpkg only has to be unpacked for it to be usable
 
On Mon, 28 Feb 2011, Jonathan Nieder wrote:
> Thanks. How about this patch?

Pushed, thanks.

Cheers,
--
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110301082739.GA30525@rivendell.home.ouaza.com">h ttp://lists.debian.org/20110301082739.GA30525@rivendell.home.ouaza.com


All times are GMT. The time now is 12:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.