Gentoo Archives: gentoo-portage-dev

From: Nekun <nekokun@××××××××.cc>
To: gentoo-portage-dev@l.g.o
Cc: Nekun <nekokun@××××××××.cc>
Subject: [gentoo-portage-dev] [PATCH v2 2/2] ebuild.5: Fix eapply target
Date: Mon, 26 Apr 2021 15:50:31
Message-Id: 20210426154927.21521-2-nekokun@firemail.cc
In Reply to: [gentoo-portage-dev] [PATCH v2 1/2] portage.5: Describe userpatch applying rules in more clean wording by Nekun
1 More generally, it's a current shell directory (which can be changed in
2 a ebuild) and it can be overrided with -d, maybe we need more
3 clarification here. However, in the default src_prepare it's ${S}.
4
5 Bug: https://bugs.gentoo.org/698244
6 Signed-off-by: Nekun <nekokun@××××××××.cc>
7 ---
8 man/ebuild.5 | 7 ++++---
9 1 file changed, 4 insertions(+), 3 deletions(-)
10
11 diff --git a/man/ebuild.5 b/man/ebuild.5
12 index a113c1502..2afea05bb 100644
13 --- a/man/ebuild.5
14 +++ b/man/ebuild.5
15 @@ -1218,13 +1218,14 @@ directory. The function will append \fIsource\fR to the \fBDISTDIR\fR variable.
16 .SS "Prepare:"
17 .TP
18 .B eapply\fR \fI[patch options]\fR \fI<files|directories>
19 -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
20 -\fI.patch\fR or \fI.diff\fR suffix are applied.
21 +Applies patches to the build directory with specified options.
22 +Default patch level is \fI\-p1\fR. If a directory specified, all
23 +patches from it with \fI.patch\fR or \fI.diff\fR suffix are applied.
24 This function is available beginning with \fBEAPI 6\fR, replacing old
25 \fBepatch.eclass\fR(5) functions.
26 .TP
27 .B eapply_user
28 -Applies user\-provided patches to the \fB${WORKDIR}\fR from Portage config
29 +Applies user\-provided patches to the build directory from Portage config
30 directory tree. For directory syntax and applying rules, see
31 \fI/etc/portage/patches/\fR section in \fBportage\fR(5). This function is
32 available beginning with \fBEAPI 6\fR, replacing old \fBepatch.eclass\fR(5)
33 --
34 2.26.3