Subject: wrong list of provided libraries when using DESTDIR
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <k.heinz.mai.sieben@kh-22.de>
List: tech-pkg
Date: 05/16/2007 17:12:51
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?

ciao
     Klaus