<br><br>On Monday, October 21, 2013, Riku Voipio &lt;<a href="mailto:riku.voipio@linaro.org">riku.voipio@linaro.org</a>&gt; wrote:<br>&gt; Cleanups for ltp:<br>&gt;<br>&gt; 1. Instead of using giturl like in Anders&#39;s patch use the sourceforge mirror URL.<br>
<br>whats wrong with git url ?<br><br>&gt; 2. remove to the manual unpack rule and just set S variable to source directory.<br>&gt; 3. Follow the OE style guide for variable order.<br>&gt; ---<br>&gt;  meta/recipes-extended/ltp/<a href="http://ltp_20130904.bb">ltp_20130904.bb</a> | 50 +++++++++++++------------------<br>
&gt;  1 file changed, 21 insertions(+), 29 deletions(-)<br>&gt;<br>&gt; diff --git a/meta/recipes-extended/ltp/<a href="http://ltp_20130904.bb">ltp_20130904.bb</a> b/meta/recipes-extended/ltp/<a href="http://ltp_20130904.bb">ltp_20130904.bb</a><br>
&gt; index 5e10448..43fe780 100644<br>&gt; --- a/meta/recipes-extended/ltp/<a href="http://ltp_20130904.bb">ltp_20130904.bb</a><br>&gt; +++ b/meta/recipes-extended/ltp/<a href="http://ltp_20130904.bb">ltp_20130904.bb</a><br>
&gt; @@ -21,44 +21,21 @@ LIC_FILES_CHKSUM = &quot;file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \<br>&gt;<br>&gt;  DEPENDS = &quot;attr libaio libcap acl openssl&quot;<br>&gt;<br>&gt; -SRC_URI = &quot;git://<a href="http://github.com/linux-test-project/ltp.git">github.com/linux-test-project/ltp.git</a>&quot;<br>
&gt; +SRC_URI = &quot;${SOURCEFORGE_MIRROR}/project/ltp/LTP%20Source/ltp-${PV}/ltp-full-${PV}.tar.bz2 \<br>&gt; +           &quot;<br>&gt;<br>&gt; -SRCREV = &quot;a8c42db5f9314211811c36275a21f83902830dc5&quot;<br>&gt; -S = &quot;${WORKDIR}/git&quot;<br>
&gt; +SRC_URI[md5sum] = &quot;0cf2ccb7199f8318d413c62a085629f0&quot;<br>&gt; +SRC_URI[sha256sum] = &quot;662c3661a4d1bfbf3187d0835f35e613b43eedc35a840e3283e378a19606ee0b&quot;<br>&gt;<br>&gt;  export prefix = &quot;/opt/ltp&quot;<br>
&gt;  export exec_prefix = &quot;/opt/ltp&quot;<br>&gt;<br>&gt;  inherit autotools<br>&gt;<br>&gt; -RDEPENDS_${PN} = &quot;perl e2fsprogs-mke2fs&quot;<br>&gt; -<br>&gt; -FILES_${PN}-dbg += &quot;/opt/ltp/runtest/.debug&quot;<br>
&gt; -FILES_${PN}-dbg += &quot;/opt/ltp/testcases/bin/.debug&quot;<br>&gt; -FILES_${PN}-dbg += &quot;/opt/ltp/testcases/bin/*/bin/.debug&quot;<br>&gt; -FILES_${PN}-dbg += &quot;/opt/ltp/testcases/bin/*/test/.debug&quot;<br>
&gt; -FILES_${PN}-dbg += &quot;/opt/ltp/scenario_groups/.debug&quot;<br>&gt; -FILES_${PN}-dbg += &quot;/opt/ltp/testscripts/.debug&quot;<br>&gt; -FILES_${PN}-dbg += &quot;/opt/ltp/testscripts/open_posix_testsuite/.debug&quot;<br>
&gt; -<br>&gt; -FILES_${PN}-staticdev += &quot;/opt/ltp/lib/libmem.a&quot;<br>&gt; -<br>&gt; -FILES_${PN} += &quot;/opt/ltp/* /opt/ltp/runtest/* /opt/ltp/scenario_groups/* /opt/ltp/testcases/bin/* /opt/ltp/testcases/bin/*/bin/* /opt/ltp/testscripts/* /opt/ltp/testcases/open_posix_testsuite/* /opt/ltp/testcases/open_posix_testsuite/conformance/* /opt/ltp/testcases/open_posix_testsuite/Documentation/* /opt/ltp/testcases/open_posix_testsuite/functional/* /opt/ltp/testcases/open_posix_testsuite/include/* /opt/ltp/testcases/open_posix_testsuite/scripts/* /opt/ltp/testcases/open_posix_testsuite/stress/* /opt/ltp/testcases/open_posix_testsuite/tools/*&quot;<br>
&gt; +S = &quot;${WORKDIR}/ltp-full-${PV}&quot;<br>&gt;<br>&gt;  TARGET_CC_ARCH += &quot;${LDFLAGS}&quot;<br>&gt;<br>&gt; -do_unpack_append() {<br>&gt; -    bb.build.exec_func(&#39;do_extract_tarball&#39;, d)<br>&gt; -}<br>
&gt; -<br>&gt; -do_extract_tarball() {<br>&gt; -       if test -f ${WORKDIR}/ltp-full-${PV} ; then<br>&gt; -           tar x --no-same-owner -f ${WORKDIR}/ltp-full-${PV} -C ${WORKDIR}<br>&gt; -           rm -rf ${WORKDIR}/ltp-${PV}<br>
&gt; -           mv ${WORKDIR}/ltp-full-${PV} ${WORKDIR}/ltp-${PV}<br>&gt; -       fi<br>&gt; -}<br>&gt; -<br>&gt;  do_install(){<br>&gt;         install -d ${D}/opt/ltp/<br>&gt;         oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install<br>
&gt; @@ -66,10 +43,25 @@ do_install(){<br>&gt;         # Copy POSIX test suite into ${D}/opt/ltp/testcases by manual<br>&gt;         cp -r testcases/open_posix_testsuite ${D}/opt/ltp/testcases<br>&gt;<br>&gt; -       # We need to remove all scripts which depend on /usr/bin/expect, since expect is not supported in poky<br>
&gt; +       # We need to remove all scripts which depend on /usr/bin/expect, since expect is not supported in oe-core<br>&gt;         # We will add expect for enhancement in future<br>&gt;         find ${D} -type f -print | xargs grep &quot;\!.*\/usr\/bin\/expect&quot; | awk -F&quot;:&quot; &#39;{print $1}&#39; | xargs rm -f<br>
&gt;  }<br>&gt;<br>&gt; +FILES_${PN}-dbg += &quot;/opt/ltp/runtest/.debug \<br>&gt; +                    /opt/ltp/testcases/bin/.debug \<br>&gt; +                    /opt/ltp/testcases/bin/*/bin/.debug \<br>&gt; +                    /opt/ltp/testcases/bin/*/test/.debug \<br>
&gt; +                    /opt/ltp/scenario_groups/.debug \<br>&gt; +                    /opt/ltp/testscripts/.debug \<br>&gt; +                    /opt/ltp/testscripts/open_posix_testsuite/.debug \<br>&gt; +                    &quot;<br>
&gt; +<br>&gt; +FILES_${PN}-staticdev += &quot;/opt/ltp/lib/libmem.a&quot;<br>&gt; +<br>&gt; +FILES_${PN} += &quot;/opt/ltp/* /opt/ltp/runtest/* /opt/ltp/scenario_groups/* /opt/ltp/testcases/bin/* /opt/ltp/testcases/bin/*/bin/* /opt/ltp/testscripts/* /opt/ltp/testcases/open_posix_testsuite/* /opt/ltp/testcases/open_posix_testsuite/conformance/* /opt/ltp/testcases/open_posix_testsuite/Documentation/* /opt/ltp/testcases/open_posix_testsuite/functional/* /opt/ltp/testcases/open_posix_testsuite/include/* /opt/ltp/testcases/open_posix_testsuite/scripts/* /opt/ltp/testcases/open_posix_testsuite/stress/* /opt/ltp/testcases/open_posix_testsuite/tools/*&quot;<br>
&gt; +<br>&gt; +RDEPENDS_${PN} = &quot;perl e2fsprogs-mke2fs&quot;<br>&gt; +<br>&gt;  # Avoid generated binaries stripping. Otherwise some of the ltp tests such as ldd01 &amp; nm01 fails<br>&gt;  INHIBIT_PACKAGE_STRIP = &quot;1&quot;<br>
&gt; --<br>&gt; 1.8.3.1<br>&gt;<br>&gt; _______________________________________________<br>&gt; Openembedded-core mailing list<br>&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>&gt;