From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 8 15:20:03 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5110C80E for ; Thu, 8 Aug 2013 15:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2E98C2A9C for ; Thu, 8 Aug 2013 15:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r78FK3N8006498 for ; Thu, 8 Aug 2013 15:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r78FK3Ma006497; Thu, 8 Aug 2013 15:20:03 GMT (envelope-from gnats) Resent-Date: Thu, 8 Aug 2013 15:20:03 GMT Resent-Message-Id: <201308081520.r78FK3Ma006497@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thierry Thomas Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D90BE47E; Thu, 8 Aug 2013 15:15:47 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from mx1a.lautre.net (mx1a.lautre.net [80.67.160.71]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A0CEA2A59; Thu, 8 Aug 2013 15:15:47 +0000 (UTC) Received: from graf.pompo.net (graf.pompo.net [78.225.128.39]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: thierry@pompo.net) by mx1a.lautre.net (Postfix) with ESMTPSA id CF25F4132B; Thu, 8 Aug 2013 17:15:45 +0200 (CEST) Received: by graf.pompo.net (Postfix, from userid 1001) id 33F3842D193A; Thu, 8 Aug 2013 17:15:45 +0200 (CEST) Message-Id: <20130808151545.33F3842D193A@graf.pompo.net> Date: Thu, 8 Aug 2013 17:15:45 +0200 (CEST) From: Thierry Thomas To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/181146: devel/qmake4: gdb_dwarf_index.prf contains gsed specific syntax Cc: kde@FreeBSD.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Thierry Thomas List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Aug 2013 15:20:03 -0000 >Number: 181146 >Category: ports >Synopsis: devel/qmake4: gdb_dwarf_index.prf contains gsed specific syntax >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 08 15:20:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Thierry Thomas >Release: FreeBSD 9.2-BETA2 i386 >Organization: Kabbale Eros >Environment: System: FreeBSD graf.pompo.net 9.2-BETA2 FreeBSD 9.2-BETA2 #0 r253984: Tue Aug 6 19:35:52 CEST 2013 thierry@graf.pompo.net:/usr/obj/usr/src/sys/GRAF130324 i386 >Description: qt4-qmake-4.8.4 installs the file $PREFIX/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf which contains the following lines: QMAKE_GDB_INDEX += \ test \$\$(gdb --version | sed -e \'s,[^0-9]\\+\\([0-9]\\)\\.\\([0-9]\\).*,\\1\\2,;q\') -gt 72 && \ gdb --nx --batch --quiet -ex \'set confirm off\' -ex \"save gdb-index $$QMAKE_GDB_DIR\" -ex quit \'$(TARGET)\' && \ test -f $(TARGET).gdb-index && \ $$QMAKE_OBJCOPY --add-section \'.gdb_index=$(TARGET).gdb-index\' --set-section-flags \'.gdb_index=readonly\' \'$(TARGET)\' \'$ (TARGET)\' && \ $$QMAKE_DEL_FILE $(TARGET).gdb-index || true Unfortunately, the regex is specific to gsed, and when the corresponding scriptlet test $(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 is run, it fails with the following error: test: GNU: unexpected operator >How-To-Repeat: Test the line: test $(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 Then compare to: test $(gdb --version | gsed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 >Fix: Either replace sed by gsed, adding the dependency, or translate the regex to our sed. Yet better, since the base GDB is older, this part might be ommitted? >Release-Note: >Audit-Trail: >Unformatted: