Discussion:
[gentoo-portage-dev] EBUILD_PHASE for INSTALL_MASK ?
Joakim Tjernlund
2018-04-25 16:55:09 UTC
Permalink
I have a profile.bashrc which generates INSTALL_MASK dynamically and I want
to only run that during "merge"(when INSTALL_MASK is used by portage) but
I cannot find a phase which matches.

Am I missing something ? Is there s
Zac Medico
2018-04-25 18:50:01 UTC
Permalink
Post by Joakim Tjernlund
I have a profile.bashrc which generates INSTALL_MASK dynamically and I want
to only run that during "merge"(when INSTALL_MASK is used by portage) but
I cannot find a phase which matches.
The closest phase is pkg_preinst, so you can use [[ ${EBUILD_PHASE} ==
preinst ]]. Also [[ ${EBUILD_PHASE_FUNC} == pkg_preinst ]] is supported
for EAPI 5 and later.
Post by Joakim Tjernlund
Am I missing something ? Is there some other variable I can use instead?
Jocke
--
Thanks,
Zac
Loading...