Colin Bates <colin.ba...@...> writes:

> 
> Hi,
> 
> I am having some problems with bitbake. When running bitbake do_configure and 
> do_compile fails. If I cd to the the work/.../package/temp directory and 
> execute the run.do_configure.xxxx/run.do_compile.xxxx no problem.
> 
> I have pasted an example of a fail below.
> 
> I can not figure out why there is a difference between python starting the 
> run.do_configure.xxxx/run.do_compile.xxxx and running them from the command 
> line.
> 
> Any hints gratefully received. BTW I tried removing "-j 4" make option from 
> the local.conf and it made no difference.
> 
> Cheers,
> 
> Colin
> 
Hi,

I managed to fix the issue by adding some stuff to the environment before the
call to the shell in bitbake. I added the following to build.py:

===================================================================
--- ../bitbake/lib/bb/build.py  (revision 1152)
+++ ../bitbake/lib/bb/build.py  (working copy)
@@ -207,8 +207,8 @@
         maybe_fakeroot = "PATH=\"%s\" fakeroot " % bb.data.getVar("PATH", d, 1)
     else:
         maybe_fakeroot = ''
-    lang_environment = "LC_ALL=C "
-    ret = os.system('%s%ssh -e %s' % (lang_environment, maybe_fakeroot,
 runfile))
+    sh_environment = "LC_ALL=C HOME=%s PATH=/usr/bin:/bin " %
os.path.expanduser("~")
+    ret = os.system('%s%ssh -e %s' % (sh_environment, maybe_fakeroot, runfile))
     try:
         os.chdir(prevdir)
     except:


I needed the HOME set to get the gcc/ccache to work correctly. I needed to add
the PATH to find the rm command.

I am not sure why I need the extra environment. I build on a Slackware system.
Is there something wrong with the sh I am using? On my system /bin/sh links
through to bash.

Cheers,

Colin


_______________________________________________
Angstrom-distro-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to