Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by mx.groups.io with SMTP id smtpd.web12.6697.1631265311116971541 for ; Fri, 10 Sep 2021 02:15:11 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=OjzuCQEW; spf=pass (domain: linuxfoundation.org, ip: 209.85.221.52, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wr1-f52.google.com with SMTP id x6so1605544wrv.13 for ; Fri, 10 Sep 2021 02:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=BGBaqP5WFEIW7jGtXNy5Z+55qrVZ2ZDg24rr1iNupJg=; b=OjzuCQEW71M28NtZOsEgMkQBzC9RRvnTxhb9YFwr+YYC3JYuEeqRRTSqdrnEkQ0TTK qBWrhoBkkOCvUHF9n1VA1JeZYntfMUaaC9RWig/FRw+AF26hTwasngi83JWE5iJmqrj/ /gVlhH6IA+/GVEHYngNg04D/OxFcGjxW3CTJw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=BGBaqP5WFEIW7jGtXNy5Z+55qrVZ2ZDg24rr1iNupJg=; b=ys6N/cEEJS0eMomz2puvw65y5h+lV2cs6B8SdfAeUk8GBwjrv1V6Wtlub11f6Ecdlf qsYT2vUmZd4jCleT1If35/iggnr/QkVpT4zhX7/eqzBSq8xU+N9YYjd0dBTLfJpBvEFP dQIK/404v2zI+Et5BrLw+y0gqrLLn4Go17I1O5+LxBtVEDbbfZp0YNk25W0BnVeMXyDz lsZ9QyhaxA3m+H39nCYeKx8PfpDrG4mkR7abyhKtILbdO0XTV6pahcnZTvR+oAXEQhFA Pt/afoB2ELqmkFkS8bZv5OLhi3kxAvdWulm6x5neJn4X+m276Vup465rviTiEcdDL6a9 v4bg== X-Gm-Message-State: AOAM532MKXRTR0hKqOEc1xKsoPntFOD1qRRC2Pi52bQSJzVfQs0nBhpM 8/fytjIKg6XbCrlhSFg39WQwmxp1ekYQhIP9 X-Google-Smtp-Source: ABdhPJx23BkHOBdAD/agM79maLGEXwK86lPjPZsJY0W70hPXYzwq8h/6UwbsP73bSfbOnIN3X8bMfQ== X-Received: by 2002:a5d:668c:: with SMTP id l12mr1493323wru.436.1631265309475; Fri, 10 Sep 2021 02:15:09 -0700 (PDT) Return-Path: Received: from hex.int.rpsys.net ([2001:8b0:aba:5f3c:69c:dc1e:bcce:ea45]) by smtp.gmail.com with ESMTPSA id d29sm4372893wrc.6.2021.09.10.02.15.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Sep 2021 02:15:09 -0700 (PDT) From: "Richard Purdie" To: bitbake-devel@lists.openembedded.org Subject: [PATCH 1/3] build: Match markup to real function name Date: Fri, 10 Sep 2021 10:15:06 +0100 Message-Id: <20210910091508.1249752-1-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The point of the injected text is to identify where the function comes from. Using the correct function name would therefore be better. Signed-off-by: Richard Purdie --- lib/bb/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bb/build.py b/lib/bb/build.py index 6ce8f1e6d3..ab3344c460 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -295,8 +295,8 @@ def exec_func_python(func, d, runfile, cwd=None): lineno = int(d.getVarFlag(func, "lineno", False)) bb.methodpool.insert_method(func, text, fn, lineno - 1) - comp = utils.better_compile(code, func, "exec_python_func() autogenerated") - utils.better_exec(comp, {"d": d}, code, "exec_python_func() autogenerated") + comp = utils.better_compile(code, func, "exec_func_python() autogenerated") + utils.better_exec(comp, {"d": d}, code, "exec_func_python() autogenerated") finally: bb.debug(2, "Python function %s finished" % func) -- 2.32.0