Subject: Re: 3.0_BETA : typo in comp/mi
To: None <current-users@NetBSD.org>
From: Alexander Becher <abecher@kawo2.rwth-aachen.de>
List: current-users
Date: 06/28/2005 23:16:47
[I apologize that this message is not threaded properly, but I am not
 subscribed to current-users, and I could not find the Message-ID of
 the original message anywhere.]

Asmodehn Shade wrote:
>============  1 extra files  ===============
>Files in DESTDIR but missing from flist.
>File is obsolete or flist is out of date ?
>------------------------------------------
>./usr/share/man/cat3/pthread_barierattr_destroy.0
>=========  end of 1 extra files  ===========
>
>
>*** Failed target:  checkflist
>
>Here is the typo in comp/mi :
>
>#    $NetBSD: mi,v 1.770.2.5 2005/06/18 11:04:52 tron Exp $
>./usr/share/man/cat3/pthread_barierattr_destroy.0    comp-obsolete obsolote
>./usr/share/man/man3/pthread_barierattr_destroy.3    comp-obsolete obsolete

Although the typo is fixed now, it does not work when MANZ=yes is set in
/etc/mk.conf.

|/usr/src$ ./build.sh ...
[...]
|============  4 extra files  ===============\
|Files in DESTDIR but missing from flist.
|File is obsolete or flist is out of date ?
|------------------------------------------
|./usr/share/man/cat3/pthread_barierattr_destroy.0.gz
|./usr/share/man/cat3/pthread_barierattr_init.0.gz
|./usr/share/man/man3/pthread_barierattr_destroy.3.gz
|./usr/share/man/man3/pthread_barierattr_init.3.gz
|=========  end of 4 extra files  ===========
|
|*** Failed target:  checkflist

Changing "obsolete" to "obsolete,.cat" (or "obsolete,.man" resp.) does
not help, either. 'postinstall' does not regard these files as
obsolete, probably because $DESTDIR/var/db/obsolete/comp does not
contain the ".gz" suffix.

So for now, I have successfully built with a

while :; do
    rm -f $DESTDIR/usr/share/man/{cat,man}3/pthread_barierattr_{init,destroy}.{0,3}{,.gz}
done

running in the background. That's
probably not the intended way. Is there any way to make 'postinstall'
remove compressed manpages?

As a sidenote, now that I read more about it, ./build.sh -r ... would
probably also have been a working solution (I did not (yet) test that,
but it would certainly be a little less CPU-intensive than my
workaround above).

Regards
Alexander
-- 
PGP key available
Port Payé / Entgelt bezahlt / Postage Paid: http://www.hashcash.org/