Project

General

Profile

Actions

Patch #508

closed

Patch für Parallel Make von Tilman Vogel

Added by Marco Eichelberg over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Configuration
Target version:
Start date:
2013-03-05
Due date:
% Done:

100%

Estimated time:
Module:
Operating System:
Compiler:

Description

der Build von dcmtk bekommt bislang bei Verwendung von parallelem make
(z.B. make -j8) Probleme mit den Abhängigkeiten der einzelnen Module und
Subtargets (libsrc/apps/tests).

Anbei finden Sie einen Patch, mit dem (zumindest hier) der parallele
Build erfolgreich durchläuft und den Sie gerne übernehmen können.

Das top-level make wird damit auch bei "-jX" seriell abgearbeitet. Die
einzelnen Module kompilieren dann aber parallel. Damit das funktioniert
musste ich nur an einigen Stellen für "tests-all" noch die Abhängigkeit
"libsrc-all" hinzufügen.


Michael Onken schreibt: Einzige Frage: Wie sieht's mit dem target ".NOTPARALLEL" aus, wissen Sie
seit wann das verfügbar ist? Nicht dass eine ältere GNU make-Version
darüber stolpert und dann gar nicht baut. Auf die Schnelle habe ich
nichts gefunden dazu.


Ich habe dazu auch nichts gefunden, gehe aber davon aus, dass alte
make's oder nicht-GNU makes das einfach als ein irrelevantes leeres und
unbenutztes Target auffassen. Insofern halte ich das Risiko für eher gering.


Files

Actions #1

Updated by Marco Eichelberg over 12 years ago

  • Tracker changed from Bug to Patch
Actions #2

Updated by Jörg Riesmeier over 12 years ago

  • Category set to Configuration
  • Assignee set to Uli Schlachter
  • Target version set to 3.6.2
Actions #3

Updated by Uli Schlachter over 12 years ago

  • Status changed from New to Feedback
  • Assignee deleted (Uli Schlachter)
  • % Done changed from 0 to 90

I tested this with BSD Make from FreeBSD 9.0 (supports .NOTPARALLEL) and make from SunOS 5.9 (doesn't support parallel builds, silently ignores the unknown target, man page says this is from 1999, wow). So this change seems safe. (Side note: Neither of these two understands "--version", "--help", "-v", "-h" nor "-?")

Patch applied to public git in commit 371d39ac12b64bdbf2f8786bd0a91f724f3681ba and to private git in fde9cbb40c6e876bad140f7fcf55b94f3ad04574.

The changes to the various module Makefiles were already done in 2011 (commit 7a2369e428844302038203d38f9c129f8e40bd06).

Should a mail to Tilman be written? I don't have a mail to reply to, so it would be nice if someone else did this.

Actions #4

Updated by Uli Schlachter over 12 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 90 to 100

Mail was sent

Actions

Also available in: Atom PDF