Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2002 14:12:42 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        Ernst de Haan <znerd@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   Re: WRKDIR not defined when including bsd.port.pre.mk
Message-ID:  <20020402141242.C416@straylight.oblivion.bg>
In-Reply-To: <200203301231.NAA16624@smtp.hccnet.nl>; from znerd@FreeBSD.org on Sat, Mar 30, 2002 at 01:30:11PM %2B0100
References:  <200203301231.NAA16624@smtp.hccnet.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <bsd.port.pre.mk>

do-build:
	@${ECHO} "build: WRKSRC is ${WRKSRC}"

do-install:
	@${ECHO} "WRKSRC is ${WRKSRC}"

=2Einclude <bsd.port.post.mk>

=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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020402141242.C416>