sys-fs/mhddfs: fix parallel builds

Signed-off-by: Sergey Popov <pinkbyte@gentoo.org>
Reported-by: Toralf Förster <toralf@gentoo.org>
Bug: https://bugs.gentoo.org/880051
Closes: https://bugs.gentoo.org/911984
This commit is contained in:
Sergey Popov
2023-08-10 11:52:36 +03:00
parent ee91122dc1
commit 7660b28a2f
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
Sometimes obj directory was not created during
parallel builds
Related bugreports:
https://bugs.gentoo.org/880051
https://bugs.gentoo.org/911984
--- a/Makefile 2023-08-10 11:43:39.826589819 +0300
+++ b/Makefile 2023-08-10 11:43:50.121722774 +0300
@@ -90,6 +90,7 @@
touch $@
obj/%.o: src/%.c
+ mkdir -p obj
$(CC) $(CFLAGS) -c $< -o $@
clean:

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -29,6 +29,7 @@ PATCHES=(
"${FILESDIR}/${PN}-respect-compiler-vars.patch"
"${FILESDIR}/${P}-segfault-fix.patch"
"${FILESDIR}/${P}-xattr.patch"
"${FILESDIR}/${P}-parallel-build.patch"
)
src_compile() {