From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9896015807A for ; Thu, 05 Jun 2025 03:07:47 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 840313430FC for ; Thu, 05 Jun 2025 03:07:47 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 82B1C1102BE; Thu, 05 Jun 2025 03:07:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 77C5B1102BE for ; Thu, 05 Jun 2025 03:07:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2AE713430FC for ; Thu, 05 Jun 2025 03:07:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 97B7B27C2 for ; Thu, 05 Jun 2025 03:07:44 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1749092861.5a4698360bf370fbacf9553208f359b660ce5a66.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/install-qa-check.d/ X-VCS-Repository: proj/portage X-VCS-Files: bin/install-qa-check.d/90gcc-warnings X-VCS-Directories: bin/install-qa-check.d/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5a4698360bf370fbacf9553208f359b660ce5a66 X-VCS-Branch: master Date: Thu, 05 Jun 2025 03:07:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: db984742-09ce-4aa6-9f8e-e4a9d1dc589f X-Archives-Hash: 7b71dc5c3b7f0e04dacda8aa6ce0387e commit: 5a4698360bf370fbacf9553208f359b660ce5a66 Author: Kerin Millar plushkava net> AuthorDate: Thu Jun 5 02:59:42 2025 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jun 5 03:07:41 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=5a469836 90gcc-warnings: de-deduplicate non-adjacent warnings Presently, the 90gcc-warnings QA check uses uniq(1) to de-duplicate the collected warnings. In doing so, it requires for duplicate lines to be adjacent to one another in order to be effective. However, this will not necessarily be the case. Instead, use awk(1) to de-duplicate the warnings while preserving their original order. Bug: https://bugs.gentoo.org/832138 Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/install-qa-check.d/90gcc-warnings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install-qa-check.d/90gcc-warnings b/bin/install-qa-check.d/90gcc-warnings index 691a97f93f..f138fe90df 100644 --- a/bin/install-qa-check.d/90gcc-warnings +++ b/bin/install-qa-check.d/90gcc-warnings @@ -170,7 +170,7 @@ gcc_warn_check() { fi \ | sed -E -e $'s/\033\[[0-9;]*[A-Za-z]//g' \ | grep -E -a "warning: (${patterns[*]})" \ - | uniq + | awk '!seen[$0]++' ) if (( i > 0 )); then