More generally, it's a current shell directory (which can be changed in a ebuild) and it can be overrided with -d, maybe we need more clarification here. However, in the default src_prepare it's ${S}.
Bug: https://bugs.gentoo.org/698244 Signed-off-by: Nekun <neko...@firemail.cc> --- man/ebuild.5 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/man/ebuild.5 b/man/ebuild.5 index a113c1502..2afea05bb 100644 --- a/man/ebuild.5 +++ b/man/ebuild.5 @@ -1218,13 +1218,14 @@ directory. The function will append \fIsource\fR to the \fBDISTDIR\fR variable. .SS "Prepare:" .TP .B eapply\fR \fI[patch options]\fR \fI<files|directories> -Applies patches to the \fB${WORKDIR}\fR with specified options. Default patch level is \fI\-p1\fR. If a directory specified, all patches from it with -\fI.patch\fR or \fI.diff\fR suffix are applied. +Applies patches to the build directory with specified options. +Default patch level is \fI\-p1\fR. If a directory specified, all +patches from it with \fI.patch\fR or \fI.diff\fR suffix are applied. This function is available beginning with \fBEAPI 6\fR, replacing old \fBepatch.eclass\fR(5) functions. .TP .B eapply_user -Applies user\-provided patches to the \fB${WORKDIR}\fR from Portage config +Applies user\-provided patches to the build directory from Portage config directory tree. For directory syntax and applying rules, see \fI/etc/portage/patches/\fR section in \fBportage\fR(5). This function is available beginning with \fBEAPI 6\fR, replacing old \fBepatch.eclass\fR(5) -- 2.26.3