On 11/23/2017 08:12 PM, Ian Zimmerman wrote: > Package P bypasses applying user patches (by not calling > default_src_prepare). I have patches I need to apply to P, and in this > case I really don't want to fork the ebuild. So, I'm hell bent on > doing it the hacky way with /etc/portage/bashrc (which, IIRC, I have > been told on this list not to do, but now I don't have much choice). > > To make it work I need to know how the bashrc file is spliced into the > ebuild.
The usual example overrides "pre_src_prepare", which naturally is executed before "src_prepare", https://wiki.gentoo.org/wiki//etc/portage/patches#Enabling_.2Fetc.2Fportage.2Fpatches_for_all_ebuilds With an extra line or two you can modify that code to check ${PN} to avoid affecting other packages.