From patchwork Tue Jun 18 10:43:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 167133 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4043147ilk; Tue, 18 Jun 2019 03:43:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqy22UFKQYExJuLto+PvJ5wLHCIFy+NQaB6AxvsoF6ayaKzxiQrseQNp6B8AetiY//tc3Rty X-Received: by 2002:aa7:956d:: with SMTP id x13mr80435124pfq.132.1560854630366; Tue, 18 Jun 2019 03:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560854630; cv=none; d=google.com; s=arc-20160816; b=O67y8MZNAJHGxbULoGOFIRy3UtHUZrDfht4FOz4wVAfiX8CS5BM2ouCKBsPRkbALhU ZgtVM3KQplGaaUSyriYw09WKZfb4hCYMT50QPQdrdJeioVS84ZuZGkD0mkGrmlWa7N1r DyxNgIQg+4zmWocbL5DgmcafahtIuDwhiTBpblQN/LRluckdRE4h8kR/mSNaSCGZ4y/+ d1RFRcwwuhuIsxHwyQm7d9T88uL+AfL2x6ZDnUkryuFqt0DgdEwoof/5VqAHiM3sYMQN YYvGuA6/SO9Uzk4rvv0q12aVHyQpNgG7qQJHT9VqkbXDqviwb1M9O6Q1IM5Qpx5O4b+E 5Qcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=ROxa1eSPtS7bDAUPObxMOw9iRnSyi2cdYPU98C5mHd8=; b=k1wJoP5MWAslhCAWb3LTOwc48n/aa5IOnj//UHbK/CxSvCu32TJPYwU4ldME0zQU8i tuTayC49tmyC5HniZ8MK18cJBAMPanaVTxDLLph9IVKMN6joyaohnmZEOpkLSqfh0gS7 DRgzlB+GDTjhwxghpYeCH9AEoN77lPRJ3vOONw/CWpVoDvNtMZtjEIUVAnfwSAyyVydB fW88t1ILrfCIBa4gS/FnKNCGsaIMvsDPtaxS4RYDSVdre9uWIe1vv69TfLdjjr+18Oth 69XXdZEc0kZv9UmKEzzKceLmgBZE0GdjUdmZux55O4H/Ft8Vc16egv7qC9N/QZ/4WIF1 cldg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=rP9JYwAt; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id q15si13337350pgi.575.2019.06.18.03.43.50; Tue, 18 Jun 2019 03:43:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=rP9JYwAt; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 58B857E894; Tue, 18 Jun 2019 10:43:47 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by mail.openembedded.org (Postfix) with ESMTP id D6C887E6FE for ; Tue, 18 Jun 2019 10:43:45 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id n4so13363995wrw.13 for ; Tue, 18 Jun 2019 03:43:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=gkt2oo6GdC/kfE4+y2ORkR4iRy1FXI5chR6TiKT+oSg=; b=rP9JYwAtNJhYU4s23/9tipkA92asTY/2jazn6zomo5pxjbur14hBqKlr7OQQMp1TLt EwqTHbI46qSNnjQacirB1t9UvrFh4Ce+g2SFAkJs6M1B1K3TaBABP41vaTYY8tzMMq3L EzDUUwbqB3ZSyZYAII6E8AtA9Vj4lPUNhKYE5qQz6eR+uZb1KJNnHwxhWKnVy69w1IOc lxAbWUSuO30NdMGHH2KT9BE64EucoqX3247zSqWdJl5LW0X8irw0XL1ckXHsMxF3YSv1 82f5JopNzW/oC0Eu2WZKnXrrE+1VNdA8dFgIATX17fiiBfFT8T7TGOPzhZww3YbLiuLy Yk3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=gkt2oo6GdC/kfE4+y2ORkR4iRy1FXI5chR6TiKT+oSg=; b=ov5c3fK/ox/fez9+o/mYM64yUjFvl88jrPbSWG3z9hc3VKQ236gf4KXD1Uw7u8sWgx A2o0uJlx+K4kEdIgAUtJfdn5Uf/DwWydDWw34Gno7P8ksKJ3eUPf1ud7TuB1FzkLn18k 7r10rd9T/G/vFJCaTGPI0zfdyX946n8kJO2E5EgXcN3pqLqKT7CUStDFu14zlZdwe3mC Uk56fSFlig2JD7leIzDmG0e8LgHkCKA/rjpKFLitXgMCaASu5W7l9+g73RReEPKDGxSc MVbzaMecTnqdIZlDZG99slE/w3Wf8Hf+zb0SmalC7J1TEmSY50NJx3ojLJpFHwIgFw/v Sq3g== X-Gm-Message-State: APjAAAXUVIHWkbrlYQri5KTydp9CkzghtYdWK0/aoEWd/+NWgbiJRppm 0DrNJU+SSYi7MatmsMNdiDmjXkbUt3c= X-Received: by 2002:adf:9dcc:: with SMTP id q12mr11883080wre.6.1560854626381; Tue, 18 Jun 2019 03:43:46 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id r131sm1847824wmf.4.2019.06.18.03.43.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 03:43:45 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 18 Jun 2019 11:43:43 +0100 Message-Id: <20190618104343.24216-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] insane: improve buildpath warning messages X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Instead of reporting large chunks of the work directory and not the package name: "File /work/corei7-64-poky-linux/libidn2/2.2.0-r0/packages-split/libidn2-dev/usr/lib/pkgconfig/libidn2.pc in package contained reference to tmpdir" We can clean up the paths and be more useful: "File /usr/lib/pkgconfig/libidn2.pc in package libidn2-dev contains reference to TMPDIR" Signed-off-by: Ross Burton --- meta/classes/insane.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 6e32db00314..0695a044387 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -401,7 +401,8 @@ def package_qa_check_buildpaths(path, name, d, elf, messages): with open(path, 'rb') as f: file_content = f.read() if tmpdir in file_content: - package_qa_add_message(messages, "buildpaths", "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d)) + trimmed = path.replace(os.path.join (d.getVar("PKGDEST"), name), "") + package_qa_add_message(messages, "buildpaths", "File %s in package %s contains reference to TMPDIR" % (trimmed, name)) QAPATHTEST[xorg-driver-abi] = "package_qa_check_xorg_driver_abi"