<div dir="ltr"><div dir="ltr"><div dir="ltr">NCL support,<div><br></div><div>Here is a solution for safely building the RGB database in parallel build mode.  This should fix the MacPorts build problem that I reported a few weeks ago.  This is more efficient than forcing serial build for the entire NCL package.  This may also benefit NCL within other modern build systems.  Can you please work this into the next NCL release?</div><div><br></div><div>The current NCL version uses a make file equivalent to the following.  This runs two instances of "rgb" at the same time under parallel build.  This corrupts the two output files, as I explained before:</div><div><br></div><div><div><font face="monospace, monospace">    rgb.pag rgb.dir: rgb rgb.txt<br></font></div><div><font face="monospace, monospace">            ./rgb rgb < rgb.txt<br></font></div></div><div><br></div><div>The following recipe is recommended as a parallel-safe alternative.  This effectively prevents "rgb" from running more than once under parallel build.  The only change is to add the third line:</div><div><div><div><font face="monospace, monospace"><br class="gmail-m_-7858563815663525459gmail-Apple-interchange-newline">    rgb.pag rgb.dir: rgb rgb.txt<br></font></div><div><font face="monospace, monospace">            ./rgb rgb < rgb.txt</font></div></div></div><div><div><div><div><font face="monospace, monospace">    rgb.dir: rgb.pag<br></font></div><div><font face="monospace, monospace"> </font></div></div></div><div><font face="arial, helvetica, sans-serif">This method is explained in the GNU Automake FAQ for multiple output files.  Please see the </font><span style="font-family:arial,helvetica,sans-serif">third code block and description here:</span></div><div><a href="https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html#Multiple-Outputs">https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html#Multiple-Outputs</a><br></div><div><br></div><div>I have not had a chance to test this solution because of the federal shutdown.  Please try this and include in the next NCL release, if it works.  Thank you.</div><div><br></div><div>--Dave</div></div></div></div></div>