summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Torokhov <torokhov-s-a@yandex.ru>2024-05-05 11:41:39 +0300
committerJoonas Niilola <juippis@gentoo.org>2024-05-10 16:40:03 +0300
commitd19f91ac8603970cc7b841c8efe49621fb0297b7 (patch)
tree8f081da038656bd14783f2648a1b97dfed40ce61 /dev-util/codeblocks
parentdev-util/codeblocks: fix ebuild Variables order; rm empty Variables (diff)
downloadgentoo-d19f91ac8603970cc7b841c8efe49621fb0297b7.tar.gz
gentoo-d19f91ac8603970cc7b841c8efe49621fb0297b7.tar.bz2
gentoo-d19f91ac8603970cc7b841c8efe49621fb0297b7.zip
dev-util/codeblocks: fix USE="contrib" race condition
SmartIndent contrib plugin build suffers from race condition on zip-archiving it's data. Changes restrics number of jobs. Thanks-to: Joonas Niilola <juippis@gentoo.org> Closes: https://bugs.gentoo.org/930819 Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/36557 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-util/codeblocks')
-rw-r--r--dev-util/codeblocks/codeblocks-20.03-r7.ebuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/dev-util/codeblocks/codeblocks-20.03-r7.ebuild b/dev-util/codeblocks/codeblocks-20.03-r7.ebuild
index 7ba97f106804..ec7b50a3be12 100644
--- a/dev-util/codeblocks/codeblocks-20.03-r7.ebuild
+++ b/dev-util/codeblocks/codeblocks-20.03-r7.ebuild
@@ -5,7 +5,7 @@ EAPI=8
WX_GTK_VER="3.0-gtk3"
-inherit autotools flag-o-matic wxwidgets xdg
+inherit autotools flag-o-matic multiprocessing wxwidgets xdg
DESCRIPTION="The open source, cross platform, free C, C++ and Fortran IDE"
HOMEPAGE="https://codeblocks.org/"
@@ -85,6 +85,18 @@ src_configure() {
econf "${myeconfargs[@]}"
}
+src_compile() {
+ if use contrib; then
+ if (( $(get_makeopts_jobs) > 8 )); then
+ emake -j8 # Bug 930819
+ else
+ emake
+ fi
+ else
+ emake
+ fi
+}
+
src_install() {
default
find "${ED}" -type f -name '*.la' -delete || die