From patchwork Mon Feb 10 04:35:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Clark X-Patchwork-Id: 11372451 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 D59F6924 for ; Mon, 10 Feb 2020 04:37:02 +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 A78B220870 for ; Mon, 10 Feb 2020 04:37:02 +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="R4XSIXaR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A78B220870 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none 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 1j10nO-00012S-Ms; Mon, 10 Feb 2020 04:35:42 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j10nN-00011i-T8 for xen-devel@lists.xenproject.org; Mon, 10 Feb 2020 04:35:41 +0000 X-Inumbo-ID: c870dbcc-4bbe-11ea-a759-bc764e2007e4 Received: from mail-pl1-x643.google.com (unknown [2607:f8b0:4864:20::643]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id c870dbcc-4bbe-11ea-a759-bc764e2007e4; Mon, 10 Feb 2020 04:35:37 +0000 (UTC) Received: by mail-pl1-x643.google.com with SMTP id t14so2296791plr.8 for ; Sun, 09 Feb 2020 20:35:37 -0800 (PST) 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=1cbDJdoK8QYqxLOfQx5VCmIO7/QSEycKH+XqDTZq9Es=; b=R4XSIXaRV7GsmDuDAp2wkhHB9wqkOUpgdlvkLIlSFYp6Oz9Wr9dC+nacxHqQOS2YuE p4EnIDbCmJfbXIrvkHgZkSv4dNcwlviukQe1i6+TGHNp9FAkW35P/OdG+pCon1l11uT+ 2zH4flZvDfDIfPltjRbBnWZwgrD9l5awIIjaXUvdsLcsOw8rbazfvJTcokgJCeywxIba LFVa09Jk6UjhjNmcSN5H0F2OhWr/GnnKU2WYJXzRaMPsQSNqQS1peMky8KsAgjWY3KGX 0Zwy8FfHGtmKf6mlmY4sPyap/Zl4v1Lqo6mMSbiw+WuXnxHdWzZOeyfgifXK04bBkH1M 373A== 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=1cbDJdoK8QYqxLOfQx5VCmIO7/QSEycKH+XqDTZq9Es=; b=S4+UGED2RZfUoSEQsG2RNQJlv3Z/mQ8Qx7oi/I60PlS4QhQEvkJWXhjR0qxhFMWsKn CGXTWmZbYOFbK2KCzxqBE97/JU+4ubImEc3Xh3eObDEaWNY7W0tmBv8WeXKebf7WR/MQ cvq6vJbs1sN7ol2ab98s+X0mgefocXUJ2pd+yFxhiSky3Y+D9LqGbA/vkTC2X5wIVmpY UUb9BfE5tN2T0VFE+2wqEkOqbaT0n7s+L2Zeyd0A3JA4UHxGnkgCEp5oz40jtLWzbJvH HYlVtxYqx05FAqSA6ReR+4j8alRyoiGLfL7qwb8nzqHswvvgIRniFdgACyL5qk1bdqff 2k0w== X-Gm-Message-State: APjAAAXbJaEfdo+rsDp60uNHbQ6Nv6HICT+xywo61y4BUEPkQMrdcMjS Yx0sV0Phk6yFf6kfiE4bU+Ij4OFg X-Google-Smtp-Source: APXvYqwhN9acwKXzwXPM5FdcqdExio0g48BGDlRiLnWykzhOhAcPEhBsPNbQVTlk6gHEEnB0ww1qVw== X-Received: by 2002:a17:902:426:: with SMTP id 35mr10921245ple.176.1581309335944; Sun, 09 Feb 2020 20:35:35 -0800 (PST) Received: from desktop.ice.pyrology.org (static-50-53-74-115.bvtn.or.frontiernet.net. [50.53.74.115]) by smtp.gmail.com with ESMTPSA id l15sm9089246pgi.31.2020.02.09.20.35.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Feb 2020 20:35:35 -0800 (PST) From: Christopher Clark To: xen-devel@lists.xenproject.org Date: Sun, 9 Feb 2020 20:35:15 -0800 Message-Id: <20200210043516.1996-2-christopher.w.clark@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200210043516.1996-1-christopher.w.clark@gmail.com> References: <20200210043516.1996-1-christopher.w.clark@gmail.com> Subject: [Xen-devel] [PATCH 1/2] pygrub: fix python3 cross-compile: install with INSTALL_PYTHON_PROG 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: Rich Persaud , Ian Jackson , Wei Liu MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Install pygrub with INSTALL_PYTHON_PROG, as per the other Xen python executables, to ensure that the hashbang path to the interpreter is written correctly in cross-compile builds, eg. with OpenEmbedded. Signed-off-by: Christopher Clark --- tools/pygrub/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile index 3063c4998f..b4f6f10ddd 100644 --- a/tools/pygrub/Makefile +++ b/tools/pygrub/Makefile @@ -18,6 +18,8 @@ install: all CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) \ setup.py install --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \ --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force + rm -f $(DESTDIR)/$(LIBEXEC_BIN)/pygrub + $(INSTALL_PYTHON_PROG) src/pygrub $(DESTDIR)/$(LIBEXEC_BIN)/pygrub set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \ "`readlink -f $(DESTDIR)/$(bindir)`" != \ "`readlink -f $(LIBEXEC_BIN)`" ]; then \