Date: Thu, 5 Jul 2001 10:58:47 +0300 From: Peter Pentchev <roam@orbitel.bg> To: cvs-committers@FreeBSD.org Cc: Maxim Sobolev <sobomax@FreeBSD.org>, cvs-all@FreeBSD.org Subject: Re: cvs commit: ports/Mk bsd.gnome.mk Message-ID: <20010705105847.B39375@ringworld.oblivion.bg> In-Reply-To: <20010704140608.R97456@bohr.physics.purdue.edu>; from will@physics.purdue.edu on Wed, Jul 04, 2001 at 02:06:08PM -0500 References: <200107041829.f64ITmM95778@freefall.freebsd.org> <20010704140608.R97456@bohr.physics.purdue.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010705105847.B39375>
