Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>
Subject: Re: [gentoo-portage-dev] portageq not reading profile.bashrc
Date: Mon, 04 Nov 2019 19:04:23
Message-Id: c5f17110-78e9-061f-bfad-cabe1e3f8d6f@gentoo.org
In Reply to: [gentoo-portage-dev] portageq not reading profile.bashrc by Joakim Tjernlund
1 On 11/4/19 10:35 AM, Joakim Tjernlund wrote:
2 > I have a profile.bashrc in my profile where I try to set INSTALL_MASK:
3 >
4 > cat profile.bashrc
5 > INSTALL_MASK="${INSTALL_MASK} $(. $(dirname "$*")/etc_file_list)"
6 > export INSTALL_MASK
7 > echo "profile INSTALL_MASK: ${INSTALL_MASK}"
8 >
9 > PKG_INSTALL_MASK="${PKG_INSTALL_MASK} ${INSTALL_MASK}"
10 > export PKG_INSTALL_MASK
11 > echo "profile PKG_INSTALL_MASK: ${PKG_INSTALL_MASK}"
12 >
13 > Using portageq envvar INSTALL_MASK I expect to see my settings but
14 > INSTALL_MASK is empty.
15 >
16 > Am I missing something ?
17 >
18 > Jocke
19 >
20
21 The bashrc files are only executed during ebuild phases. The portageq
22 envvar command only returns settings from make.defaults and make.conf
23 files which are parsed by python and never executed by bash.
24 --
25 Thanks,
26 Zac

Attachments

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