Subject: Re: make: .if exists weirdness
To: None <tech-pkg@netbsd.org>
From: Jan Schaumann <jschauma@netbsd.org>
List: tech-pkg
Date: 07/12/2003 11:33:02
--v9Ux+11Zm5mwPlX6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Todd Vierling <tv@pobox.com> wrote:
> On Fri, 11 Jul 2003, Jan Schaumann wrote:
>=20
> : > > : FILE1=3D  ${PREFIX}/lib/libGL.so.5
> : > > : FILE2=3D  /usr/pkg/lib/libGL.so.5
> : > > : .if exists(${FILE1})
>=20
> : Aaaarg, but the file in question did actually set PREFIX=3D${LOCALBASE}=
 at
> : the end of the Makefile, *after* bsd.pkg.mk.  I had not noticed that.
> : If I put the test below that, it works as one would expect.
> :
> : Still, I'm puzzled as to why it would work on some files but not on
> : others.
>=20
> If it's not working on "${PREFIX}/lib/libGL.so":  Print the value that th=
is
> has at .if time, and look at it carefully.  Is PREFIX ending up as
> ${X11BASE} before it is reset, and do you happen also to have a
> /usr/X11R6/lib/libGL.so that points at never-never land?  One thing to ch=
eck
> is that the XF86 v4 sets have a .so pointing to "libGL.so.1", but you mig=
ht
> not have that in the directory.

Ding, ding, ding, ding!  We have a winner.

Well, I'm glad I'm not insane.  Thanks for the pointers.

-Jan

--=20
DON'T PANIC!

--v9Ux+11Zm5mwPlX6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE/ECoufFtkr68iakwRAmhTAKDKK34fIZ0uopuSPuhojBpJ6OP1fACfc6Y3
XQM5V0hekVPDtMxo2RLW7fc=
=LyoN
-----END PGP SIGNATURE-----

--v9Ux+11Zm5mwPlX6--