From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AD41715803E for ; Sat, 6 Jan 2024 13:46:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 236312BC0E4; Sat, 6 Jan 2024 13:44:59 +0000 (UTC) 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 pigeon.gentoo.org (Postfix) with ESMTPS id 87AA72BC0E1 for ; Sat, 6 Jan 2024 13:44:58 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 5/9] install-qa-check.d/60python-site: Forbid lib & usr package names Date: Sat, 6 Jan 2024 14:44:42 +0100 Message-ID: <20240106134446.26153-5-mgorny@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240106134446.26153-1-mgorny@gentoo.org> References: <20240106134446.26153-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: fce0d58c-4e19-4d05-8e82-00196a566250 X-Archives-Hash: 632f8e0f3ea4b9046c8909423dddd6d3 Forbid `lib`, `$(get_libdir)` and `usr` as package names, to catch accidentally duplicating sitedir as prefix. Bug: https://bugs.gentoo.org/618134 Signed-off-by: Michał Górny --- metadata/install-qa-check.d/60python-site | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metadata/install-qa-check.d/60python-site b/metadata/install-qa-check.d/60python-site index a54dda53a454..3fd697605a70 100644 --- a/metadata/install-qa-check.d/60python-site +++ b/metadata/install-qa-check.d/60python-site @@ -15,6 +15,8 @@ python_site_check() { # NB: setuptools/discovery.py is a good source of ideas benchmark benchmarks dist doc docs examples scripts tasks test tests tools util utils + # catch double-prefix installs, e.g. https://bugs.gentoo.org/618134 + lib $(get_libdir) usr .pytest_cache .hypothesis _trial_temp ) -- 2.43.0