1 |
commit: 85d2d98e0ca58f724b51ad37f01cd703f37bbeb6 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 30 16:03:46 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 30 16:03:46 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=85d2d98e |
7 |
|
8 |
gkbuild.sh: _initialize(): Source gkbuild after $S was defined |
9 |
|
10 |
This will allow gkbuilds to overwrite $S like known from ebuilds. |
11 |
|
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
worker_modules/gkbuild.sh | 6 +++--- |
15 |
1 file changed, 3 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/worker_modules/gkbuild.sh b/worker_modules/gkbuild.sh |
18 |
index 92c7379..74a2505 100644 |
19 |
--- a/worker_modules/gkbuild.sh |
20 |
+++ b/worker_modules/gkbuild.sh |
21 |
@@ -247,9 +247,6 @@ _initialize() { |
22 |
die "Unable to build ${P}: '${GK_SHARE}/gkbuilds/${PN}.gkbuild' does NOT exist!" |
23 |
fi |
24 |
|
25 |
- source "${GKBUILD}" \ |
26 |
- || die "Failed to source '${GKBUILD}'!" |
27 |
- |
28 |
declare -gr WORKDIR=$(mktemp -d -p "${TEMP}" ${PN}.XXXXXXXX 2>/dev/null) |
29 |
[ -z "${WORKDIR}" ] && die "mktemp failed!" |
30 |
|
31 |
@@ -282,6 +279,9 @@ _initialize() { |
32 |
|
33 |
S="${WORKDIR}/${GKPKG_SRCDIR}" |
34 |
|
35 |
+ source "${GKBUILD}" \ |
36 |
+ || die "Failed to source '${GKBUILD}'!" |
37 |
+ |
38 |
# Some tools like eltpatch (libtoolize) depend on these variables |
39 |
export S D |