From: "Michał Górny" <mgorny@gentoo.org>
To: Michael Orlitzky <mjo@gentoo.org>
Cc: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [RFC] New GLEP: file installation masks
Date: Fri, 20 May 2016 17:21:59 +0200 [thread overview]
Message-ID: <20160520172159.6bacf04a@pomiocik> (raw)
In-Reply-To: <573F2942.6050405@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 2578 bytes --]
On Fri, 20 May 2016 11:12:02 -0400
Michael Orlitzky <mjo@gentoo.org> wrote:
> On 05/20/2016 10:01 AM, Michał Górny wrote:
> >
> > Please review the specification provided. The basic goal is to provide
> > an ability to use INSTALL_MASK alike USE flags -- with path groups that
> > are well-defined and described in the repository.
> >
> > [1]:https://wiki.gentoo.org/wiki/User:MGorny/GLEP:INSTALL_MASK
> >
>
> I like the idea. INSTALL_MASK is currently pretty flaky, and that's what
> we tell people to use to block e.g. systemd units. Here's what I gather:
>
> 1. The INSTALL_MASK-like feature should support fnmatch() wildcards.
>
> 2. Binary packages are not be affected (there's another feature for
> that)
>
> 3. We can define groups of paths to make certain things (bash
> completions, locales, etc.) easy to mask.
>
> All of those are good, but are the details of what actually goes in
> INSTALL_MASK left up to the implementation? How would I mask all bash
> completions (the bash-completion group) using INSTALL_MASK?
Yes. Configuration and implementation is left to implementation.
The spec only says that it should be possible to somehow enable
inclusive/exclusive filtering of specific files, and the end result
should be as if they weren't installed in the first place.
Getting into implementation details, I'd probably go for:
INSTALL_MASK="@bash-completion"
but the exact syntax is left for various package managers. Paludis
and pkgcore would probably prefer a proper configuration file.
> Can you make the spec say that we should be able to mask files whose
> names contain spaces? Or is that implicit in the fnmatch() clause?
Well, this should be implicit in fnmatch() for repo-defined paths.
However, we leave this undefined for INSTALL_MASK itself, so custom
paths will probably have to be declared in install-mask.conf-alike
in /etc/portage.
> For the portage implementation, it may be time to ditch the variable and
> move to something like /etc/portage/install.mask:
>
> $ cat /etc/portage/install.mask
> [bash-completion]
> /etc/logrotate.d
> read me.txt
>
> With one pattern per line, the spaces thing is easy to deal with. But
> this makes me wonder, how is portage supposed to know I want to block
> the bash-completion group and not all files named "[bash-completion]"?
I'd leave this for Portage people to decide. Though I'd prefer
if /etc/portage had file with the same or similar syntax to repo file.
--
Best regards,
Michał Górny
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]
next prev parent reply other threads:[~2016-05-20 15:22 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-20 14:01 [gentoo-dev] [RFC] New GLEP: file installation masks Michał Górny
2016-05-20 15:12 ` Michael Orlitzky
2016-05-20 15:21 ` Michał Górny [this message]
2016-05-20 15:30 ` Michael Orlitzky
2016-05-20 15:44 ` Michał Górny
2016-05-20 16:15 ` Michael Orlitzky
2016-05-20 16:48 ` Michał Górny
2016-05-20 17:34 ` Michael Orlitzky
2016-05-29 12:54 ` Michał Górny
2016-05-20 15:34 ` Daniel Campbell
2016-05-20 15:40 ` Michael Orlitzky
2016-05-20 15:49 ` Michał Górny
2016-05-20 20:00 ` Ian Stakenvicius
2016-05-20 21:11 ` Michał Górny
2016-06-08 5:26 ` [gentoo-dev] " Ulrich Mueller
2016-06-08 6:37 ` Michał Górny
2016-06-08 7:17 ` Ulrich Mueller
2016-06-08 8:01 ` Michał Górny
2016-06-08 8:33 ` Ulrich Mueller
2016-06-08 13:14 ` Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160520172159.6bacf04a@pomiocik \
--to=mgorny@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=mjo@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox