From owner-freebsd-ports@freebsd.org Mon Jul 27 10:34:19 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 715039ACBBA for ; Mon, 27 Jul 2015 10:34:19 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward13h.cmail.yandex.net (forward13h.cmail.yandex.net [87.250.230.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 275EADDF for ; Mon, 27 Jul 2015 10:34:18 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [84.201.186.20]) by forward13h.cmail.yandex.net (Yandex) with ESMTP id CAE6C21328 for ; Mon, 27 Jul 2015 13:34:08 +0300 (MSK) Received: from smtp3h.mail.yandex.net (localhost [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id 8F9091B4962C for ; Mon, 27 Jul 2015 13:34:08 +0300 (MSK) Received: by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id E3c3cgR8dy-Y8k0Awpf; Mon, 27 Jul 2015 13:34:08 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Message-ID: <55B6091F.4000001@passap.ru> Date: Mon, 27 Jul 2015 13:34:07 +0300 From: Boris Samorodov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: error message from Freshports after commit? References: <20150726152029.Horde.5fJLWJHfi3zZcyZl2BNIRA8@webmail.leidinger.net> <20150726223123.00000f0d@Leidinger.net> <55B5606A.6070408@passap.ru> <20150727115524.Horde.W8uCr4IPga-UMkhOFd3QBtl@webmail.leidinger.net> In-Reply-To: <20150727115524.Horde.W8uCr4IPga-UMkhOFd3QBtl@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2015 10:34:19 -0000 27.07.2015 12:55, Alexander Leidinger пишет: > Quoting Boris Samorodov (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 % ----- >>> Anyone out there with a 8.x or 9.x system who can test the above? >> >> The system is: >> >> % uname -a >> FreeBSD host.wart.ru 9.3-STABLE FreeBSD 9.3-STABLE #34 r285813: Fri Jul >> 24 00:03:24 MSK 2015 bsam@host.wart.ru:/usr/obj/usr/src/sys/HOST >> i386 -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve