[yocto] build failure on current

Evade Flow evadeflow at gmail.com
Fri Sep 28 08:13:22 PDT 2012


To answer your questions...

> Just to confirm, this is the same path you get if you run "cat pseudodone"
> in your build directory?

Yessir.

evadeflow% cat pseudodone
/home/evadeflow/projects/poky-git/build/tmp/sysroots/i686-linux/usr/bin


>  ...                  could you put this into a file and run it and tell me
>  what it prints on your system?
>
> --------------- snip --------------
> #!/bin/sh
> needtar=1
> TARVERSION=`tar --version | head -n 1 | cut -d ' ' -f 4`
> float_test() {
>      echo | awk 'END { exit ( !( '"$1"')); }'
> }

Erm... that *specific* bit prints nothing when pasted into a file and
executed. (Is it really supposed to?)

evadeflow% cat > temp.sh
#!/bin/sh
needtar=1
TARVERSION=`tar --version | head -n 1 | cut -d ' ' -f 4`
float_test() {
     echo | awk 'END { exit ( !( '"$1"')); }'
}
evadeflow% chmod +x temp.sh
evadeflow% ./temp.sh
evadeflow% ls -la /bin/sh
lrwxrwxrwx 1 root root 9 2010-08-13 05:08 /bin/sh -> /bin/bash
evadeflow% tar --version | head -n 1 | cut -d ' ' -f 4
1.22


On Fri, Sep 28, 2012 at 10:34 AM, Paul Eggleton
<paul.eggleton at linux.intel.com> wrote:
> On Friday 28 September 2012 10:16:27 Evade Flow wrote:
>> Seems it definitely didn't build tar:
>>
>> evadeflow% pwd
>> /home/evadeflow/projects/poky-git/build/tmp/sysroots/i686-linux/usr/bin
>
> Just to confirm, this is the same path you get if you run "cat pseudodone" in
> your build directory?
>
>> evadeflow% ls t*
>> tabs  tailf  taskset  tic  toe        tput  tset  tunctl  tzselect
>> evadeflow% tar --version
>> tar (GNU tar) 1.22
>> ...
>> This is on denzil, BTW. (Maybe the check against the tar version was added
>> later?)
>
> No, the code to do this was there in denzil as well. Here's the code cut out
> into a shell script - could you put this into a file and run it and tell me
> what it prints on your system?
>
> --------------- snip --------------
> #!/bin/sh
> needtar=1
> TARVERSION=`tar --version | head -n 1 | cut -d ' ' -f 4`
> float_test() {
>      echo | awk 'END { exit ( !( '"$1"')); }'
> }
>
> # Tar version 1.24 and onwards handle overwriting symlinks correctly
> # but earlier versions do not; this needs to work properly for sstate
> float_test "$TARVERSION > 1.23" && needtar="0"
> echo $needtar
> --------------- snip --------------
>
> Thanks,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre



More information about the yocto mailing list