From owner-freebsd-current@FreeBSD.ORG Sat Jan 14 19:56:46 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAA4016A41F; Sat, 14 Jan 2006 19:56:46 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B70F43D45; Sat, 14 Jan 2006 19:56:45 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id k0EJuibV036662; Sat, 14 Jan 2006 21:56:44 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ip.net.ua [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 20855-03; Sat, 14 Jan 2006 21:56:17 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id k0EJopPV036538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 14 Jan 2006 21:50:51 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id k0EJosqD005063; Sat, 14 Jan 2006 21:50:54 +0200 (EET) (envelope-from ru) Date: Sat, 14 Jan 2006 21:50:54 +0200 From: Ruslan Ermilov To: Max Laier Message-ID: <20060114195054.GB4687@ip.net.ua> References: <200601140758.02019.max@love2party.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wq9mPyueHGvFACwf" Content-Disposition: inline In-Reply-To: <200601140758.02019.max@love2party.net> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: freebsd-current@freebsd.org, harti@freebsd.org Subject: Re: make or kmod.mk broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2006 19:56:47 -0000 --wq9mPyueHGvFACwf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 14, 2006 at 07:57:55AM +0100, Max Laier wrote: > Hi, >=20 > in kmod.mk (and I believe in other places as well) we have constructs in = the=20 > form of this: ${SOMEARRAY:M${SOMEVAR}} However, make doesn't seem to=20 > understand this. I don't see any traces that it ever did and I have no c= lue=20 > if it should. >=20 > I might well misunderstand things (not a make guru) so here is my testcas= e: >=20 > | STUFF=3D foo bar foobar > | FOO=3Dfoo > |=20 > | mtest: > | echo ${STUFF:M${FOO}} >=20 > and "$make mtest" gives: > | echo } > | } >=20 > this clearly suggests that make is not equipped to handle the variable=20 > expansion here. >=20 > In any case we have to fix either kmod.mk or make. >=20 > On a related question: How can I get the actual location of a file that = is=20 > in .PATH? All I could come up with was ${.ALLSRC:M*${MY_FILE}} which doe= sn't=20 > work as I am explaining here. >=20 This OTOH works since FOO variable is special (it's evaluated at parse time= ): STUFF=3D foo bar foobar mtest: =2Efor FOO in foo @echo ${STUFF:M${FOO}} =2Eendfor If there are other instances such as the example you've given, they should indeed be fixed. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --wq9mPyueHGvFACwf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDyVYeqRfpzJluFF4RAg8sAJ9HPm1zfUPhM5uOLfp0U6Ok16bMLwCfYLDU tXtTjJ/byS3nhTclnpr2Q3w= =fec3 -----END PGP SIGNATURE----- --wq9mPyueHGvFACwf--