error message from Freshports after commit?

Alexander Leidinger Alexander at Leidinger.net
Mon Jul 27 20:05:10 UTC 2015


On Mon, 27 Jul 2015 13:34:07 +0300
Boris Samorodov <bsam at passap.ru> wrote:

> 27.07.2015 12:55, Alexander Leidinger пишет:
> > Quoting Boris Samorodov <bsam at 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} == "test"
> >>>     echo works
> >>> .endif
> >>> ---snip---
> >>
> >> % make QUOTED_VAR=test
> >> echo works
> >> works
> >>
> >> If QUOTED_VAR is not defined, the test fails:
> >>
> >> % make
> >> "Makefile", line 2: Malformed conditional (${QUOTED_VAR} == "test")
> >> "Makefile", line 4: if-less endif
> >> make: fatal errors encountered -- cannot continue
> >
> > What about this?
> > ---snip---
> > testtarget:
> > .if defined(${QUOTED_VAR}) && ${QUOTED_VAR} == "test"
> >       echo works
> > .endif
> > ---snip---
> 
> Nope:
> -----
> % make QUOTED_VAR=test
> % echo $?
> 0
> %
> -----

What about QUOTED_VAR in make.conf instead?

Thanks for testing,
Alexander.

-- 
http://www.Leidinger.net Alexander at Leidinger.net: PGP 0xC773696B3BAC17DC
http://www.FreeBSD.org    netchild at FreeBSD.org  : PGP 0xC773696B3BAC17DC


More information about the freebsd-ports mailing list