From patchwork Wed Oct 23 08:48:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Kahurani X-Patchwork-Id: 11206019 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5C57B14E5 for ; Wed, 23 Oct 2019 08:59:21 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 37D74205C9 for ; Wed, 23 Oct 2019 08:59:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nP7RZQ10" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 37D74205C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iNCSU-0004yN-Iu; Wed, 23 Oct 2019 08:57:34 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iNCKl-0003nE-TT for xen-devel@lists.xenproject.org; Wed, 23 Oct 2019 08:49:35 +0000 X-Inumbo-ID: 09babd80-f572-11e9-beca-bc764e2007e4 Received: from mail-pf1-x444.google.com (unknown [2607:f8b0:4864:20::444]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 09babd80-f572-11e9-beca-bc764e2007e4; Wed, 23 Oct 2019 08:49:35 +0000 (UTC) Received: by mail-pf1-x444.google.com with SMTP id y5so12483265pfo.4 for ; Wed, 23 Oct 2019 01:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ypiEyUOcFqLiaGl6xs/x4BG65OVoR1Oyr52k9jGaJnM=; b=nP7RZQ10qslY99ABw83hdE7yaU8Rr9+T4vARfb4JRO7HWEgYW4H4LtIj9X3tzRqF9e P2pCX9NJYjivrE125U+bz+LyoozuCxD7ZT7cGvs2ySM38iVlIWQXBNglGlr2X61TAKiT 6EKcovsN5yyZMfLH1quvfyLQzpQpLynVd7R5iXcef6hYEypyBED1MkxJ4Cjh5Zp9S9eZ IvsKi4UcDNihYT60Qj7usLq3paqBtKi8+ikXAHfjDtIk1Oz6UFXx5Z8fhbYj8Zl3TYkt O8hH3j5KARlpSZ2bvkFL45ls6c5tq0TbdeaU3dKQ/tPa8Mph4xgQRi4FoMUo00ucaPFp 5Fng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ypiEyUOcFqLiaGl6xs/x4BG65OVoR1Oyr52k9jGaJnM=; b=WBBqz06A8zzforN28PzVFWgAVlMmmDp+fycAMMYI6z0S+Ps4/CLo0UzbnQyPZviEin UduIJcVOwpamE73NTLtweH2UqgV27pWeN9ZhK6s3NmdZCsRURuM+JqiKMZHXojb8jtkU dGBTOwHtuZtWVZW6fKBOn0KZ+n3W0JvQNqHiDMPbBHJzgRma3gBXhUUMkXujVRcEbwHr e5Wohgf4bzth6XxDr1oOnz79E4b5wi0OLui/bW3xaHjBvTvzCcKmqoi01cjqKuua+u7D EvKoqlaO1I5HIDLWxGrMcvy0Fc67se8Z+TNQlgFXvb6moPXJJdmpfamW0cTKWS7Q+iS5 mb3w== X-Gm-Message-State: APjAAAXT8q+q8FR+lJzdXPGE2+2gqDQJzm8XJaD6qZd5wAzKQ50O6Nca tmLKZaqzmoLERCPjifJycMiVsUh9DWmGlw== X-Google-Smtp-Source: APXvYqzksmDbFcTgfCDf0OfoY9FzoukQalsBZna2tljX8MwGIYytlNA3HzZrcGMsx/XjA6kMG2eFqA== X-Received: by 2002:a62:685:: with SMTP id 127mr9424798pfg.227.1571820574379; Wed, 23 Oct 2019 01:49:34 -0700 (PDT) Received: from localhost.localdomain ([197.156.190.218]) by smtp.gmail.com with ESMTPSA id f14sm27651008pfq.187.2019.10.23.01.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 01:49:33 -0700 (PDT) From: "K. Kahurani" To: xen-devel@lists.xenproject.org Date: Wed, 23 Oct 2019 11:48:41 +0300 Message-Id: <20191023084841.30903-2-k.kahurani@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191023084841.30903-1-k.kahurani@gmail.com> References: <20191023084841.30903-1-k.kahurani@gmail.com> X-Mailman-Approved-At: Wed, 23 Oct 2019 08:57:33 +0000 Subject: [Xen-devel] [PATCH 1/1] tools/configure: remove redundancy X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: "K. Kahurani" , admin@rapidseedbox.com, jbeulic@suse.com, ian.jackson@eu.citrix.com, jfehlig@suse.com, eblake@redhat.com MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This piece of code is redundant and results in a garbage error message on systems that do not have a default python executable. Signed-off-by: K. Kahurani --- tools/configure | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/configure b/tools/configure index 82947ad..a1f36d1 100755 --- a/tools/configure +++ b/tools/configure @@ -6931,10 +6931,8 @@ fi if echo "$PYTHON" | grep -q "^/"; then : else - PYTHON=`type -p "$PYTHON"` + PYTHONPATH=`type -p "$PYTHON"` fi -PYTHONPATH=$PYTHON -PYTHON=`basename $PYTHONPATH` # Extract the first word of "$PYTHON", so it can be a program name with args. set dummy $PYTHON; ac_word=$2