From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 262E0A052A; Mon, 25 Jan 2021 23:13:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E7F941411BD; Mon, 25 Jan 2021 23:13:11 +0100 (CET) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by mails.dpdk.org (Postfix) with ESMTP id 7E2791411B1 for ; Mon, 25 Jan 2021 23:13:08 +0100 (CET) Received: by mail-lj1-f180.google.com with SMTP id s18so4132038ljg.7 for ; Mon, 25 Jan 2021 14:13:08 -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 :mime-version:content-transfer-encoding; bh=gmFjSETzsYYjqaxj3S1G/eJ/PmYRFDEM4IWgevvCfak=; b=bmb/gL13BdkiZrCVewmWQf55QAQU+sfyfUJeNhUVW04ptF1uWzD94nCI8pTvqBP1yw ayqHzKz49oCsgKapSG+hPHvx/dqIFwCUEu3Lj6a0ZxmOURcIECP1tO4KQqAjNsWH8gpq yaosWHp+7G1GRxLt/5q1XYzi/AEwGtXbl1Z/o60tDWv5TNzdoPKwlDPkjBr7UdbmVp9R BqsAOMtnkvifhP5UWPq+BNv7HfMsHlXtaGmxlRzPTU4ucGuLYsi9Xm2a4ZQSae2GVbhy Aq+ax+9+CxkLfHaSO9F4ooOFUUWV1eAggR5K9CIlQzHxT7QWAT0S5zIkpp3ZkhSZs1p7 309A== 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:mime-version:content-transfer-encoding; bh=gmFjSETzsYYjqaxj3S1G/eJ/PmYRFDEM4IWgevvCfak=; b=H0MDHtz7J0kaGN3Ltv30OD2DfKxzc2DqitBgtFilK+lguZMvwB1LUIpbqU/qSqBoGA oY9EiBK+Xfuak1IpYmhZyo3ckKD6Vy5tPCfQRTuRTC4GGuhmz6nWbhDl0VVQShbQGT+t QPqCWR49/feQfsgamtLzc6xMYjWquJaHSL6MuNNVW+OWmWKXJAGmz93+ZrjGJA6cL7Hz 94e6+lOjv/KBEQU5MdAjR/Tt+c5gBwyqZwFEq2cWqZsqLEyUIFg9w2YUtP4dglU7mgWC DKMogBBkMrvpJggkf2kptY9CN/BeocZq3g0HbFVHvvVY8T9KBRj4NX/8W9hxDfJ99HT0 g9Dw== X-Gm-Message-State: AOAM531YfkKq1+LR3/tJCaab6QkmBMPMlrBHYKo1/sSxWe/MKBFkZSH5 r9kqAY2sDPKfQqLFK5FfiG1O6/eH3Vw= X-Google-Smtp-Source: ABdhPJyhvRQF3jPS9EFacKWQGr56mAJhm7pBeVEI3vVxp0CpeAhFYr53jQaNHobIu9lVevaj0DJ6gg== X-Received: by 2002:a2e:9613:: with SMTP id v19mr1162281ljh.135.1611612787803; Mon, 25 Jan 2021 14:13:07 -0800 (PST) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id w2sm533831lfd.305.2021.01.25.14.13.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 14:13:07 -0800 (PST) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Ali Alnubani , Bruce Richardson , Thomas Monjalon , Dmitry Kozlyuk Date: Tue, 26 Jan 2021 01:12:50 +0300 Message-Id: <20210125221251.19147-4-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210125221251.19147-1-dmitry.kozliuk@gmail.com> References: <20210125221251.19147-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 3/3] buildtools: use build subdirectory for temporary files 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" Use current build directory as base for temporary directories, so that all build files are isolated there. Fixes: caaca1ec6a8e ("buildtools: support object file extraction for Windows") Signed-off-by: Dmitry Kozlyuk --- Thomas asked to send this as a follow-up before regression has been noticed, may be squashed with commit mentioned above or applied on its own. buildtools/gen-pmdinfo-cfile.py | 4 ++-- buildtools/meson.build | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/buildtools/gen-pmdinfo-cfile.py b/buildtools/gen-pmdinfo-cfile.py index c60ecd7f6..a4e080199 100644 --- a/buildtools/gen-pmdinfo-cfile.py +++ b/buildtools/gen-pmdinfo-cfile.py @@ -7,8 +7,8 @@ import sys import tempfile -_, ar, archive, output, *pmdinfogen = sys.argv -with tempfile.TemporaryDirectory() as temp: +_, tmp_root, ar, archive, output, *pmdinfogen = sys.argv +with tempfile.TemporaryDirectory(dir=tmp_root) as temp: proc = subprocess.run( # Don't use "ar p", because its output is corrupted on Windows. [ar, "xv", os.path.abspath(archive)], stdout=subprocess.PIPE, check=True, cwd=temp diff --git a/buildtools/meson.build b/buildtools/meson.build index 0a2e91a7b..9c9347457 100644 --- a/buildtools/meson.build +++ b/buildtools/meson.build @@ -18,7 +18,7 @@ map_to_win_cmd = py3 + files('map_to_win.py') sphinx_wrapper = py3 + files('call-sphinx-build.py') # select library and object file format -pmdinfo = py3 + files('gen-pmdinfo-cfile.py') +pmdinfo = py3 + files('gen-pmdinfo-cfile.py') + [meson.current_build_dir()] pmdinfogen = py3 + files('pmdinfogen.py') if host_machine.system() == 'windows' if cc.get_id() == 'gcc' -- 2.29.2