Bug#686349: man-db: provide option to skip database build process

2012-08-31 Thread Colin Watson
On Fri, Aug 31, 2012 at 02:53:24PM +0200, Michael Prokop wrote:
> This step:
> 
> echo "Building database of manual pages ..." >&2
> run_mandb -cq
> 
> in postinst can take quite some time. Especially when building
> Debian packages in an automated fashion this can be quite a waste of
> build time and resources AFAICT.
> 
> It would be nice if there'd be a simple way to skip this step
> (simple as in "no need to dpkg-divert any files from man-db when
> being executed inside pbuilder/cowbuilder/... environment" :))

There's already a preseedable debconf template for this very purpose.
Set man-db/auto-update to false and mandb won't be run.  Does that meet
your needs?

-- 
Colin Watson   [cjwat...@debian.org]


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#686349: man-db: provide option to skip database build process

2012-08-31 Thread Christoph Berg
Re: Michael Prokop 2012-08-31 <20120831125324.24338.97520.reportbug@grmlvrs>
> It would be nice if there'd be a simple way to skip this step
> (simple as in "no need to dpkg-divert any files from man-db when
> being executed inside pbuilder/cowbuilder/... environment" :))

Here's one example which would be made redundant by this wishlist
item:

https://github.com/ChristophBerg/pgdg-buildenv/blob/master/debian/postinst

#!/bin/sh

case $1 in
configure)
dpkg-divert --add --package pgdg-buildenv --rename 
/usr/bin/mandb
test -e /usr/bin/mandb || ln -s /bin/true /usr/bin/mandb
;;
esac

#DEBHELPER#

Christoph
-- 
c...@df7cb.de | http://www.df7cb.de/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#686349: man-db: provide option to skip database build process

2012-08-31 Thread Michael Prokop
Package: man-db
Version: 2.6.2-1
Severity: wishlist


This step:

echo "Building database of manual pages ..." >&2
run_mandb -cq

in postinst can take quite some time. Especially when building
Debian packages in an automated fashion this can be quite a waste of
build time and resources AFAICT.

It would be nice if there'd be a simple way to skip this step
(simple as in "no need to dpkg-divert any files from man-db when
being executed inside pbuilder/cowbuilder/... environment" :))

regards,
-mika-


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/2012-08-31t14-48...@devnull.michael-prokop.at