[OE-core] [PATCH 1/3] ltp: Add recipe from OE
Xu, Jiajun
jiajun.xu at intel.com
Wed Dec 21 15:49:56 UTC 2011
> The "mv" seems to cause a problem. Is there a reason you do this
> instead of just setting "S = ${WORKDIR}/ltp-full-${PV} if that's what
> the tarball normally extracts to?
>
Sorry for late response, Saul. If I set S to ltp-full-${PV}, do_unpack will report that ltp-full-${PV} is not a directory. It is due to that the source file for ltp is named as "ltp-full-${PV}.bz2", which in fact should be extracted by bzip2 and tar. But the unpack code in bitbake could not handle this so I have to add some extra code for it.
I have modified the patch to make the unpack pass and will send out again for review.
Thanks a lot.
>
>
> ERROR: Function 'do_extract_tarball' failed (see
> /srv/home/swold/yocto-autobuilder/yocto-slave/nightly-x86/build/build/
> tmp/w ork/i586-poky-linux/ltp-20110915-r0/temp/log.do_unpack.714 for
> further information) ERROR: Logfile of failure stored in:
> /srv/home/swold/yocto-autobuilder/yocto-slave/nightly-x86/build/build/
> tmp/w ork/i586-poky-linux/ltp-20110915-r0/temp/log.do_unpack.714 Log
> data follows: | NOTE: Unpacking
> /srv/home/swold/downloads/ltp-full-20110915.bz2 to
> /srv/home/swold/yocto-autobuilder/yocto-slave/nightly-x86/build/build/
> tmp/w ork/i586-poky-linux/ltp-20110915-r0/ | DEBUG: SITE files
> ['endian-little', 'bit-32', 'ix86-common', 'common-linux',
> 'common-glibc', 'i586-linux', 'common'] | ERROR: Function
> 'do_extract_tarball' failed (see
> /srv/home/swold/yocto-autobuilder/yocto-slave/nightly-x86/build/build/
> tmp/w ork/i586-poky-linux/ltp-20110915-r0/temp/log.do_unpack.714 for
> further information) | mv: cannot overwrite directory
> `/srv/home/swold/yocto-autobuilder/yocto-slave/nightly-x86/build/build
> /tmp/w
> ork/i586-poky-linux/ltp-20110915-r0/ltp-20110915/ltp-full-20110915' with
> non-directory NOTE: package ltp-20110915-r0: task do_unpack: Failed
> ERROR: Task 2303
> (/srv/home/swold/yocto-autobuilder/yocto-slave/nightly-x86/build/meta/
> recipe s-extended/ltp/ltp_20110915.bb, do_unpack) failed with exit code
> '1'
>
>> +do_install(){ + install -d ${D}/opt/ltp/ + oe_runmake DESTDIR=${D}
>> SKIP_IDCHECK=1 install + + # Copy POSIX test suite into
>> ${D}/opt/ltp/testcases by manual + cp -r testcases/open_posix_testsuite
>> ${D}/opt/ltp/testcases + + # We need to remove all scripts which depend
>> on /usr/bin/expect, +since expect is not supported in poky + # We will
>> add expect for enhancement in future + find ${D} -type f -print | xargs
>> grep "\!.*\/usr\/bin\/expect" | +awk -F":" '{print $1}' | xargs rm -f }
Best Regards,
Jiajun
More information about the Openembedded-core
mailing list