From owner-freebsd-ports@freebsd.org Sun Jul 26 22:34:28 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 9CD5E99CBFA for ; Sun, 26 Jul 2015 22:34:28 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8076CB85 for ; Sun, 26 Jul 2015 22:34:28 +0000 (UTC) (envelope-from bsam@passap.ru) Received: by mailman.ysv.freebsd.org (Postfix) id 7CC0D99CBF9; Sun, 26 Jul 2015 22:34:28 +0000 (UTC) Delivered-To: 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 63E5699CBF7 for ; Sun, 26 Jul 2015 22:34:28 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward16h.cmail.yandex.net (forward16h.cmail.yandex.net [IPv6:2a02:6b8:0:f35::a1]) (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 154FBB81; Sun, 26 Jul 2015 22:34:26 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp4h.mail.yandex.net (smtp4h.mail.yandex.net [IPv6:2a02:6b8:0:f05::118]) by forward16h.cmail.yandex.net (Yandex) with ESMTP id C30D0217FB; Mon, 27 Jul 2015 01:34:20 +0300 (MSK) Received: from smtp4h.mail.yandex.net (localhost [127.0.0.1]) by smtp4h.mail.yandex.net (Yandex) with ESMTP id EDF552C7BC3; Mon, 27 Jul 2015 01:34:19 +0300 (MSK) Received: by smtp4h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id efBGSA41Hh-YJNalYxM; Mon, 27 Jul 2015 01:34:19 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Message-ID: <55B5606A.6070408@passap.ru> Date: Mon, 27 Jul 2015 01:34:18 +0300 From: Boris Samorodov Organization: =?UTF-8?B?0JfQkNCeICLQktCQ0KDQoiI=?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Alexander Leidinger , Mathieu Arnold CC: ports@freebsd.org Subject: Re: error message from Freshports after commit? References: <20150726152029.Horde.5fJLWJHfi3zZcyZl2BNIRA8@webmail.leidinger.net> <20150726223123.00000f0d@Leidinger.net> In-Reply-To: <20150726223123.00000f0d@Leidinger.net> Content-Type: text/plain; charset=utf-8 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: Sun, 26 Jul 2015 22:34:28 -0000 Hi, Alexander! 26.07.2015 23:31, Alexander Leidinger пишет: > On Sun, 26 Jul 2015 15:29:25 +0200 > Mathieu Arnold wrote: > >> +--On 26 juillet 2015 15:20:29 +0200 Alexander Leidinger >> wrote: >> | >> | Hi, >> | >> | after committing the 64bit parts of the linux base ports, I got a >> mail | parts of the commit. Those parts work just fine on my >> (current) system. | What's wrong? >> >> You're running 10.x I assume, install fmake, or try on a 9.x or 8.x >> system. > > It's -current. > > I installed fmake now and it complains about > # fmake -V PORTNAME > "/usr/share/mk/sys.mk", line 36: Unknown directive > "/usr/share/mk/sys.mk", line 364: Unknown directive > Unknown modifier 'U' > > As I didn't change that file, that seems to be a dead end. > > > The fmake man-page says: > ---snip--- > An expression may also be a numeric or string comparison: in this > case, the left-hand side must be a variable expansion, whereas the > right-hand side can be a constant or a variable expansion. Variable > expansion is performed on both sides, after which the resulting values > are compared. A value is interpreted as hexadecimal if it is preceded > by 0x, otherwise it is decimal; octal numbers are not supported. > ---snip... > > Now... is > ---snip--- > testtarget: > .if "${QUOTED_VAR}" == "test" > echo works > .endif > ---snip--- % make QUOTED_VAR=test "Makefile", line 2: Malformed conditional ("${QUOTED_VAR}" == "test") "Makefile", line 4: if-less endif make: fatal errors encountered -- cannot continue > 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 > 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