Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Bertrand SIMONNET <bsimonnet@××××××××.org>
Subject: Re: [gentoo-portage-dev] [PATCH 3/3] package.bashrc: per profile, per-package bashrc mechanism
Date: Tue, 30 Sep 2014 15:19:08
Message-Id: 542AC9E7.7040702@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH 3/3] package.bashrc: per profile, per-package bashrc mechanism by Bertrand SIMONNET
1 On 09/29/2014 05:12 PM, Bertrand SIMONNET wrote:
2 > +.I Example:
3 > +.nf
4 > +# By setting INSTALL_MASK in bashrc/nostandardconf.conf, we can avoid installing
5 > +# the standard configuration and enable another package to install it.
6 > +net-misc/dhcp nostardardconf.conf
7
8 In order to ensure that INSTALL_MASK set via bashrc will always works as
9 intended, you'll have to modify the INSTALL_MASK logic inside the
10 dblink.treewalk method:
11
12 if self.settings.get("INSTALL_MASK") or \
13 "nodoc" in self.settings.features or \
14 "noinfo" in self.settings.features or \
15 "noman" in self.settings.features:
16 # Apply INSTALL_MASK before collision-protect, since it may
17 # be useful to avoid collisions in some scenarios.
18 phase = MiscFunctionsProcess(background=False,
19 commands=["preinst_mask"], phase="preinst",
20 scheduler=self._scheduler, settings=self.settings)
21 phase.start()
22 phase.wait()
23
24 We could simply run the preinst_mask function unconditionally here,
25 since we can't tell whether or not the bashrc contains an INSTALL_MASK
26 setting.
27 --
28 Thanks,
29 Zac

Replies

Subject Author
[gentoo-portage-dev] [PATCH] package.bashrc: per profile, per-package bashrc mechanism Bertrand SIMONNET <bsimonnet@××××××××.org>