sys-boot/grub: Stop using awful multijob_* logic
authorMichał Górny <mgorny@gentoo.org>
Sun, 31 Dec 2017 10:24:21 +0000 (11:24 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 31 Dec 2017 21:48:45 +0000 (22:48 +0100)
The multijob logic adds a lot of complex, unmaintained and fragile bash
code with little gain. Moreover, makes build logs unreadable
by interspersing output from multiple configure runs.

Bug: https://bugs.gentoo.org/613322

sys-boot/grub/grub-0.97-r16.ebuild
sys-boot/grub/grub-0.97-r18.ebuild

index 06d9aa23b124fac328ccdea6d7bf322f1fd836f7..22793c03ab03886f78b0c63f6c053c253177c510 100644 (file)
@@ -17,7 +17,7 @@
 
 EAPI="5"
 
-inherit eutils mount-boot toolchain-funcs linux-info flag-o-matic autotools pax-utils multiprocessing
+inherit eutils mount-boot toolchain-funcs linux-info flag-o-matic autotools pax-utils
 
 PATCHVER="1.14" # Should match the revision ideally
 DESCRIPTION="GNU GRUB Legacy boot loader"
@@ -121,12 +121,8 @@ src_configure() {
                fi
        fi
 
-       multijob_init
-
        # build the net-bootable grub first, but only if "netboot" is set
        if use netboot ; then
-               (
-               multijob_child_init
                mkdir -p "${WORKDIR}"/netboot
                pushd "${WORKDIR}"/netboot >/dev/null
                ECONF_SOURCE=${S} \
@@ -141,8 +137,6 @@ src_configure() {
                        --enable-{ne,ns8390,wd,otulip,rtl8139,sis900,sk-g16,smc9000,tiara} \
                        --enable-{tulip,via-rhine,w89c840}
                popd >/dev/null
-               ) &
-               multijob_post_fork
        fi
 
        # Now build the regular grub
@@ -156,8 +150,6 @@ src_configure() {
 
        # sanity check due to common failure
        use ncurses && ! grep -qs "HAVE_LIBCURSES.*1" config.h && die "USE=ncurses but curses not found"
-
-       multijob_finish
 }
 
 src_compile() {
index eb8206061434ee428905ea4b51b60b65d72dc5c0..9d5aeede68984c9a05a0c7047dc81c617b1af797 100644 (file)
@@ -17,7 +17,7 @@
 
 EAPI="6"
 
-inherit eutils mount-boot toolchain-funcs linux-info flag-o-matic autotools pax-utils multiprocessing
+inherit eutils mount-boot toolchain-funcs linux-info flag-o-matic autotools pax-utils
 
 PATCHVER="1.15" # Should match the revision ideally
 DESCRIPTION="GNU GRUB Legacy boot loader"
@@ -121,12 +121,8 @@ src_configure() {
                fi
        fi
 
-       multijob_init
-
        # build the net-bootable grub first, but only if "netboot" is set
        if use netboot ; then
-               (
-               multijob_child_init
                mkdir -p "${WORKDIR}"/netboot
                pushd "${WORKDIR}"/netboot >/dev/null
                ECONF_SOURCE=${S} \
@@ -141,8 +137,6 @@ src_configure() {
                        --enable-{ne,ns8390,wd,otulip,rtl8139,sis900,sk-g16,smc9000,tiara} \
                        --enable-{tulip,via-rhine,w89c840}
                popd >/dev/null
-               ) &
-               multijob_post_fork
        fi
 
        # Now build the regular grub
@@ -156,8 +150,6 @@ src_configure() {
 
        # sanity check due to common failure
        use ncurses && ! grep -qs "HAVE_LIBCURSES.*1" config.h && die "USE=ncurses but curses not found"
-
-       multijob_finish
 }
 
 src_compile() {