Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK refurbishing resubmit
Date: Fri, 16 Mar 2018 05:11:00
Message-Id: 00e6fab0-ee21-f67d-5d9e-b5196ce48074@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK refurbishing resubmit by "Michał Górny"
1 On 03/15/2018 12:22 PM, Michał Górny wrote:
2 > Hi,
3 >
4 > Here are three of four INSTALL_MASK updates I've sent long time ago
5 > which were not really reviewed. The fourth patch added support
6 > for repo-defined install-mask.conf and I'll do that separately.
7 >
8 > Those patches focus on smaller changes. What they change, in order:
9 >
10 > 1. Removes explicit file removal code for FEATURES=no*. Instead, those
11 > values are converted into additional INSTALL_MASK entries
12 > and handled directly via INSTALL_MASK processing.
13 >
14 > 2. Rework INSTALL_MASK to filter files while installing instead of
15 > pre-stripping them. In other words, before: INSTALL_MASK removes
16 > files from ${D} before merge. After: ${D} contains all the files,
17 > Portage just skip INSTALL_MASK-ed stuff, verbosely indicating that.
18 >
19 > 3. Adds support for exclusions in INSTALL_MASK. In other words, you
20 > can do stuff like:
21 >
22 > INSTALL_MASK="/usr/share/locale -/usr/share/locale/en_US"
23 >
24 > I have been using this via user patches since the last submission.
25 > Guessing by 'git log', this means almost 2 years now.
26 >
27 > --
28 > Best regards,
29 > Michał Górny
30 >
31 > Michał Górny (3):
32 > portage.package.ebuild.config: Move FEATURES=no* handling there
33 > portage.dbapi.vartree: Move INSTALL_MASK handling into merging
34 > portage.dbapi.vartree: Support exclusions in INSTALL_MASK
35 >
36 > bin/misc-functions.sh | 30 ----------
37 > pym/portage/dbapi/vartree.py | 104 ++++++++++++++++++++++-------------
38 > pym/portage/package/ebuild/config.py | 11 ++++
39 > 3 files changed, 77 insertions(+), 68 deletions(-)
40
41 I like this patch set but here are some important things that I want it
42 to do differently:
43
44 1) For the unmerge code, it needs to read the appropriate
45 /var/db/pkg/*/*/{PKG,}INSTALL_MASK file in order to account for the
46 {PKG,}INSTALL_MASK settings that existed when the package was built
47 (PKG_INSTALL_MASK) and merged (INSTALL_MASK). A binary package should
48 use the value of INSTALL_MASK that existed at build time.
49
50 2) In order to support bashrc {PKG,}INSTALL_MASK settings, we need to
51 write the values from the environment to
52 ${PORTAGE_BUILDDIR}/build-info/{PKG,}INSTALL_MASK and read them from
53 there (we do this for many other variables including QA_PREBUILT).
54 --
55 Thanks,
56 Zac

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies