From owner-cvs-all Thu Jul 5 0:54:32 2001 Delivered-To: cvs-all@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id AE6E537B401 for ; Thu, 5 Jul 2001 00:54:23 -0700 (PDT) (envelope-from roam@ringworld.nanolink.com) Received: (qmail 4341 invoked by uid 1000); 5 Jul 2001 07:58:47 -0000 Date: Thu, 5 Jul 2001 10:58:47 +0300 From: Peter Pentchev To: cvs-committers@FreeBSD.org Cc: Maxim Sobolev , cvs-all@FreeBSD.org Subject: Re: cvs commit: ports/Mk bsd.gnome.mk Message-ID: <20010705105847.B39375@ringworld.oblivion.bg> Mail-Followup-To: cvs-committers@FreeBSD.org, Maxim Sobolev , cvs-all@FreeBSD.org References: <200107041829.f64ITmM95778@freefall.freebsd.org> <20010704140608.R97456@bohr.physics.purdue.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010704140608.R97456@bohr.physics.purdue.edu>; from will@physics.purdue.edu on Wed, Jul 04, 2001 at 02:06:08PM -0500 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 02:06:08PM -0500, Will Andrews wrote: > 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 > > all: > .if ${foo} != ${foo:S/x//} > @echo 'BAD!' > .else > @echo 'GOOD!' > .endif > GOOD! Note the two spaces in 'a b' in Maxim's example. He did not say that S:// removed whitespace, he said it collapsed whitespace. FWIW, I can reproduce his results, too. G'luck, Peter -- If this sentence were in Chinese, it would say something else. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message