[Mono-list] Fwd: [PATCH] mono-4.xx.inc: disable parallel make

Chris Morgan chmorgan at gmail.com
Wed Jul 8 00:47:41 UTC 2015


I had posted last week about issues during the install phase of a
build due to the same file being installed multiple times.

>From another user with the same issue it looks like the issue may be
related to parallel make.

Is this a known limitation when building mono?


---------- Forwarded message ----------
From: Richard Tollerton <rich.tollerton at ni.com>
Date: Tue, Jul 7, 2015 at 4:17 PM
Subject: [PATCH] mono-4.xx.inc: disable parallel make
To: chmorgan at gmail.com
Cc: Richard Tollerton <rich.tollerton at ni.com>,
ajlennon at dynamicdevices.co.uk, yocto at yoctoproject.org

A race was observed during `make install` of mono-native under

/usr/bin/install: cannot change permissions of
.NETFramework/v4.5/RedistList/FrameworkList.xml: No such file or

This is definitely a race, because FrameworkList.xml was present once
the failed build completed.

The present mono build doesn't appear to build much of anything in
parallel in the first place, and I would guess that this issue applies
equally to the mono and mono-native builds. So the correct place for the
workaround ought to be in the shared .inc file.

Signed-off-by: Richard Tollerton <rich.tollerton at ni.com>
 recipes-mono/mono/mono-4.xx.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-mono/mono/mono-4.xx.inc b/recipes-mono/mono/mono-4.xx.inc
index 2d7f65d..973593a 100644
--- a/recipes-mono/mono/mono-4.xx.inc
+++ b/recipes-mono/mono/mono-4.xx.inc
@@ -68,3 +68,6 @@ FILES_${PN}-dbg                       += "
${datadir}/mono-2.0/mono/cil/cil-opcodes.xml ${libdir}/m
 FILES_${PN}-staticdev                  += " ${libdir}/*.a"

 RDEPENDS_${PN} =+ "bash"
+# Workaround for observed race in `make install`

More information about the Mono-list mailing list