From patchwork Wed Jun 30 16:22:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Kozlyuk X-Patchwork-Id: 95086 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C3A34A0A0F; Wed, 30 Jun 2021 18:22:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 75A7140141; Wed, 30 Jun 2021 18:22:43 +0200 (CEST) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mails.dpdk.org (Postfix) with ESMTP id 180E340040 for ; Wed, 30 Jun 2021 18:22:42 +0200 (CEST) Received: by mail-lf1-f49.google.com with SMTP id f30so6213031lfj.1 for ; Wed, 30 Jun 2021 09:22:42 -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:mime-version :content-transfer-encoding; bh=AORn1DozQt7idNAdybDXQK+gSZgJhWUhrGdNLFufRUY=; b=cvprmk3SWlIAiJhlP7MukiMPrTVnWXyYFNTaBqOAE8UuOtN3esr4KJQHgj7C/vIfJq z0lXE5+8XcBwCoWwWpMuabFzOv3CraBigGrYtuuQNHYtybmJsowHfG3ZanIDhBSNKfNf 13qz+Go6cQ9uvTYtqk9mH0BDhA1Rqa0uoWDdZrhQDfWa6yeDoYqIMSdTmIF4yrQPaGvQ E9cJKESoB2IYgGuiYVM4BT2MDvAPMUA210eT+doY34OiuPg2ThVXcDW7ltFWqJbOadZK 7DSZi7fpysjbzSj0U5OuAOg2A5KaBe9XW9sdiNp+/Wh8Tkj1K1kPNRnRxD4TDm7PpwIu GjTA== 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:mime-version :content-transfer-encoding; bh=AORn1DozQt7idNAdybDXQK+gSZgJhWUhrGdNLFufRUY=; b=NDVO8RMgwq3dRMFAkVePKOOqTwcRpYoMAHw2AdJOr7JlQSS3OUEhDdXidUlOSJCWLq t9DF+RrHL7t3+vyd+Mm25EYWZdMljzAuBvwyhZIgoPB2N/P6tmPjq6nwM2Gd8QRZnMTI aLSk0YeYm07dCzyY73DizFT8QE6bvQ2D5fJaYVMJ7x/UwhV69eptcjg69nVD2vNb4VKa udI6akPoofDgaD49C5rWrwBHE4eYuaUV0av6Hu5uxU8XzXNsR/76iLWQRZFPP4mnGqJU sFnYgSHOEqPtCaixPl3BrKcQpiFQTsfwwAnpgCVacjrjT3jSl2hc/YMGY2YofoYpU4nM E7FA== X-Gm-Message-State: AOAM5336L5Na8z7lohdC1mBbgXTiVnDJDxPd4CfZeXNnuZqMoPw+vEtY sA3M2UBgrs16MeNS7OWO7nj7OYe66zXylQ== X-Google-Smtp-Source: ABdhPJy1+Kgk9v7vZYal+Dcu1XjgBHsZQGxyt1+jcupjAhkpydO1sOlrLpy3ZhU/CMF94aWaRwCF3A== X-Received: by 2002:a05:6512:2601:: with SMTP id bt1mr27215482lfb.590.1625070161260; Wed, 30 Jun 2021 09:22:41 -0700 (PDT) Received: from sovereign.. (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id a5sm1447534lfj.190.2021.06.30.09.22.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 09:22:40 -0700 (PDT) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Bruce Richardson , Luca Boccassi , Rob Scheepens , Dmitry Kozlyuk Date: Wed, 30 Jun 2021 19:22:35 +0300 Message-Id: <20210630162235.267285-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.3 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] doc: fix build on Windows with meson 0.58 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The `doc` target used `echo` as its command. On Windows, `echo` is always a shell built-in, there is no binary. Starting from meson 0.58, `run_target()` always searches for command executable and no longer accepts `echo` as such on Windows. Replace plain `echo` with a Python one-liner. Fixes: d02a2dab2dfb ("doc: support building HTML guides with meson") Cc: Bruce Richardson Cc: Luca Boccassi Cc: stable@dpdk.org Reported-by: Rob Scheepens Signed-off-by: Dmitry Kozlyuk Acked-by: Luca Boccassi Acked-by: Bruce Richardson Acked-by: Thomas Monjalon --- Sorry for the noise, sent to stable@ instead of dev@ first. doc/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/meson.build b/doc/meson.build index 959606b965..abd7d70421 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -11,5 +11,6 @@ if doc_targets.length() == 0 else message = 'Building docs:' endif -run_target('doc', command: ['echo', message, doc_target_names], +echo = [py3, '-c', 'import sys; print(*sys.argv[1:])'] +run_target('doc', command: [echo, message, doc_target_names], depends: doc_targets)