Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173676 - media-gfx/graphviz-2.12 has a parallel build issue (within ./tclpkg/gv)
Summary: media-gfx/graphviz-2.12 has a parallel build issue (within ./tclpkg/gv)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 141132 167484 181925 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-07 17:03 UTC by Axel Dyks
Modified: 2007-07-24 22:06 UTC (History)
4 users (show)

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


Attachments
patches "./tclpkg/gv/Makefile.am" (graphviz-2.12-parallel-build.patch,2.98 KB, patch)
2007-04-07 21:34 UTC, Axel Dyks
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Dyks 2007-04-07 17:03:58 UTC
Unfortunately bug #167484 has been closed without reason,
although a "parallel build issue" occurs in folder "./tclpkg/gv"
which is caused my invalid "mutiple target rules" in the Makefile.
The following rules (given as an example. The "ruby", "java", ...
rules are broken as well)

-- original ------------------------------------------
gv_perl.cpp $(PERL_hdr): gv.i
    $(SWIG) -c++ -perl -o gv_perl.cpp $(srcdir)/gv.i
gv_python.cpp $(PYTHON_hdr): gv.i
    $(SWIG) -c++ -python -o gv_python.cpp $(srcdir)/gv.i
------------------------------------------------------

should be rewritten as

-- modified ------------------------------------------
$(PERL_hdr): gv_perl.cpp
gv_perl.cpp: gv.i
    $(SWIG) -c++ -perl -o gv_perl.cpp $(srcdir)/gv.i
gv_php.cpp $(PHP_hdr): gv.i
    $(SWIG) -c++ -php -o gv_php.cpp $(srcdir)/gv.i
$(PYTHON_hdr): gv_python.cpp
gv_python.cpp: gv.i
    $(SWIG) -c++ -python -o gv_python.cpp $(srcdir)/gv.i
------------------------------------------------------

This not only prevents swig from being run _twice_, but also
prevents swig to overwrite gv_python.cpp, gc_perl.cpp on
the second run when building gv.py, pv.pm which might occur
(-jN) while gv_python.cpp, gc_perl.cpp are already being
compiled.

Actually this should better be fixed upstream and/or I
should have attached a patch for Makefile.am, but maybe
I'll do this later ...
 
Cheers
Axel
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-07 17:05:44 UTC
*** Bug 167484 has been marked as a duplicate of this bug. ***
Comment 2 Axel Dyks 2007-04-07 21:34:01 UTC
Created attachment 115683 [details, diff]
patches "./tclpkg/gv/Makefile.am"

... so that all but the IO and LUA multi-target rules that call "swig"
are split into separate rules which avoids duplicate envocations of
"swig" and parallel build issues.
// Both IO_hdr and LUA_hdr are empty, so there is no need to
// modify those rules

Axel
Comment 3 Axel Dyks 2007-04-10 01:02:44 UTC
bug #141132 might be a duplicate of this bug
Comment 4 Axel Dyks 2007-04-11 03:54:52 UTC
I've forwarded the bug report as well as the patch to upstream's
bug tracking system:

  http://www.graphviz.org/bugs/b1111.html

Axel
Comment 5 Axel Dyks 2007-04-21 05:38:19 UTC
It appears that neither upstream nor media-gfx herd are taking
further steps on this matter ...

... which is a little hard to understand, because according to
Murphy's Law "emerge --update ... world" (or any other command
that pulls in the graphviz ebuild ) will typically fail a few
minutes after leaving it unattended and going to bed.     

:-( Axel
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-06-13 16:26:36 UTC
*** Bug 181925 has been marked as a duplicate of this bug. ***
Comment 7 Markus Ullmann (RETIRED) gentoo-dev 2007-06-13 16:31:23 UTC
*** Bug 141132 has been marked as a duplicate of this bug. ***
Comment 8 Markus Ullmann (RETIRED) gentoo-dev 2007-07-24 22:06:45 UTC
Patch committed as it has been accepted upstream