Subject: Re: wrong list of provided libraries when using DESTDIR
To: None <tech-pkg@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-pkg
Date: 05/16/2007 18:57:11
On Wed, May 16, 2007 at 05:12:51PM +0200, Klaus Heinz wrote:
> Hi,
>
> since this line in +BUILD_INFO
>
> PROVIDES=/scr/pkgsrc/graphics/gd/work.i386/.destdir/usr/pkg/lib/libgd.so.2
>
> is probably not intended I think the following fix should be applied to
> metadata.mk
>
> - ${ECHO} "PROVIDES=$$i" >> ${.TARGET}.tmp; \
> + ${ECHO} "PROVIDES=$${i#${DESTDIR}}" >> ${.TARGET}.tmp; \
>
> Any objections?
I'm not sure if # is supported by all shells, but otherwise no.
If this is in a loop, filter with a single sed?
Joerg