From owner-freebsd-ports Tue Apr 2 3:12:56 2002 Delivered-To: freebsd-ports@freebsd.org Received: from south.nanolink.com (south.nanolink.com [217.75.134.10]) by hub.freebsd.org (Postfix) with SMTP id B0F2837B421 for ; Tue, 2 Apr 2002 03:12:47 -0800 (PST) Received: (qmail 82702 invoked from network); 2 Apr 2002 11:18:21 -0000 Received: from unknown (HELO straylight.ringlet.net) (212.116.140.125) by south.nanolink.com with SMTP; 2 Apr 2002 11:18:21 -0000 Received: (qmail 26927 invoked by uid 1000); 2 Apr 2002 11:12:43 -0000 Date: Tue, 2 Apr 2002 14:12:42 +0300 From: Peter Pentchev To: Ernst de Haan Cc: ports@FreeBSD.org Subject: Re: WRKDIR not defined when including bsd.port.pre.mk Message-ID: <20020402141242.C416@straylight.oblivion.bg> Mail-Followup-To: Ernst de Haan , ports@FreeBSD.org References: <200203301231.NAA16624@smtp.hccnet.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200203301231.NAA16624@smtp.hccnet.nl>; from znerd@FreeBSD.org on Sat, Mar 30, 2002 at 01:30:11PM +0100 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 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 30, 2002 at 01:30:11PM +0100, Ernst de Haan wrote: > Hi, >=20 > I would like to use WRKSRC during my do-install. The problem is, that WRK= DIR=20 > is not set when bsd.port.pre.mk is included. Why not? What is the reasoni= ng=20 > behind this? Could you post a sample Makefile to demonstrate this problem? With the following Makefile: PORTNAME=3D stuff PORTVERSION=3D 1.0 CATEGORIES=3D misc DISTFILES=3D =2Einclude do-build: @${ECHO} "build: WRKSRC is ${WRKSRC}" do-install: @${ECHO} "WRKSRC is ${WRKSRC}" =2Einclude =2E.I get the following: [roam@straylight:p1 ~/tmp/testport]$ make clean all && sudo make install =3D=3D=3D> Cleaning for stuff-1.0 =3D=3D=3D> Extracting for stuff-1.0 >> No MD5 checksum file. =3D=3D=3D> Patching for stuff-1.0 =3D=3D=3D> Configuring for stuff-1.0 =3D=3D=3D> Building for stuff-1.0 build: WRKSRC is /usr/home/roam/tmp/testport/work/stuff-1.0 =3D=3D=3D> Installing for stuff-1.0 WRKSRC is /usr/home/roam/tmp/testport/work/stuff-1.0 =3D=3D=3D> 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. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If this sentence didn't exist, somebody would have invented it. --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjypkioACgkQ7Ri2jRYZRVO+HACZAf1gfKAt0Ud3nk9dMsEORl3D zfcAn0JpfRu2jhFdyW6kqksCGFylOdSQ =N7MB -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message