commit:     1119f45815ecb1fceff20eea1cb7e5cb8d7ea767
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 26 23:29:09 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 26 23:29:40 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1119f458

sys-fs/lvm2: -j1 for install

There's a race with installing dmsetup where it gets re-created in the image
which breaks things. It's awkward to fix because of the upstream Makefile
layout. Just serialise the install part which shouldn't be a big deal anyway.

Closes: https://bugs.gentoo.org/918125
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/lvm2/lvm2-2.03.22-r2.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys-fs/lvm2/lvm2-2.03.22-r2.ebuild 
b/sys-fs/lvm2/lvm2-2.03.22-r2.ebuild
index ba546b95e777..e3d8382e2044 100644
--- a/sys-fs/lvm2/lvm2-2.03.22-r2.ebuild
+++ b/sys-fs/lvm2/lvm2-2.03.22-r2.ebuild
@@ -204,7 +204,9 @@ src_install() {
        else
                targets+=( install_device-mapper )
        fi
-       emake V=1 DESTDIR="${D}" "${targets[@]}"
+
+       # -j1 for bug #918125
+       emake -j1 V=1 DESTDIR="${D}" "${targets[@]}"
 
        newinitd "${FILESDIR}"/device-mapper.rc-r3 device-mapper
        newconfd "${FILESDIR}"/device-mapper.conf-r4 device-mapper

Reply via email to