From owner-freebsd-ports Tue Apr 2 3:52:58 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mailout07.sul.t-online.com (mailout07.sul.t-online.com [194.25.134.83]) by hub.freebsd.org (Postfix) with ESMTP id 4C83637B41C; Tue, 2 Apr 2002 03:52:51 -0800 (PST) Received: from fwd01.sul.t-online.de by mailout07.sul.t-online.com with smtp id 16sMdK-0002xq-04; Tue, 02 Apr 2002 13:39:26 +0200 Received: from spirit.zuhause.stoert.net (320050403952-0001@[217.82.54.190]) by fmrl01.sul.t-online.com with esmtp id 16sMdF-1C36YaC; Tue, 2 Apr 2002 13:39:21 +0200 Received: from elevation.zuhause.stoert.net (elevation.zuhause.stoert.net [192.168.66.46]) by spirit.zuhause.stoert.net (8.11.6/8.11.6) with ESMTP id g32BdJR22330; Tue, 2 Apr 2002 13:39:20 +0200 (CEST) (envelope-from corecode@corecode.ath.cx) Received: (from corecode@localhost) by elevation.zuhause.stoert.net (8.11.6/8.11.6) id g32Bc4x25140; Tue, 2 Apr 2002 13:38:04 +0200 (CEST) (envelope-from corecode) Date: Tue, 2 Apr 2002 13:38:01 +0200 From: "Simon 'corecode' Schubert" To: Peter Pentchev 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> X-Mailer: Sylpheed version 0.7.4claws (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=.yI?b1ZDt6B9dsc" X-Sender: 320050403952-0001@t-dialin.net Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --=.yI?b1ZDt6B9dsc Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 2 Apr 2002 14:12:42 +0300 Peter Pentchev 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 > > do-build: > @${ECHO} "build: WRKSRC is ${WRKSRC}" > > do-install: > @${ECHO} "WRKSRC is ${WRKSRC}" > > .include > > ..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