<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" face="Courier">Hi Chad,</font><div><font class="Apple-style-span" face="Courier"><br></font><div><div><font class="Apple-style-span" face="Courier">Am 01.04.2009 um 19:15 schrieb Chad Harp:</font></div><blockquote type="cite"><div><font class="Apple-style-span" face="Courier">I think I need a better understanding of what I should be doing.</font></div></blockquote><blockquote type="cite"><div><font class="Apple-style-span" face="Courier">Several of my packages have path problems due to quoting. &nbsp;Should</font></div></blockquote><blockquote type="cite"><div><font class="Apple-style-span" face="Courier">I be looking for the correct combinations of variable to fix it,</font></div></blockquote><blockquote type="cite"><div><font class="Apple-style-span" face="Courier">or will GAR be fixed to deal with it?<br></font></div></blockquote><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">Ok, now here is the rationale why things are as they are now:</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">- /opt/csw/lib/$ISALIST is needed if and only if libraries are</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;linked that may contain optimizations. Otherwise it is best to</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;avoid $ISALIST completely. This can be done by setting</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp; &nbsp;NOISALIST = 1</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">- I put -R for runtime linker path in LDFLAGS because in the last</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;discussion LD_OPTIONS was considered bad, as it is always applied</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;first in linking regardless of other flags. Unfortunately these</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;flags are passwd through multiple commands, each with evaluation</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;of the argument. Now $ISALIST looks like a variable and must be</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;shielded from evaluation by quoting. The amount of quoting depends</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;on the number of evaluation, e. g. if libtool is used, a custom</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;Makefile, etc.</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;The number of quotings can be adjusted by the simple parameter</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp; &nbsp;RUNPATHQUOTE = 1 &nbsp; &nbsp;for single evaluation</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp; &nbsp;RUNPATHQUOTE = 2 &nbsp; &nbsp;for double evaluation</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;Unfortunately this obviously proved to be not sufficient as the</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;bug reports from James show.</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;(BTW, if you are interested: Making the literal '$' as prefix is</font></div><div><font class="Apple-style-span" face="Courier"><div>&nbsp;&nbsp; &nbsp;_Q = \\\$$\$$ &nbsp; &nbsp; &nbsp; for RUNPATHQUOTE = 1</div><div>&nbsp;&nbsp;and</div><div>&nbsp;&nbsp; &nbsp;_Q = \\\\\\\$$\$$ &nbsp; for RUNPATHQUOTE = 2</div><div>&nbsp;&nbsp;in gar.conf.mk).</div><div><br></div><div>- Moving -R to LD_OPTIONS would make things considerable easier,</div><div>&nbsp;&nbsp;because the number of evaluations is fixed as it is not processed</div><div>&nbsp;&nbsp;by multiple commands. It would just be needed to decide if</div><div>&nbsp;&nbsp;$ISALIST should be in or not. NOISALIST is already there for this.</div><div>&nbsp;&nbsp;This would conflict with packages already using LD_OPTIONS:</div><div><div>&nbsp;&nbsp; &nbsp;amarok</div><div>&nbsp;&nbsp; &nbsp;cups</div><div>&nbsp;&nbsp; &nbsp;daimonin</div><div>&nbsp;&nbsp; &nbsp;exim</div><div>&nbsp;&nbsp; &nbsp;gftp</div><div>&nbsp;&nbsp; &nbsp;gphoto2</div><div>&nbsp;&nbsp; &nbsp;hatari</div><div>&nbsp;&nbsp; &nbsp;hypermail</div><div>&nbsp;&nbsp; &nbsp;kdesvn</div><div>&nbsp;&nbsp; &nbsp;kile</div><div>&nbsp;&nbsp; &nbsp;libgphoto2</div><div>&nbsp;&nbsp; &nbsp;lyx</div><div>&nbsp;&nbsp; &nbsp;mysql-python</div><div>&nbsp;&nbsp; &nbsp;netsnmp</div><div>&nbsp;&nbsp; &nbsp;slrn</div><div>&nbsp;&nbsp; &nbsp;tsclient</div><div>&nbsp;&nbsp; &nbsp;w3m</div><div>&nbsp;&nbsp;To be consistent, EXTRA_LD_OPTIONS should be introduced and the</div><div>&nbsp;&nbsp;Makefiles adjusted accordingly when the GAR modifications have</div><div>&nbsp;&nbsp;been made.</div><div><br></div></div><div><br></div><div>So the GAR integration is possible, but needs some experimentation</div><div>in quoting and best use.</div><div><br></div><div><br></div><div>Best regards</div><div><br></div><div>&nbsp;&nbsp;-- Dago</div></font></div></div></body></html>