[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Transition from dpkg to GNU install-info



On Wed, 11 Mar 2009 09:40:46 +0100
Norbert Preining <preining@logic.at> wrote:

> > Here immediately some questions: I can start preparing a separate
> > install-info bin package for experimental, but 
> > - should we install GNU install-info into /usr/bin where there is
> >   ginstall-info ATM, or into /usr/sbin, where there is dpkg ii?
> >   I would suggest /usr/bin.
> 
> Ok, here is a package, crude, nothing tested, but it is there:
> 	deb http://people.debian.org/~preining/TeX/ i-i/
> 	deb-src http://people.debian.org/~preining/TeX/ i-i/
> 
> or dget
> http://people.debian.org/~preining/TeX/i-i/texinfo_4.13a.dfsg.1-2~exp01.dsc
> 
> It does:
> - split install-info package off
> - make info depend on install-info
> - still ship ginstall-info
> - ship install-info shell script from Nicolas

So all this now does is echo the command that should be used instead:
texinfo-4.13a.dfsg.1$ ./debian/install-info/usr/bin/install-info /usr/share/info/coreutils.info ; echo $?
/usr/bin/ginstall-info --quiet /usr/share/info/coreutils.info
0
(even if the actual info page does not exist)

Is it meant to only echo the command out?

In an Emdebian Grip chroot (with the current workaround replacement
install-info script renamed):

# dpkg --unpack /var/cache/apt/archives/coreutils_6.10-6em1_amd64.deb ; echo $?
(Reading database ... 5726 files and directories currently installed.)
Preparing to replace coreutils 6.10-6em1 (using .../coreutils_6.10-6em1_amd64.deb) ...
/usr/bin/ginstall-info --quiet --remove /usr/share/info/coreutils.info
Unpacking replacement coreutils ...
0
# dpkg --configure coreutils ; echo $?
Setting up coreutils (6.10-6em1) ...
/usr/bin/ginstall-info --quiet /usr/share/info/coreutils.info
0

My only concern is this:

# /usr/bin/ginstall-info --quiet /usr/share/info/coreutils.info ; echo $?
install-info: No dir file specified; try --help for more information.
1

and this:

# /usr/bin/ginstall-info --info-dir=/usr/share/info --quiet /usr/share/info/coreutils.info ; echo $?
install-info: No such file or directory for /usr/share/info/coreutils.info
1

(The reason I'm CC'd in all of this is because of #518737
dpkg: install-info should still exit zero if info document is not found)

I can adapt the Emdebian Grip processes to remove the trigger file from
packages like coreutils when the info document is removed, so if the
intention is that the postinst will become a no-op - merely echoing the
command - then this seems OK for what I need.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpvWB1JooRAr.pgp
Description: PGP signature


Reply to: