Re: Merging the new yocto 1.7 rebase
- From: Alexander Larsson <alexl redhat com>
- To: gnome-continuous-list gnome org
- Cc: gnome-infrastructure gnome org
- Subject: Re: Merging the new yocto 1.7 rebase
- Date: Tue, 30 Sep 2014 19:03:00 +0200
So, in the overrides directory in the build tree i put a file called
"ostree-build-yocto" containing:
#!/bin/sh
scl enable python27 git19 "/data/gnome/root/lib64/gnome-continuous/ostree-build-yocto $*"
(where /data/gnome/root is my gnome-continuous prefix)
Of course, this still didn't work, because LD_LIBRARY_PATH is stripped
by bitbake. I tried to work around this by using BB_ENV_EXTRAWHITE, but
several build recipies failed anyway since they manually clean the env.
Instead i used patchelf
(http://nixos.org/releases/patchelf/patchelf-0.8/) like this:
patchelf --set-rpath /opt/rh/python27/root/usr/lib64 /opt/rh/python27/root/usr/bin/python2.7
Instead of patchelf I made it work using a script that sets
LD_LIBRARY_PATH and then calls out to the scl python:
$ ls -l overrides/bin/
lrwxrwxrwx. 1 cloud-user cloud-user 9 30 sep 11.04 python -> python2.7
lrwxrwxrwx. 1 cloud-user cloud-user 9 30 sep 11.04 python2 ->
python2.7
-rwxrwxr-x. 1 cloud-user cloud-user 115 30 sep 11.17 python2.7
with overrides/bin/python2.7:
#!/bin/sh
export LD_LIBRARY_PATH=/opt/rh/python27/root/usr/lib64
exec /opt/rh/python27/root/usr/bin/python2.7 "$@"
and overrides/ostree-build-yocto:
#!/bin/sh
export PATH=/data/gnome-continuous/overrides/bin:$PATH
scl enable git19 "/data/gnome/root/lib64/gnome-continuous/ostree-build-yocto $*"
(Where /data/gnome-continuous is where i put the build root)
This seems to have worked so far, and I expect it to work all the way.
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]