diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-08-30 18:02:07 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-08-30 18:02:49 +0200 |
commit | 53988165c9b7b1452e86f216b4463fabbf8e95c9 (patch) | |
tree | ed731980a0844506ebd01d6e32c708aecaa0a714 /worker_modules | |
parent | genkernel: bump to v4.0.0_beta15 (diff) | |
download | genkernel-53988165c9b7b1452e86f216b4463fabbf8e95c9.tar.gz genkernel-53988165c9b7b1452e86f216b4463fabbf8e95c9.tar.bz2 genkernel-53988165c9b7b1452e86f216b4463fabbf8e95c9.zip |
gkbuild.sh: Make sure that each phase starts in $S
...not just the default functions.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'worker_modules')
-rw-r--r-- | worker_modules/gkbuild.sh | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/worker_modules/gkbuild.sh b/worker_modules/gkbuild.sh index 136fe17..92c7379 100644 --- a/worker_modules/gkbuild.sh +++ b/worker_modules/gkbuild.sh @@ -81,19 +81,22 @@ _gkbuild_main() { case "${current_phase}" in src_compile) print_info 2 "$(get_indent 2)${P}: >> Compiling source ..." + cd "${S}" || die "Failed to chdir to '${S}'!" ;; src_configure) print_info 2 "$(get_indent 2)${P}: >> Configuring source ..." - declare -ga CONFIGUREOPTS + cd "${S}" || die "Failed to chdir to '${S}'!" ;; src_install) print_info 2 "$(get_indent 2)${P}: >> Install to DESTDIR ..." + cd "${S}" || die "Failed to chdir to '${S}'!" ;; src_prepare) print_info 2 "$(get_indent 2)${P}: >> Preparing source ..." + cd "${S}" || die "Failed to chdir to '${S}'!" ;; src_unpack) @@ -331,8 +334,6 @@ _initialize() { } _src_compile() { - cd "${S}" || die "Failed to chdir to '${S}'!" - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ] then gkmake V=1 @@ -340,8 +341,6 @@ _src_compile() { } _src_configure() { - cd "${S}" || die "Failed to chdir to '${S}'!" - if [[ -x ${GKCONF_SOURCE:-.}/configure ]] then gkconf @@ -349,8 +348,6 @@ _src_configure() { } _src_install() { - cd "${S}" || die "Failed to chdir to '${S}'!" - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ] then gkmake V=1 DESTDIR="${D}" install @@ -358,8 +355,6 @@ _src_install() { } _src_prepare() { - cd "${S}" || die "Failed to chdir to '${S}'!" - # let's try to be smart and run autoreconf only when needed local want_autoreconf=${WANT_AUTORECONF} |