[OE-core] [PATCH] ltp: Add patch to correct failing build

Andrei Gherzan andrei at gherzan.ro
Mon Jun 4 17:51:22 UTC 2012


Confirmed.

@g


On Sat, Jun 2, 2012 at 7:59 PM, Flanagan, Elizabeth <
elizabeth.flanagan at intel.com> wrote:

> On Fri, Jun 1, 2012 at 12:52 AM, Cristian Iorga
> <cristian.iorga at intel.com> wrote:
> > ltp makefile does not interpret correctly the result of git describe
> > command and assumes that it is working with a git repo, while in fact
> > working with a source code archive.
> > Added a patch to corect makefile system.
> >
> > Signed-off-by: Cristian Iorga <cristian.iorga at intel.com>
> > ---
> >  .../ltp/ltp/fix_building_fom_archive.patch         |   23
> ++++++++++++++++++++
> >  meta/recipes-extended/ltp/ltp_20120401.bb          |    4 ++--
> >  2 files changed, 25 insertions(+), 2 deletions(-)
> >  create mode 100644
> meta/recipes-extended/ltp/ltp/fix_building_fom_archive.patch
> >
> > diff --git
> a/meta/recipes-extended/ltp/ltp/fix_building_fom_archive.patch
> b/meta/recipes-extended/ltp/ltp/fix_building_fom_archive.patch
> > new file mode 100644
> > index 0000000..c0ecc86
> > --- /dev/null
> > +++ b/meta/recipes-extended/ltp/ltp/fix_building_fom_archive.patch
> > @@ -0,0 +1,23 @@
> > +ltp package build system is broken if building from archive
> > +
> > +ltp makefile does not interpret correctly the result of git describe
> > +command and assumes that it is working with a git repo, while in fact
> > +working with a source code archive.
> > +
> > +Upstream-Status: Pending
> > +Signed-off-by: Cristian Iorga <cristian.iorga at intel.com>
> > +
> > +Index: ltp-20120401/Makefile
> > +===================================================================
> > +--- ltp-20120401.orig/Makefile
> > ++++ ltp-20120401/Makefile
> > +@@ -173,7 +173,8 @@ SRCDIR_INSTALL_TARGETS     := $(SRCDIR_INSTA
> > + #
> > + .PHONY: Version
> > + Version:
> > +-      if git describe &> /dev/null; then \
> > ++      git describe &> /dev/null
> > ++      if [ $? -eq 0 ]; then \
> > +               git describe > "$@"; \
> > +       else \
> > +               cp VERSION "$@"; \
> > diff --git a/meta/recipes-extended/ltp/ltp_20120401.bbb/meta/recipes-extended/ltp/
> ltp_20120401.bb
> > index 912d6d9..563bd58 100644
> > --- a/meta/recipes-extended/ltp/ltp_20120401.bb
> > +++ b/meta/recipes-extended/ltp/ltp_20120401.bb
> > @@ -21,10 +21,10 @@ LIC_FILES_CHKSUM =
> "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
> >
> >  DEPENDS = "attr"
> >
> > -PR = "r3"
> > +PR = "r4"
> >
> >  SRC_URI = "${SOURCEFORGE_MIRROR}/ltp/ltp-full-${PV}.bz2 \
> > -          "
> > +           file://fix_building_fom_archive.patch"
> >
> >  SRC_URI[md5sum] = "e1d0acf1a6b6da0cb30dc1b0dcf5f26d"
> >  SRC_URI[sha256sum] =
> "f0f5845f9666f61332fdf0b7e396fc647f9372db0902a829af2cf9402b807bd1"
> > --
> > 1.7.9.5
> >
> >
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core at lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
> This patch seems to be causing build failures:
>
> | ERROR: Function failed: do_compile (see
>
> /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/work/ppc603e-poky-linux/ltp-20120401-r4/temp/log.do_compile.695
> for further information)
> | NOTE: make -j 16
> | make -C "lib" \
> |       -f
> "/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/work/ppc603e-poky-linux/ltp-20120401-r4/ltp-20120401/lib/Makefile"
> all
> | git describe &> /dev/null
> | make: *** [Version] Error 128
> | make: *** Waiting for unfinished jobs....
> | make[1]: Entering directory
>
> `/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/work/ppc603e-poky-linux/ltp-20120401-r4/ltp-20120401/lib'
> | make[1]: Nothing to be done for `all'.
> | make[1]: Leaving directory
>
> `/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/build/tmp/work/ppc603e-poky-linux/ltp-20120401-r4/ltp-20120401/lib'
> | ERROR: oe_runmake failed
>
>
>
> -b
>
> --
> Elizabeth Flanagan
> Yocto Project
> Build and Release
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120604/4ecf5433/attachment-0002.html>


More information about the Openembedded-core mailing list