GNOME Bugzilla – Bug 600207
Makefile target pango-view.1 breaks parallel builds
Last modified: 2009-11-01 23:58:05 UTC
Created attachment 146621 [details] [review] Patch fixing the problem When building pango in parallel (i.e. with the -j flag), there is a good chance the build will fail in the pango-view subdir. This is because the all target tries to build both "$(srcdir)/pango-view.1" and "pango-view$(EXEEXT)" in parallel, but the former has a command "$(MAKE) $(AM_MAKEFLAGS) pango-view$(EXEEXT)" which triggers a second make process building the same target. Encountered on Gentoo Linux: http://bugs.gentoo.org/287825 The fix is quite simple: add pango-view$(EXEEXT) as a proper dependency of $(srcdir)/pango-view.1, instead of starting a separate make for it. I guess you can then even stop depending directly on $(pango_view_SOURCES), as pango-view$(EXEEXT) should do so, providing suitable indirect dependencies.
*** This bug has been marked as a duplicate of bug 587768 ***