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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D2B8F1382C5 for ; Thu, 15 Mar 2018 19:22:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9BAACE08EB; Thu, 15 Mar 2018 19:22:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6437AE08BB for ; Thu, 15 Mar 2018 19:22:20 +0000 (UTC) Received: from localhost.localdomain (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id EFF28335C77; Thu, 15 Mar 2018 19:22:17 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-portage-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK refurbishing resubmit Date: Thu, 15 Mar 2018 20:22:08 +0100 Message-Id: <20180315192212.13454-1-mgorny@gentoo.org> X-Mailer: git-send-email 2.16.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 612b9969-5057-4f8b-9b50-33796cf69ff7 X-Archives-Hash: d6f4ca15a5bcd693ff6f63af0e717f5c Hi, Here are three of four INSTALL_MASK updates I've sent long time ago which were not really reviewed. The fourth patch added support for repo-defined install-mask.conf and I'll do that separately. Those patches focus on smaller changes. What they change, in order: 1. Removes explicit file removal code for FEATURES=no*. Instead, those values are converted into additional INSTALL_MASK entries and handled directly via INSTALL_MASK processing. 2. Rework INSTALL_MASK to filter files while installing instead of pre-stripping them. In other words, before: INSTALL_MASK removes files from ${D} before merge. After: ${D} contains all the files, Portage just skip INSTALL_MASK-ed stuff, verbosely indicating that. 3. Adds support for exclusions in INSTALL_MASK. In other words, you can do stuff like: INSTALL_MASK="/usr/share/locale -/usr/share/locale/en_US" I have been using this via user patches since the last submission. Guessing by 'git log', this means almost 2 years now. -- Best regards, Michał Górny Michał Górny (3): portage.package.ebuild.config: Move FEATURES=no* handling there portage.dbapi.vartree: Move INSTALL_MASK handling into merging portage.dbapi.vartree: Support exclusions in INSTALL_MASK bin/misc-functions.sh | 30 ---------- pym/portage/dbapi/vartree.py | 104 ++++++++++++++++++++++------------- pym/portage/package/ebuild/config.py | 11 ++++ 3 files changed, 77 insertions(+), 68 deletions(-) -- 2.16.2