<br><br><div class="gmail_quote">2012/1/3 Gordan Bobic <span dir="ltr"><<a href="mailto:gordan@bobich.net">gordan@bobich.net</a>></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 <<a href="mailto:elias.rabi@gmail.com" target="_blank">elias.rabi@gmail.com</a>> 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['environment']['<u></u>PATH'] =<br>
'/bin:/blabla:....' 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>
"--rebuild" process?<br>
I'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's probably worth repeating<br><br>Added this to site-defaults.cfg:<br>config_opts['files']['etc/profile.d/mystuff.sh'] = """<br>export PATH=$PATH:/custom/path <br>
"""<br><br>Thanks Gordan<br>