From owner-freebsd-ports@FreeBSD.ORG Fri Jul 1 18:54:36 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA8F9106564A; Fri, 1 Jul 2011 18:54:36 +0000 (UTC) (envelope-from oliver.pntr@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 032328FC13; Fri, 1 Jul 2011 18:54:35 +0000 (UTC) Received: by wyg24 with SMTP id 24so3300614wyg.13 for ; Fri, 01 Jul 2011 11:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=V6VTbBMEURr5IRmLrxhnorPCRE3Fw72fNpyg+R5IwEg=; b=Atcu/uDTRgry7oR7MFFGFQlqIkQpMaKzBe2enWYDsW6PwZIJkxs2sGH83L/Xr+8GId iXlwJ2vhpMY6o2+KWITILikrP0RZq/6RnoDMW2K5hwJ4GNLyY70FQCaY+sBl6p6v1QwK kFFL/xEEbWHEBRdMsDURShlcpj1m79sVcGbw8= MIME-Version: 1.0 Received: by 10.227.172.13 with SMTP id j13mr3247318wbz.45.1309546475105; Fri, 01 Jul 2011 11:54:35 -0700 (PDT) Received: by 10.227.209.209 with HTTP; Fri, 1 Jul 2011 11:54:34 -0700 (PDT) In-Reply-To: References: Date: Fri, 1 Jul 2011 20:54:34 +0200 Message-ID: From: Oliver Pinter To: avilla@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: ports@freebsd.org Subject: Re: failed bsd.qt.mk fix... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2011 18:54:36 -0000 On 7/1/11, Oliver Pinter wrote: > after reverting this: > http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.qt.mk.diff?r1=1.24;r2=1.25 > everything look fine.. > > On 7/1/11, Oliver Pinter wrote: >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/devel/qmake4/../../Mk/bsd.qt.mk", line 115: warning: "cc >> --version 2> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" >> returned non-zero status >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> ===> Cleaning for arora-0.11.0 >> awk: syntax error at source line 1 >> context is >> NR == 1 { gsub(/[()]/, "", >>> ) <<< >> awk: illegal statement at source line 1 >> "/usr/ports/Mk/bsd.qt.mk", line 115: warning: "cc --version 2> >> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", ); print }'" returned >> non-zero status >> > or use this patch: op@pandora-d ~> less /tmp/diff --- bsd.qt.mk 2011-07-01 20:53:32.000000000 +0200 +++ bsd.qt.mk-op 2011-07-01 20:52:48.000000000 +0200 @@ -112,7 +112,7 @@ # # Translate `c++` to its real name and select the appropriate mkspec. # -QMAKE_BASE_COMPILER!= cc --version 2> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", $2); print $2 }' +QMAKE_BASE_COMPILER!= cc --version 2> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", $$2); print $$2 }' .if ${QMAKE_BASE_COMPILER:L} == "gcc" QMAKE_BASE_COMPILER= g++ .endif