Date: Tue, 2 Apr 2002 13:38:01 +0200 From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx> To: Peter Pentchev <roam@ringlet.net> Cc: znerd@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: WRKDIR not defined when including bsd.port.pre.mk Message-ID: <20020402133801.512a9c31.corecode@corecode.ath.cx> In-Reply-To: <20020402141242.C416@straylight.oblivion.bg> References: <200203301231.NAA16624@smtp.hccnet.nl> <20020402141242.C416@straylight.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
--=.yI?b1ZDt6B9dsc Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 2 Apr 2002 14:12:42 +0300 Peter Pentchev <roam@ringlet.net> wrote: > On Sat, Mar 30, 2002 at 01:30:11PM +0100, Ernst de Haan wrote: > > Hi, > > > > I would like to use WRKSRC during my do-install. The problem is, that WRKDIR > > is not set when bsd.port.pre.mk is included. Why not? What is the reasoning > > behind this? > > Could you post a sample Makefile to demonstrate this problem? > With the following Makefile: > > PORTNAME= stuff > PORTVERSION= 1.0 > CATEGORIES= misc > DISTFILES= > > .include <bsd.port.pre.mk> > > do-build: > @${ECHO} "build: WRKSRC is ${WRKSRC}" > > do-install: > @${ECHO} "WRKSRC is ${WRKSRC}" > > .include <bsd.port.post.mk> > > ..I get the following: > > [roam@straylight:p1 ~/tmp/testport]$ make clean all && sudo make install > ===> Cleaning for stuff-1.0 > ===> Extracting for stuff-1.0 > >> No MD5 checksum file. > ===> Patching for stuff-1.0 > ===> Configuring for stuff-1.0 > ===> Building for stuff-1.0 > build: WRKSRC is /usr/home/roam/tmp/testport/work/stuff-1.0 > ===> Installing for stuff-1.0 > WRKSRC is /usr/home/roam/tmp/testport/work/stuff-1.0 > ===> Generating temporary packing list > ** Missing package files for stuff-1.0. > *** Error code 1 > > Of course it's missing package files :) The point is, both the build-time > and install-time diagnostics display WRKSRC properly. well, that's because make replaces ${vars} when executing the command and not while processing the file... cheerz corecode -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.yI?b1ZDt6B9dsc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE8qZgbr5S+dk6z85oRAtJ2AKD1pMO3cnN4Ry5A1H4ixZ7ifQ4c8gCg01IF fkMb+rX2uZj4crrJ3xYzeiU= =ZwKx -----END PGP SIGNATURE----- --=.yI?b1ZDt6B9dsc-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020402133801.512a9c31.corecode>