Subject: Re: pkgsrc NetBSD 2.0.2/i386 bulk build results 2005-09-21
To: Thomas Klausner <wiz@NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: pkgsrc-bulk
Date: 09/22/2005 23:32:21
On Thu, Sep 22, 2005 at 03:56:51PM +0200, Thomas Klausner wrote:
> On Thu, Sep 22, 2005 at 03:30:21PM +0200, Manuel Bouyer wrote:
> > On Thu, Sep 22, 2005 at 03:19:51PM +0200, Thomas Klausner wrote:
> > > > comms/xtel bouyer@NetBSD.org
> > >
> > > *** The following files are in /usr/pkg but not in the PLIST:
> > > /usr/pkg/lib/X11/fonts/xtel/fonts.scale
> >
> > Hum, could this file be installed or not depending on the version of X ?
> > I'm almost sure the PLIST was correct when I created this package and
> > this file didn't exists.
> > If it's dependant on the X version, what would be the correct way to fix this ?
>
> I think adding
> FONTS_X11_DIRS= ${PREFIX}/lib/X11/fonts/xtel
> and
> .include "../../mk/fonts.mk"
> will probably fix this, but I haven't tried.
> Take a look at fonts/profont which installs fonts this way.
Well, it doens't work well. using fonts.mk cause fonts/xtel/fonts.scale
to be deleted, but /usr/pkg/lib/X11/fonts/xtel remains because fonts.scale
is removed after the PLIST is run.
Remplacing @dirrm with a @unexec rm -rf doens't work well either,
at pkg_delete it complains:
rochebonne# pkg_delete xtel
Executing `/bin/rm -rf /usr/X11R6/lib/X11/fonts/xtel'
===> Updating font databases
cd: can't cd to /usr/X11R6/lib/X11/fonts/xtel
I think it's better to use fonts.mk because mkfontdir probably needs to be
run after the package is installed, but then I don't know how to cleanly
get rid of the stale directory at pkg_delete time ...
Any idea ?
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--