Subject: Re: www/thttpd build error - not sure of correct fix
To: Greg Troxel <gdt@ir.bbn.com>
From: Roland Illig <rillig@NetBSD.org>
List: tech-pkg
Date: 12/19/2005 22:03:48
Greg Troxel wrote:
> www/thttpd doesn't build, failing to install sitedrivenby.gif at
> install time.  The file is in DISTDIR/DISTSUBDIR, not DISTDIR, so the
> code in Makefile is wrong.  It seems to work to just use _DISTDIR, but
> it feels icky to use an internal variable.

This is indeed ugly. After the freeze the documentation in
bsd.pkg.extract.mk should be fixed not to contain any reference to _DISTDIR.

> -	${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/thttpd
> +	${INSTALL_DATA} ${_DISTDIR}/sitedrivenby.gif ${PREFIX}/share/thttpd

Any reason not to use ${DISTDIR}/${DIST_SUBDIR} instead of ${_DISTDIR}?

Roland