From owner-cvs-all Thu Jul 5 0:51:22 2001 Delivered-To: cvs-all@freebsd.org Received: from kalaid.f2f.com.ua (kalaid.f2f.com.ua [62.149.0.33]) by hub.freebsd.org (Postfix) with ESMTP id 0E6C337B406; Thu, 5 Jul 2001 00:51:13 -0700 (PDT) (envelope-from max@vega.com) Received: from Mail-In.Net (borey.f2f.com.ua [62.149.0.24]) by kalaid.f2f.com.ua (8.11.3/8.11.1) with ESMTP id f657rJC84037; Thu, 5 Jul 2001 10:53:20 +0300 (EEST) (envelope-from max@vega.com) Received: from vega.vega.com ([212.35.189.211]) by Mail-In.Net (8.11.3/8.H.Z) with ESMTP id f657pVD58075; Thu, 5 Jul 2001 10:51:35 +0300 (EEST) Received: (from max@localhost) by vega.vega.com (8.11.4/8.11.3) id f657oPs41091; Thu, 5 Jul 2001 10:50:25 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) From: Maxim Sobolev Message-Id: <200107050750.f657oPs41091@vega.vega.com> Subject: Re: cvs commit: ports/Mk bsd.gnome.mk To: will@physics.purdue.edu Date: Thu, 5 Jul 2001 10:49:05 +0300 (EEST) Cc: sobomax@FreeBSD.ORG (Maxim Sobolev), cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG In-Reply-To: <20010704140608.R97456@bohr.physics.purdue.edu> from "Will Andrews" at Jul 04, 2001 02:06:08 PM X-Mailer: ELM [version 2.5 PL5] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > On Wed, Jul 04, 2001 at 11:29:48AM -0700, Maxim Sobolev (sobomax@FreeBSD.org) wrote: > > Modified files: > > Mk bsd.gnome.mk > > Log: > > Workarround a bug in make(1) that leads results in --datadir/--localstatedir > > not being set properly for some ports. The problem is that ":S" modifier > > collapses spaces, even if the regex doesn't match. The following piece of > > make(1) "code" illustrates the problem: > > > > foo= a b > > > > .if ${foo} != ${foo:S/x//} > > all: > > @${ECHO} 'BAD!' > > .endif > > Interesting: > > (14:03:58) [will@puck ~]% cat .tmpMak && make -f .tmpMak > foo= a b ^ - there should be 2 spaces or more. -Maxim > > all: > .if ${foo} != ${foo:S/x//} > @echo 'BAD!' > .else > @echo 'GOOD!' > .endif > GOOD! > > -- > wca > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message