From patchwork Wed Feb 28 09:30:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 129928 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp806983lja; Wed, 28 Feb 2018 01:31:31 -0800 (PST) X-Google-Smtp-Source: AH8x225zHk4U0kh+yQqQAV4Hv+f1RLOLhB5rMVmjOs6dzRMcVR+hbwpeGH9ldmEuk1OrIP5BgQRD X-Received: by 2002:a17:902:28c4:: with SMTP id f62-v6mr17107532plb.411.1519810290878; Wed, 28 Feb 2018 01:31:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519810290; cv=none; d=google.com; s=arc-20160816; b=GIZcknYVCn5c+00XOhylEL54GrvWylA5NaZrJJB+sYd1Vs77awgPXJZy/weYsOQvuB F8C/URDpwUknprngLBeJ/V3aF+TPieJH91kvmcK54GH+YQuxqtWguEO87N/vP4I/hd3I /IsafUB6iD3guX6R1YX31XDgYTZoFSBiiI7GXiqz7SqwKKfSt8JuveH/sHzOezfeoR65 AwrJW+sqXVG3zgl28LCpvc1zZA41GieQxNZW+vaGm39Wd0ykijie1PsVvmQMcxzSMy13 3Mc1tB1V0GvaMxKWCjDMRB8T18R7UasjFwsg2c9pLSRuetHFVrk30Uvaao7yvxbgZKKz UJVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:delivered-to:sender :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=jeoT1ckHxEs7/UP+rRjBvA8sE+mSm2yl6bl53W1DfEk=; b=0YyOoJ2QQdYEk7zBvBXzFataZf6C7vOFSrTuwIqGKkf405yY8pTxS52+H0XwhMUuzE HphXyT+//Lax/GAUPcfDr5VXwGSUtZph1iqukc+INsoacGZOXqRCmU32D1hDoc/bc6Ba tir/zdJ+m1I5fnptPU+D0/GjcCuM14YGJ+ybxBG3xLry4pJXp9Leo4miCwhPODqwrcCB w9V9tweCF63V1xa5CMX8FTVnfJTnuDGvhvqduIl0bmv4U6CbRueb1Uqg5sh7ACGOQvgN VQsE2eWSik0n6TWa0wOAGFgycLC4xixQ795dLBevSHFub6zxUXYXRaweYzqnvPXiBI/O TQag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=h045wbi4; spf=pass (google.com: domain of gcc-patches-return-473990-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-473990-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id l19si790595pgo.629.2018.02.28.01.31.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 01:31:30 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-473990-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=h045wbi4; spf=pass (google.com: domain of gcc-patches-return-473990-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-473990-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=kireEdM7AMk31enYHS0k7ONQ50zNGYOq4jrYJuc8yPuy+e dU/2hlozhNzTy9q8IeGOHpWeRZD2w6akHfhsHDQ1Ff+EdFxAobNXlOfPrbN3cE4E THq3tNpuC/rck71Me3b2IdxIyfVbpMxuJEO+EOCTWnW4MkQPmbHsFWCTlFgFs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=K2QMxNirOkkYNlTQCnW5jtkGj0E=; b=h045wbi4Mx0VDyOOH+Xd DIv+pQFuHuZy6X1KboPgVM9Iqk/XRR2bMvd3fS3prQeUGbZ7DeAALgtuscEFnMWH 28ga/zV4z+EOUTXgPbOsddHut/Kdx4jm/gXdI5wxSWrd+rQT3BvoosVfjGio3kl5 2IZjXlxeAeyRgyI/gWQs8ns= Received: (qmail 73848 invoked by alias); 28 Feb 2018 09:30:35 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 73647 invoked by uid 89); 28 Feb 2018 09:30:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=xxx X-HELO: mail-ua0-f178.google.com Received: from mail-ua0-f178.google.com (HELO mail-ua0-f178.google.com) (209.85.217.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 28 Feb 2018 09:30:18 +0000 Received: by mail-ua0-f178.google.com with SMTP id b13so1091670uam.10 for ; Wed, 28 Feb 2018 01:30:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2rlY1DHpqSz9sMGsFs6lhASnVpqzNkzfoDgBhkmbdU4=; b=fTItvg42yklnYxeDxrqWUN31XtL8T868fcDDCXfDYvqwQy8sMjz21bPNvN1YxAk1Eq 7ZT0whC2q8iLWFooE8lusoZ+6EwuEyH+H57GKWN7upBIB11y8NnaD1E5SiUK9lY6HQ/H gAW7kOj/TbiUGgaEcDTqZTPjETYv/11e74eZC5/htfrkfNVWbo2hhEIaaARZ+RMwFGZN uKL8wvqvwBae6MGKYGQ6HgSJFZbST7TVrnw3yA0kErV7j4ihn4YMWbT8tfVVLjeSfHdv 8oOU3esSDxxQVpGE9plM92DSzJ1NQ1zy2SCMW+JW5pumxZeKhy0kok9KbvpDk/5Bb7mJ QxEQ== X-Gm-Message-State: APf1xPCzu0FouYqLn3Q0ygeEyVz9SeC89oxlYf8ann+G00ME+G02NoAt y0H/bfQA4IOmdn+rTf7Eh0Wt3nrW+pWalfkvwHSjEL7U2UA= X-Received: by 10.176.12.17 with SMTP id a17mr10063768uak.162.1519810210556; Wed, 28 Feb 2018 01:30:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.70.28 with HTTP; Wed, 28 Feb 2018 01:30:09 -0800 (PST) From: Christophe Lyon Date: Wed, 28 Feb 2018 10:30:09 +0100 Message-ID: Subject: [Patch] test_summary: handle single quotes To: gcc Patches X-IsSubscribed: yes Hi, We happen to build GCC with '~' in the src and build dirs, leading to single quotes around the configure path in config.status. For example: [...] S["TOPLEVEL_CONFIGURE_ARGUMENTS"]="'/home/christophe.lyon/src/Linaro/abe/abe-contrib-summary/mybuild/snapshots/gcc.git~linaro~gcc-7-branch/configure' SHELL=/bin/bash --with-mpc=/home/"\ [...] This confuses contrib/test_summary which matches "/configure .* in its awk script, which fails to match when we have "/configure' XXX" instead. This patch fixes that by adding matches for the optional single quotes. I use \047 to match the ascii "'", because I couldn't find how to quote this properly in the awk script. OK for trunk? Thanks, Christophe contrib/ChangeLog: 2018-02-28 Christophe Lyon * test_summary: Match possible single quotes in configure path. diff --git a/contrib/test_summary b/contrib/test_summary index 5fc49f5..3560a64 100755 --- a/contrib/test_summary +++ b/contrib/test_summary @@ -103,14 +103,15 @@ BEGIN { NR == 1 { configflags = $0 " "; srcdir = configflags; - sub(/\/configure .*/, "", srcdir); + sub(/\/configure\047? .*/, "", srcdir); + sub(/^\047/, "", srcdir); if ( system("test -f " srcdir "/LAST_UPDATED") == 0 ) { printf "LAST_UPDATED: "; system("tail -1 " srcdir "/LAST_UPDATED"); print ""; } - sub(/^[^ ]*\/configure */, " ", configflags); + sub(/^[^ ]*\/configure\047? */, " ", configflags); sub(/,;t t $/, " ", configflags); sub(/ --with-gcc-version-trigger=[^ ]* /, " ", configflags); sub(/ --norecursion /, " ", configflags);