public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK redesign, part I
@ 2016-05-22  6:56 Michał Górny
  2016-05-22  6:56 ` [gentoo-portage-dev] [PATCH 1/3] portage.package.ebuild.config: Move FEATURES=no* handling there Michał Górny
                   ` (3 more replies)
  0 siblings, 4 replies; 31+ messages in thread
From: Michał Górny @ 2016-05-22  6:56 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Michał Górny

Hello, everyone.

As part of new GLEP effort, I'm working on improving INSTALL_MASK
support in Portage to make it cleaner and more featureful. Here's
the first set of commits resulting from this.

The previous implementation of INSTALL_MASK was done purely in bash.
Long story short, Portage removed all files matching one of INSTALL_MASK
patterns from the installation image.

My implementation is done purely as a filter in Python. The ebuild
configuration bits now generate final list of INSTALL_MASK. It is
afterwards used in vartree bits to filter files while checking for
collisions, merging and unmerging appropriately.

The major differences/improvements are:

* The files are actually left in image directory. Not that it makes any
  real difference but it is a bit cleaner and more like real mask this
  way.

* The pre-install "removing" output has been replaced by listing files
  with "###" zing in merging output (which means "not installed due
  to INSTALL_MASK").

* All masked files are now listed in vdb CONTENTS. Therefore, tools
  like app-portage/install-mask can now figure out to which packages
  masks were applied and rebuild them on mask changes appropriately.

* Mask exclusions are supported now. Which means you can do e.g.:
  INSTALL_MASK="/usr/share/locale -/usr/share/locale/foo".

* The code is now whitespace-safe. While patterns specified
  in INSTALL_MASK directly still can not contain spaces, pattern groups
  will be able to use them.

In a few days, I'll try to provide a part II that would implement
the actual mask groups. However, I may need some help adding support
for the configuration files.

I'm not touching PKG_INSTALL_MASK for now since it's harder and outside
of the scope of what I'm trying to achieve.



Michał Górny (3):
  portage.package.ebuild.config: Move FEATURES=no* handling there
  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 |  10 ++++
 3 files changed, 76 insertions(+), 68 deletions(-)

-- 
2.8.3



^ permalink raw reply	[flat|nested] 31+ messages in thread
* [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK refurbishing resubmit
@ 2018-03-15 19:22 Michał Górny
  2018-03-15 19:22 ` [gentoo-portage-dev] [PATCH 3/3] portage.dbapi.vartree: Support exclusions in INSTALL_MASK Michał Górny
  0 siblings, 1 reply; 31+ messages in thread
From: Michał Górny @ 2018-03-15 19:22 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Michał Górny

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



^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2018-03-16  8:08 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-22  6:56 [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK redesign, part I Michał Górny
2016-05-22  6:56 ` [gentoo-portage-dev] [PATCH 1/3] portage.package.ebuild.config: Move FEATURES=no* handling there Michał Górny
2016-06-12  7:19   ` Zac Medico
2016-06-12  7:28     ` Zac Medico
2016-06-12  9:33       ` Michał Górny
2016-05-22  6:56 ` [gentoo-portage-dev] [PATCH 2/3] Move INSTALL_MASK handling into merging Michał Górny
2016-05-22  8:14   ` Michał Górny
2016-05-22  8:21   ` [gentoo-portage-dev] [PATCH v2] " Michał Górny
2016-06-12  8:41     ` Zac Medico
2016-06-12  9:10     ` Zac Medico
2016-06-12  9:28       ` Michał Górny
2016-06-12  9:49         ` Zac Medico
2016-06-12 10:05           ` Michał Górny
2016-06-12 10:28             ` Zac Medico
2016-06-12 20:29     ` Zac Medico
2016-06-12 20:43       ` Zac Medico
2016-06-12 20:52         ` Zac Medico
2016-05-22  6:56 ` [gentoo-portage-dev] [PATCH 3/3] portage.dbapi.vartree: Support exclusions in INSTALL_MASK Michał Górny
2016-06-12  9:20   ` Zac Medico
2016-06-12  9:31     ` Michał Górny
2016-06-12  9:43       ` Zac Medico
2016-06-12 10:03         ` Michał Górny
2016-06-12 10:23           ` Zac Medico
2016-05-31 15:58 ` [gentoo-portage-dev] [PATCH 4/3] portage.package.ebuild.config: Support path groups from install-mask.conf Michał Górny
2016-06-10 21:50   ` Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2018-03-15 19:22 [gentoo-portage-dev] [PATCH 0/3] INSTALL_MASK refurbishing resubmit Michał Górny
2018-03-15 19:22 ` [gentoo-portage-dev] [PATCH 3/3] portage.dbapi.vartree: Support exclusions in INSTALL_MASK Michał Górny
2018-03-15 21:02   ` Alec Warner
2018-03-15 21:17     ` Michał Górny
2018-03-15 21:44     ` Joakim Tjernlund
2018-03-16  7:50       ` Michał Górny
2018-03-16  8:08         ` Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox