From patchwork Mon Nov 11 12:45:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 179064 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp6605522ilf; Mon, 11 Nov 2019 04:45:23 -0800 (PST) X-Google-Smtp-Source: APXvYqy7cP6C7LablDqiwxxuc5c+PK+HHA1Z1rrHoTEfB/gauV8dvCqe1whII+lQjZHcvNokfLbr X-Received: by 2002:a17:902:9a8b:: with SMTP id w11mr26098532plp.9.1573476322852; Mon, 11 Nov 2019 04:45:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573476322; cv=none; d=google.com; s=arc-20160816; b=XNMblX3yXLoG2GRn3rJduD+M9rM4pOJ3U8WpZN/Y0FyAIXopI66cf8D398RFAB3bag ajXnovRS8KNlxbMODqRedzHgJP2/DFxDMiElqnLcbRYKaQOrar69dgFM2YCAifUAYMge 8Cbb3HyM75cI46Osn37shg/U8+11XDkSa23kJpDlWkaAM9J1uCQK5HcX9LZ69rPV0cwr fx43Zzr9GLTeU0wEpW8BPaNxXCW2uWYlELrGT7paDVfWZabDd5+Bb5xfkMdKo0H9K+/6 iAYJ730PpFkKicJ9RNkyWrqKCPhxcuY2Jw+D3cRq1bjjPvRFQ/z+Cqf/wY8IkQ34qr4E uSHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=mXa6vAD5wuNxXjvXWi49IcmdDDJTZ/Lt4hwc7R7dTTM=; b=UQfJgXV+a+ijP9cO45BEUMEZ/xV2yBavlscLpZWGVdF6ZluhpW8TjqyFhErNZPDOvN 4y3xnj5usEgwn8Nr/u8DbP/myPA53BYLflQAFYmlxX9o98syvz7cBksl1WHABG0ZKQ0W LGK8610yH1Ek8pJLes/pfiMOtKH7f2zdDilnNn+yBugF+M4fpf4cvUEBqv97Qyjdq5rq FejAdXUalgEwSeiEZLmKgF95vmVh5L+4DkbaNiBS24+UqqlWyMpM3aWyju9wrMweRVOB XmBDwVdFcu72NirofcGVncfn99ctxzAW2OF96eh89bSz6EUwbFKzH+KxDHtE9lkzcHKK kyNw== 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=tY28oNjZ; 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 1si17230451pgu.216.2019.11.11.04.45.22; Mon, 11 Nov 2019 04:45:22 -0800 (PST) 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=tY28oNjZ; 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 27E8B7F9B4; Mon, 11 Nov 2019 12:45:17 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by mail.openembedded.org (Postfix) with ESMTP id 3E7567D72F for ; Mon, 11 Nov 2019 12:45:14 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id b11so13144330wmb.5 for ; Mon, 11 Nov 2019 04:45:16 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=pNm4FHl4/mwoZWUAENcG+hRx4P74d9tEam1HmxvMsLo=; b=tY28oNjZtkx3T3LIWbO49tn/wJ5zfvDKihYyuzozI+IOBnzislyV3Z4bN31hJ8urG7 4s6xx57K4bXWM/SqV77Lg6ZDFys2DnSsEWxGYuumXR4mN/b8yK9cOUV3DmblP01rPOwO 4OBvqjBuDEcti6W+leFL5k9MKl1zSVd8zEHx3j224r7hGSz/1zHkrJEdy2O/mhB9eM38 o6QUL2AuJqr+F+cqeJl6L99zAhgnZRGeKod3cjHbeM88US/mLwyAAED1pX1Lyqp8HWmS kmyeF55/UiuNXtP0DQlvALJydlrhFGrMtNe9ChXeYy1WZ+l4RnyotDhsBq9jA/x4DvZL 5TOA== 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:mime-version :content-transfer-encoding; bh=pNm4FHl4/mwoZWUAENcG+hRx4P74d9tEam1HmxvMsLo=; b=hDwR+SUUzsNNXrslXd3Pt39+ggt76VjG1OizSD8737Aw746mRJV5ls2BgseVimFiNn R+qJP29DChQ2sAuJVPLpnOTOzFjyvtpHcCOKBBir2ABasvaAZ8MfQKVgUehl8yGp6ez6 mstUgnwzcVmsR1cldHuzUxB2W7luTHR6M6Xtol/vULhGCAKtIjC9eCdKaL9iKooNp9qK ENm9GJTZepz8fvwiVBZnWzXXmiTkQ7bPvCHj99kvrF8kDQK5fzKy3bMusQk7gHb/kimF PofUpCQu1ct18UKotKwDwUMzp/1wGN9gRA8PnQVe5GzswGIOa4Y4sO6NFD+iJPkEER2u keeQ== X-Gm-Message-State: APjAAAVElnCIKJ8FHcjLcuof0iz+zQVzMGGP3Bklz1HoUTU/Tfed8otp uNVxIysxcX4pXW9/+z2QouGVIAKly5w= X-Received: by 2002:a1c:740a:: with SMTP id p10mr18988028wmc.49.1573476315302; Mon, 11 Nov 2019 04:45:15 -0800 (PST) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id d199sm15502076wmd.35.2019.11.11.04.45.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 04:45:13 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 11 Nov 2019 12:45:12 +0000 Message-Id: <20191111124512.23645-1-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH] insane: improve textrel warning message 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Clean the displayed path so it clearly shows the package name and path in that package. Signed-off-by: Ross Burton --- meta/classes/insane.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.20.1 -- _______________________________________________ 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 9605ac2baee..f856cf6a2b6 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -340,9 +340,11 @@ def package_qa_textrel(path, name, d, elf, messages): for line in phdrs.split("\n"): if textrel_re.match(line): sane = False + break if not sane: - package_qa_add_message(messages, "textrel", "ELF binary '%s' has relocations in .text" % path) + path = package_qa_clean_path(path, d, name) + package_qa_add_message(messages, "textrel", "%s: ELF binary %s has relocations in .text" % (name, path)) QAPATHTEST[ldflags] = "package_qa_hash_style" def package_qa_hash_style(path, name, d, elf, messages):