Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jul 2015 22:04:28 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Boris Samorodov <bsam@passap.ru>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: error message from Freshports after commit?
Message-ID:  <20150727220428.00002919@Leidinger.net>
In-Reply-To: <55B6091F.4000001@passap.ru>
References:  <20150726152029.Horde.5fJLWJHfi3zZcyZl2BNIRA8@webmail.leidinger.net> <C613F5DA174FA175BD4AA8CF@atuin.in.mat.cc> <20150726223123.00000f0d@Leidinger.net> <55B5606A.6070408@passap.ru> <20150727115524.Horde.W8uCr4IPga-UMkhOFd3QBtl@webmail.leidinger.net> <55B6091F.4000001@passap.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 27 Jul 2015 13:34:07 +0300
Boris Samorodov <bsam@passap.ru> wrote:

> 27.07.2015 12:55, Alexander Leidinger =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> > Quoting Boris Samorodov <bsam@passap.ru> (from Mon, 27 Jul 2015
> > 01:34:18 +0300):
> >
> >> Hi, Alexander!
> >
> >>> a variable expansion as of above, or do I need to remove the
> >>> quotes like below
> >>> ---snip---
> >>> testtarget:
> >>> .if ${QUOTED_VAR} =3D=3D "test"
> >>>     echo works
> >>> .endif
> >>> ---snip---
> >>
> >> % make QUOTED_VAR=3Dtest
> >> echo works
> >> works
> >>
> >> If QUOTED_VAR is not defined, the test fails:
> >>
> >> % make
> >> "Makefile", line 2: Malformed conditional (${QUOTED_VAR} =3D=3D "test")
> >> "Makefile", line 4: if-less endif
> >> make: fatal errors encountered -- cannot continue
> >
> > What about this?
> > ---snip---
> > testtarget:
> > .if defined(${QUOTED_VAR}) && ${QUOTED_VAR} =3D=3D "test"
> >       echo works
> > .endif
> > ---snip---
>=20
> Nope:
> -----
> % make QUOTED_VAR=3Dtest
> % echo $?
> 0
> %
> -----

What about QUOTED_VAR in make.conf instead?

Thanks for testing,
Alexander.

--=20
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0xC773696B3BAC17DC
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0xC773696B3BAC17DC



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150727220428.00002919>