[mew-int 2564] A tiny bug about info docs

zhengyi goodmenlinux at example.com
Wed Aug 6 16:49:16 JST 2008


Hi,
  I'm using archlinux now! It is a minimized distro.
And I want to build the package of mew into it's repository.

Now I found something strange about.
When I install the info docs of mew, the install-info tool
can not insert the "mew" item into the /usr/share/info/dir file 
correctly. It add many space between as the following :
==================================================================
   * Mew: (mew.                info).           Messaging in the Emacs World.
==================================================================
The wrong name is inserted, so the info can't find the correct file.

My install-info tool is version 4.12.
But in another machine of SUSE10, the version 4.9 works fine!

I don't know whether the bug is in Mew or in install-info tool.
But after i check other package's info file, 
I change the mew's info docs a little, install-info version 4.12 works fine!

Here is the changes:
====================================================================
START-INFO-DIR-ENTRY
* Mew: (mew.info).           Messaging in the Emacs World.
END-INFO-DIR-ENTRY

====================================================================
START-INFO-DIR-ENTRY
* Mew: (mew.info).           Messaging in the Emacs World.
END-INFO-DIR-ENTRY
====================================================================

Just delete the ".info" surffix is ok.

Any feedback ?

By the way:
The following is my script of archlinux. If Kazu give me the right to release it

===========================================================================
File: PKGBUILD
# $Id: PKGBUILD 4237 2008-08-02 15:55:35Z pierre $
# Maintainer: zhengyi <goodmenzy at example.com>

pkgname=mew
pkgver=6.1
pkgrel=0
pkgdesc="Mew is a mail reader for Emacs"
arch=('i686')
license=('custom:zlib')
url="http://www.gzip.org/zlib"
options=(docs)
groups=('')
depends=('emacs' 'texinfo')
install=$pkgname.install
source=("http://www.mew.org/Release/mew-${pkgver}.tar.gz")
md5sums=('44c2f841de5503d3195547ec512f0ab5')

build() {
	cd ${srcdir}/mew-$pkgver

	# configure and compile
	./configure --prefix=/usr          || return 1
	make DESTDIR=$startdir/pkg         || return 1
	make DESTDIR=$startdir/pkg install || return 1
	
	# install the license
	install -D 00copyright ${pkgdir}/usr/share/licenses/mew/00copyright
	
        # info dir
	# rm $startdir/pkg/usr/share/info/dir
	# gzip -9nf $startdir/pkg/usr/share/info/*
}

File: mew.install

post_install() {
    install-info          --info-dir=$startdir/usr/share/info   $startdir/usr/share/info/mew.info
}

pre_remove() {
    install-info --delete --info-dir=$startdir/usr/share/info   $startdir/usr/share/info/mew.info
}
===========================================================================



More information about the Mew-int mailing list