Debian Bug report logs - #518737
dpkg: install-info should still exit zero if info document is not found

version graph

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg.

Reported by: Neil Williams <codehelp@debian.org>

Date: Sun, 8 Mar 2009 11:18:04 UTC

Severity: wishlist

Found in version dpkg/1.14.25

Fixed in version 1.15.4

Done: Raphael Hertzog <hertzog@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, debian-embedded@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#518737; Package dpkg. (Sun, 08 Mar 2009 11:18:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
New Bug report received and forwarded. Copy sent to debian-embedded@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>. (Sun, 08 Mar 2009 11:18:06 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dpkg: install-info should still exit zero if info document is not found
Date: Sun, 08 Mar 2009 11:16:53 +0000
Package: dpkg
Version: 1.14.25
Severity: normal

Various GNU packages handle info documents in maintainer scripts via install-info
but Emdebian Grip removes those info documents, just as it removes manpages and
other documentation, to save space. The files are removed from the packages and
the reduced packages made available via http://www.emdebian.org/grip to handle
bandwidth and temporary space issues on the devices running Grip.

Currently, Grip needs to replace install-info from dpkg with an empty script because
install-info halts the entire installation if a single info document is missing.

The packages themselves have the Emdebian version string (em[0-9]) suffix but have
no changes to the maintainer scripts (to maintain compatibility with Debian).

To simplify Grip installations, install-info needs to not halt the installation of
a package merely because the info document has been removed from the package. A
warning or message is not needed either - users of Emdebian Grip know that info
documents and manpages are not going to exist in the Grip packages. Retaining binary
compatibility with Debian does mean that individual packages can be installed from
Debian where the user wants to have the extra files and apt-pinning can do the rest.

update-alternatives has now gained this support and it would be much appreciated if
install-info could be quiet about missing info documents whilst still supporting
those Debian packages that the user may still wish to install.

This would make info management as simple as manpage management where man-db really
doesn't care if a package used to contain a manpage but does not contain one anymore,
it just does the right thing and carries on without halting the installation.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg depends on:
ii  coreutils                     7.1-2      The GNU core utilities
ii  libc6                         2.9-4      GNU C Library: Shared libraries
ii  lzma                          4.43-14    Compression method of 7z format in

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt                           0.7.20.2   Advanced front-end for dpkg

-- no debconf information




Severity set to `wishlist' from `normal' Request was from Raphael Hertzog <hertzog@debian.org> to control@bugs.debian.org. (Sun, 08 Mar 2009 15:33:05 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#518737; Package dpkg. (Sun, 08 Mar 2009 15:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raphael Hertzog <hertzog@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Sun, 08 Mar 2009 15:48:02 GMT) Full text and rfc822 format available.

Message #12 received at 518737@bugs.debian.org (full text, mbox):

From: Raphael Hertzog <hertzog@debian.org>
To: Neil Williams <codehelp@debian.org>, 518737@bugs.debian.org
Cc: texinfo@packages.debian.org
Subject: Re: Bug#518737: dpkg: install-info should still exit zero if info document is not found
Date: Sun, 8 Mar 2009 16:46:53 +0100
On Sun, 08 Mar 2009, Neil Williams wrote:
> The packages themselves have the Emdebian version string (em[0-9]) suffix but have
> no changes to the maintainer scripts (to maintain compatibility with Debian).
> 
> To simplify Grip installations, install-info needs to not halt the installation of
> a package merely because the info document has been removed from the package. A
> warning or message is not needed either - users of Emdebian Grip know that info
> documents and manpages are not going to exist in the Grip packages. Retaining binary
> compatibility with Debian does mean that individual packages can be installed from
> Debian where the user wants to have the extra files and apt-pinning can do the rest.
> 
> update-alternatives has now gained this support and it would be much appreciated if
> install-info could be quiet about missing info documents whilst still supporting
> those Debian packages that the user may still wish to install.

The plan is always to get rid of install-info inside dpkg, so asking us
for this change is not the right long-term solution. (And contrary to
update-alternatives, I don't think such a change make sense)

I would really suggest that you design a solution that doesn't require
the postinst snippet at all. A simple solution could be:
- have a package "install-info" register a file trigger on /usr/share/install-info/
- have other packages provide a .install-info file in that directory that
  tells how install-info should be called
- add a dh_installinfo helper to automatize the installation of this file
- have info readers depend on the new install-info package

Opinions ?

Cheers,
-- 
Raphaël Hertzog

Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny :
http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#518737; Package dpkg. (Sun, 08 Mar 2009 16:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Sun, 08 Mar 2009 16:21:02 GMT) Full text and rfc822 format available.

Message #17 received at 518737@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: Raphael Hertzog <hertzog@debian.org>
Cc: 518737@bugs.debian.org, texinfo@packages.debian.org
Subject: Re: Bug#518737: dpkg: install-info should still exit zero if info document is not found
Date: Sun, 8 Mar 2009 16:20:11 +0000
[Message part 1 (text/plain, inline)]
On Sun, 8 Mar 2009 16:46:53 +0100
Raphael Hertzog <hertzog@debian.org> wrote:

> On Sun, 08 Mar 2009, Neil Williams wrote:
> > The packages themselves have the Emdebian version string (em[0-9]) suffix but have
> > no changes to the maintainer scripts (to maintain compatibility with Debian).
> > 
> > To simplify Grip installations, install-info needs to not halt the installation of
> > a package merely because the info document has been removed from the package. A
> > warning or message is not needed either - users of Emdebian Grip know that info
> > documents and manpages are not going to exist in the Grip packages. Retaining binary
> > compatibility with Debian does mean that individual packages can be installed from
> > Debian where the user wants to have the extra files and apt-pinning can do the rest.
> > 
> > update-alternatives has now gained this support and it would be much appreciated if
> > install-info could be quiet about missing info documents whilst still supporting
> > those Debian packages that the user may still wish to install.
> 
> The plan is always to get rid of install-info inside dpkg, so asking us
> for this change is not the right long-term solution. (And contrary to
> update-alternatives, I don't think such a change make sense)

Any timescales?

Will the package containing install-info become Priority: required or
will all packages using info documents need to be changed to check for
install-info in their postinsts?

> I would really suggest that you design a solution that doesn't require
> the postinst snippet at all. A simple solution could be:
> - have a package "install-info" register a file trigger on /usr/share/install-info/
> - have other packages provide a .install-info file in that directory that
>   tells how install-info should be called
> - add a dh_installinfo helper to automatize the installation of this file
> - have info readers depend on the new install-info package
> 
> Opinions ?

One thing I cannot do is modify the relevant debian/rules of the
packages concerned because Grip does not rebuild any packages, in order
to retain binary compatibility with Debian.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.linux.codehelp.co.uk/
http://e-mail.is-not-s.ms/

[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#518737; Package dpkg. (Sun, 08 Mar 2009 16:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raphael Hertzog <hertzog@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Sun, 08 Mar 2009 16:39:02 GMT) Full text and rfc822 format available.

Message #22 received at 518737@bugs.debian.org (full text, mbox):

From: Raphael Hertzog <hertzog@debian.org>
To: Neil Williams <codehelp@debian.org>
Cc: 518737@bugs.debian.org, texinfo@packages.debian.org
Subject: Re: Bug#518737: dpkg: install-info should still exit zero if info document is not found
Date: Sun, 8 Mar 2009 17:35:27 +0100
On Sun, 08 Mar 2009, Neil Williams wrote:
> Any timescales?

We already wanted that for lenny but nobody found the time to drive this
change… so no I don't know the timescale.

> Will the package containing install-info become Priority: required or
> will all packages using info documents need to be changed to check for
> install-info in their postinsts?

In the transition period, dpkg will likely depend on the package providing
install-info. But the long term goal is surely to decouple this from dpkg
and have scripts not assume anything about its availability. But this
could be moot sooner if we implement what I suggested below.

> > I would really suggest that you design a solution that doesn't require
> > the postinst snippet at all. A simple solution could be:
> > - have a package "install-info" register a file trigger on /usr/share/install-info/
> > - have other packages provide a .install-info file in that directory that
> >   tells how install-info should be called
> > - add a dh_installinfo helper to automatize the installation of this file
> > - have info readers depend on the new install-info package
> > 
> > Opinions ?
> 
> One thing I cannot do is modify the relevant debian/rules of the
> packages concerned because Grip does not rebuild any packages, in order
> to retain binary compatibility with Debian.

This "solution" is not for Emdebian, it's for Debian as a whole. So you
would not have to modify anything.

Cheers,
-- 
Raphaël Hertzog

Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny :
http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#518737; Package dpkg. (Sun, 08 Mar 2009 18:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Sun, 08 Mar 2009 18:00:02 GMT) Full text and rfc822 format available.

Message #27 received at 518737@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: Raphael Hertzog <hertzog@debian.org>
Cc: 518737@bugs.debian.org, texinfo@packages.debian.org
Subject: Re: Bug#518737: dpkg: install-info should still exit zero if info document is not found
Date: Sun, 8 Mar 2009 17:59:30 +0000
[Message part 1 (text/plain, inline)]
On Sun, 8 Mar 2009 17:35:27 +0100
Raphael Hertzog <hertzog@debian.org> wrote:

> In the transition period, dpkg will likely depend on the package providing
> install-info. But the long term goal is surely to decouple this from dpkg
> and have scripts not assume anything about its availability. But this
> could be moot sooner if we implement what I suggested below.
> 
> > > I would really suggest that you design a solution that doesn't require
> > > the postinst snippet at all. A simple solution could be:
> > > - have a package "install-info" register a file trigger on /usr/share/install-info/
> > > - have other packages provide a .install-info file in that directory that
> > >   tells how install-info should be called
> > > - add a dh_installinfo helper to automatize the installation of this file
> > > - have info readers depend on the new install-info package
> > > 
> > > Opinions ?
> > 
> > One thing I cannot do is modify the relevant debian/rules of the
> > packages concerned because Grip does not rebuild any packages, in order
> > to retain binary compatibility with Debian.
> 
> This "solution" is not for Emdebian, it's for Debian as a whole. So you
> would not have to modify anything.

OK, sorry for the misunderstanding.

Do we know how many packages use info documents?
$ ls /usr/share/info/*.gz -1|xargs dpkg -S|cut -d':' -f1 |sort -u|wc -l
45
that's just on this system.

I've had a quick look via UDD but I can't see how the existing table
structures can provide information on what packages do in postinst
scripts.

The initial set would be (based on a Lenny debootstrap):

Clint Adams <schizo@debian.org>
   cpio
   sed

Eric Dorland <eric@debian.org>
   automake1.10
   automake1.7

Bdale Garbee <bdale@gag.com>
   gzip

LaMont Jones <lamont@debian.org>
   util-linux

Matthias Klose <doko@debian.org>
   readline5

Noèl Köthe <noel@debian.org>
   wget

Steve Langasek <vorlon@debian.org>
   nano (U)

Chuan-kai Lin <cklin@debian.org>
   findutils (U)

Jordi Mallach <jordi@debian.org>
   nano

Andreas Metzler <ametzler@debian.org>
   findutils

Michael Stone <mstone@debian.org>
   coreutils

Santiago Vila <sanvila@debian.org>
   gettext
   m4

Martin Zobel-Helas <zobel@debian.org>
   ed

If a simple debootstrap works without info documents, it makes it a lot
easier to manage because workarounds don't need to be forced into the
debootstrap stage but can be handled afterwards.

Still, it would appear to be a reasonable size transition - I don't
have the time to push the entire thing. All I want is for install-info
to not get in the way of the installations.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.linux.codehelp.co.uk/
http://e-mail.is-not-s.ms/

[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#518737; Package dpkg. (Mon, 09 Mar 2009 14:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Norbert Preining <preining@logic.at>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Mon, 09 Mar 2009 14:06:02 GMT) Full text and rfc822 format available.

Message #32 received at 518737@bugs.debian.org (full text, mbox):

From: Norbert Preining <preining@logic.at>
To: Raphael Hertzog <hertzog@debian.org>
Cc: Neil Williams <codehelp@debian.org>, 518737@bugs.debian.org, texinfo@packages.debian.org
Subject: Re: Bug#518737: dpkg: install-info should still exit zero if info document is not found
Date: Mon, 9 Mar 2009 15:04:41 +0100
[Message part 1 (text/plain, inline)]
Hi all,

sorry to chime in only now, I was away mountaineering.

On So, 08 Mär 2009, Raphael Hertzog wrote:
> We already wanted that for lenny but nobody found the time to drive this
> change… so no I don't know the timescale.

Right, that is the fundamental problem.

I carry around a transisiton plan we worked on some time ago, attached.
I once (quite some time ago) checked all the install-info invocations by
grepping for install-info in all the postinst/postrms and AFAIS there
are not too many packages using things that are not supported by current
texinfo.

Finally I have to say that I am currently not able to do much work on
that, since I am too much taken by packaging TeX Live 2008 (long
overdue) after the complete rewrite of TL2008 stuff.

I could suggest to package a current texinfo as is without changing
anything else, but that would give us at least a test bed to try all
invocations with curretn ginstall-info.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at>        Vienna University of Technology
Debian Developer <preining@debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
THURNBY (n.)
A rucked-up edge of carpet or linoleum which everyone says someone
will trip over and break a leg unless it gets fixed. After a year or
two someone trips over it and breaks a leg.
			--- Douglas Adams, The Meaning of Liff
[transition-plan.txt (text/plain, attachment)]

Reply sent to Raphael Hertzog <hertzog@debian.org>:
You have taken responsibility. (Sun, 06 Sep 2009 10:18:17 GMT) Full text and rfc822 format available.

Notification sent to Neil Williams <codehelp@debian.org>:
Bug acknowledged by developer. (Sun, 06 Sep 2009 10:18:17 GMT) Full text and rfc822 format available.

Message #37 received at 518737-done@bugs.debian.org (full text, mbox):

From: Raphael Hertzog <hertzog@debian.org>
To: Neil Williams <codehelp@debian.org>, 518737-done@bugs.debian.org
Subject: Re: Bug#518737: dpkg: install-info should still exit zero if info document is not found
Date: Sun, 6 Sep 2009 12:10:46 +0200
Version: 1.15.4

On Sun, 08 Mar 2009, Neil Williams wrote:
> Currently, Grip needs to replace install-info from dpkg with an empty script because
> install-info halts the entire installation if a single info document is missing.
> 
> The packages themselves have the Emdebian version string (em[0-9]) suffix but have
> no changes to the maintainer scripts (to maintain compatibility with Debian).
> 
> To simplify Grip installations, install-info needs to not halt the installation of
> a package merely because the info document has been removed from the package. A

This is now a non-issue now that info files are auto-registered via a dpkg
trigger.

postinst scripts can't fail due to this except if they have not yet been
updated, you can track those with:
http://lintian.debian.org/tags/install-info-used-in-maintainer-script.html

Cheers,
-- 
Raphaël Hertzog




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 25 Oct 2009 07:32:59 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 09:19:17 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.