Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225457 - =media-sound/musescore-0.9.2: Parallel make problem
Summary: =media-sound/musescore-0.9.2: Parallel make problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-08 22:10 UTC by Sebastian Biallas
Modified: 2011-11-13 19:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
unified diff for media-sound/musescore-0.9.5 (musescore-0.9.5.diff,809 bytes, text/plain)
2009-11-20 00:25 UTC, keenblade
Details
musescore-0.9.5-build.patch (musescore-0.9.5-build.patch,371 bytes, patch)
2009-11-20 00:29 UTC, keenblade
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Biallas 2008-06-08 22:10:29 UTC
The media-sound/musescore build fails if done in parallel, i.e. "make -j4" fails with random dependency issues but "make -j1" works. This is on an AMD64 X2 processor.

Maybe this should be reported upstream, but for now the ebuild should filter out parallel makes.

Thanks,
Sebastian


Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2008-06-14 12:51:56 UTC
Keeps working here with -j3 (dualcore machine).. 
Comment 2 Arve Barsnes 2008-08-18 17:37:13 UTC
Fails on "-j4" but works on "-j3" here too. Hard to tell if that is always the case though. It probably should filter parallel builds as Sebastian suggested.

This is on an Intel Quad Core.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-05-10 08:03:32 UTC
+  10 May 2009; Samuli Suominen <ssuominen@gentoo.org>
+  musescore-0.9.2.ebuild:
+  Remove built_with_use and force -j1 wrt #225457.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-05-10 08:04:01 UTC
(In reply to comment #2)
> Fails on "-j4" but works on "-j3" here too. Hard to tell if that is always the
> case though. It probably should filter parallel builds as Sebastian suggested.
> 
> This is on an Intel Quad Core.
> 

Failed here too (I own a quadcore now)
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2009-05-10 08:32:55 UTC
Forcing -j1 is not a fix, it's a temporary workaround.  Please leave such bugs open until you or upstream (you did report it right?) fixes the Makefile.

http://blog.flameeyes.eu/2008/10/29/for-a-parallel-world-theory-lesson-n-2-handling-broken-ebuilds
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-05-10 14:07:45 UTC
No, haven't reported it upstream yet.

Guys, please try =media-sound/musescore-0.9.4 so that you remove or comment the MAKEOPTS line from it, and report back.
Comment 7 Arttu Valo 2009-08-24 11:08:50 UTC
(In reply to comment #6)
> Guys, please try =media-sound/musescore-0.9.4 so that you remove or comment the
> MAKEOPTS line from it, and report back.

musescore-0.94 suffers from the same (tested on an old single-core amd64 with -j2 and -j1, only -j1 passed).

In the mean time, musescore-0.95 is out, and while trying to update the 0.94 ebuild for it, I noticed that 0.95 started to fail as well with -jX (X > 1) when I was making a patch for it to apply a similar build-fix as there is for 0.94.
Comment 8 keenblade 2009-11-12 23:54:23 UTC
(In reply to comment #7)
> 
> In the mean time, musescore-0.95 is out, and while trying to update the 0.94
> ebuild for it, I noticed that 0.95 started to fail as well with -jX (X > 1)
> when I was making a patch for it to apply a similar build-fix as there is for
> 0.94.
> 

Could you post your musescore-0.95 ebuild? So we can at least install it with -j1. I edited the ebuild for ver 0.95. It compiles but file collisions occured with qtscriptgenerator. I guess your patch is for disabling qtscriptgenerator within ebuild. Could you post it, too?
Comment 9 Jyrki Launonen 2009-11-16 19:23:58 UTC
(In reply to comment #8)
> Could you post your musescore-0.95 ebuild? So we can at least install it with
> -j1. I edited the ebuild for ver 0.95. It compiles but file collisions occured
> with qtscriptgenerator. I guess your patch is for disabling qtscriptgenerator
> within ebuild. Could you post it, too?

I just removed the musescore-0.9.4-noscript.patch (since >=qt-4.5 and >=cmake-2.6 are stable and i don't see why awlplugin should not be built)  from ebuild (copied musescore-0.9.4.ebuild -> musescore-0.9.5.ebuild) and added my own patch which removes qtscriptgenerator from build process.
Builds musescore with -j1 successfully. Quick test also shows the program working. (Btw, SRC_URI has changed; previously mscore-${MY_P}.tar.bz2 and now it is MuseScore-${PV}.tar.bz2  )  Hope this helps.
Pasting (un)conveniently the patch used for getting rid of the file collisions:

--- mscore/CMakeLists.txt.old   2009-11-16 17:16:57.000000000 +0200
+++ mscore/CMakeLists.txt       2009-11-16 17:17:26.000000000 +0200
@@ -196,7 +196,7 @@
 endif (NOT MINGW AND NOT APPLE)

 set (subdirs awl osdabzip rtf2html mscore share manual demos
-     scriptgen singleapp fluid)
+     singleapp fluid)

 if (MINGW OR APPLE)
       set (subdirs ${subdirs} portmidi)

Comment 10 keenblade 2009-11-20 00:25:33 UTC
Created attachment 210668 [details]
unified diff for media-sound/musescore-0.9.5

This is the diff of media-sound/musescore-0.9.5 which is made against the one in portage media-sound/musescore-0.9.4. Also needs the  musescore-0.9.5-build.patch. I hope to see this 0.9.5 ebuild in portage.
Comment 11 keenblade 2009-11-20 00:29:49 UTC
Created attachment 210669 [details, diff]
musescore-0.9.5-build.patch

This is the patch used for getting rid of the file collisions. Thanks to Jyrki for providing the patch on comment #9.
Comment 12 Tim Harder gentoo-dev 2011-11-13 19:08:09 UTC
This isn't a problem in 1.1 now in CVS.