<br><br><div class="gmail_quote">2012/1/3 Gordan Bobic <span dir="ltr">&lt;<a href="mailto:gordan@bobich.net">gordan@bobich.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Tue, 3 Jan 2012 15:52:45 +0100, Elias Abacioglu &lt;<a href="mailto:elias.rabi@gmail.com" target="_blank">elias.rabi@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey,<br>
<br>
I have an issue. Trying to build a package in mock, package B. Package<br>
B requires a installed package, package A.<br>
Package A installs on a custom PATH and requires the PATH to be set in<br>
order for package B to compile.<br>
<br>
I tried adding config_opts[&#39;environment&#39;][&#39;<u></u>PATH&#39;] =<br>
&#39;/bin:/blabla:....&#39; to /etc/mock/site-defaults.cfg.<br>
The path works when i use mock --shell.<br>
<br>
But when I do a mock --no-clean package.B.src.rpm, the path is<br>
missing, and the build fails.<br>
<br>
Is there a way to set the PATH so that it is used during the<br>
&quot;--rebuild&quot; process?<br>
I&#39;m running mock 1.1.18.<br>
</blockquote>
<br></div></div>
Google a recent solution on how to set LD_PRELOAD environment in mock chroot. You could probably use a similar trick to set the PATH.<span class="HOEnZb"><font color="#888888"><br>
</font></span><br></blockquote></div>It worked. And it&#39;s probably worth repeating<br><br>Added this to site-defaults.cfg:<br>config_opts[&#39;files&#39;][&#39;etc/profile.d/mystuff.sh&#39;] = &quot;&quot;&quot;<br>export PATH=$PATH:/custom/path <br>
&quot;&quot;&quot;<br><br>Thanks Gordan<br>