[oe] [PATCH] elfutils: Added recipe for elfutils-0.148 from oe-core.

Paul Menzel paulepanter at users.sourceforge.net
Wed Jun 15 12:23:05 UTC 2011


Am Mittwoch, den 15.06.2011, 09:26 +0800 schrieb James Limbouris:

»elfutils: Add version 0.148 from oe-core« would be good enough for the
commit summary.

> This resolves a build issue with 0.143 in which strip.c
> uses stat64 without an appropriate header.
> 
> Signed-off-by: James Limbouris <james at digitalmatter.com.au>
> ---
>  recipes/elfutils/elfutils-0.148/arm_backend.diff   |  449 +++++
>  recipes/elfutils/elfutils-0.148/do-autoreconf.diff |  339 ++++
>  recipes/elfutils/elfutils-0.148/elf_additions.diff |   71 +
>  .../elfutils/elfutils-0.148/elfutils-fsize.patch   |   39 +
>  recipes/elfutils/elfutils-0.148/hppa_backend.diff  |  801 +++++++++
>  recipes/elfutils/elfutils-0.148/i386_dis.h         | 1657 +++++++++++++++++++
>  recipes/elfutils/elfutils-0.148/m68k_backend.diff  |  309 ++++
>  recipes/elfutils/elfutils-0.148/mempcpy.patch      |   25 +
>  recipes/elfutils/elfutils-0.148/mips_backend.diff  |  713 ++++++++
>  .../elfutils-0.148/redhat-portability.diff         | 1124 +++++++++++++
>  .../elfutils/elfutils-0.148/redhat-robustify.diff  | 1709 ++++++++++++++++++++
>  .../elfutils/elfutils-0.148/remove-unused.patch    |  154 ++
>  .../elfutils-0.148/testsuite-ignore-elflint.diff   |   21 +
>  .../elfutils/elfutils-0.148/uclibc-support.patch   |   91 ++
>  recipes/elfutils/elfutils-0.148/x86_64_dis.h       | 1632 +++++++++++++++++++
>  recipes/elfutils/elfutils_0.148.bb                 |   61 +
>  16 files changed, 9195 insertions(+), 0 deletions(-)
>  create mode 100644 recipes/elfutils/elfutils-0.148/arm_backend.diff
>  create mode 100644 recipes/elfutils/elfutils-0.148/do-autoreconf.diff
>  create mode 100644 recipes/elfutils/elfutils-0.148/elf_additions.diff
>  create mode 100644 recipes/elfutils/elfutils-0.148/elfutils-fsize.patch
>  create mode 100644 recipes/elfutils/elfutils-0.148/hppa_backend.diff
>  create mode 100644 recipes/elfutils/elfutils-0.148/i386_dis.h
>  create mode 100644 recipes/elfutils/elfutils-0.148/m68k_backend.diff
>  create mode 100644 recipes/elfutils/elfutils-0.148/mempcpy.patch
>  create mode 100644 recipes/elfutils/elfutils-0.148/mips_backend.diff
>  create mode 100644 recipes/elfutils/elfutils-0.148/redhat-portability.diff
>  create mode 100644 recipes/elfutils/elfutils-0.148/redhat-robustify.diff
>  create mode 100644 recipes/elfutils/elfutils-0.148/remove-unused.patch
>  create mode 100644 recipes/elfutils/elfutils-0.148/testsuite-ignore-elflint.diff
>  create mode 100644 recipes/elfutils/elfutils-0.148/uclibc-support.patch
>  create mode 100644 recipes/elfutils/elfutils-0.148/x86_64_dis.h
>  create mode 100644 recipes/elfutils/elfutils_0.148.bb

[…]

> diff --git a/recipes/elfutils/elfutils_0.148.bb b/recipes/elfutils/elfutils_0.148.bb
> new file mode 100644
> index 0000000..c7ae6d5
> --- /dev/null
> +++ b/recipes/elfutils/elfutils_0.148.bb
> @@ -0,0 +1,61 @@
> +DESCRIPTION = "A collection of utilities and DSOs to handle compiled objects."
> +HOMEPAGE = "https://fedorahosted.org/elfutils"
> +SECTION = "base"
> +LICENSE = "OSL"
> +DEPENDS = "libtool bzip2 zlib"
> +
> +PR = "r2"

Since it is new in OE.dev it should start with r0.

> +
> +SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/elfutils-${PV}.tar.bz2"
> +
> +SRC_URI[md5sum] = "a0bed1130135f17ad27533b0034dba8d"
> +SRC_URI[sha256sum] = "8aebfa4a745db21cf5429c9541fe482729b62efc7e53e9110151b4169fe887da"
> +
> +# pick the patch from debian
> +# http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.148-1.debian.tar.gz

Remove the commented lines?

> +
> +SRC_URI += "\
> +        file://redhat-portability.diff \
> +        file://redhat-robustify.diff \
> +        file://hppa_backend.diff \
> +        file://arm_backend.diff \
> +        file://mips_backend.diff \
> +        file://m68k_backend.diff \
> +        file://do-autoreconf.diff \
> +        file://testsuite-ignore-elflint.diff \
> +        file://elf_additions.diff \
> +	file://elfutils-fsize.patch \
> +	file://remove-unused.patch \
> +	file://mempcpy.patch \
> +"
> +
> +# The buildsystem wants to generate 2 .h files from source using a binary it just built,
> +# which can not pass the cross compiling, so let's work around it by adding 2 .h files
> +# along with the do_configure_prepend()
> +
> +SRC_URI += "\
> +        file://i386_dis.h \
> +        file://x86_64_dis.h \
> +"
> +inherit autotools gettext
> +
> +do_configure_prepend() {
> +	sed -i 's:./i386_gendis:echo\ \#:g' ${S}/libcpu/Makefile.am
> +
> +	cp ${WORKDIR}/*dis.h ${S}/libcpu
> +}
> +
> +# Package utilities separately
> +PACKAGES =+ "${PN}-binutils"
> +FILES_${PN}-binutils = "\
> +    ${bindir}/eu-addr2line \
> +    ${bindir}/eu-ld \
> +    ${bindir}/eu-nm \
> +    ${bindir}/eu-readelf \
> +    ${bindir}/eu-size \
> +    ${bindir}/eu-strip"
> +# Fix library issues
> +FILES_${PN} =+ "${libdir}/*-${PV}.so"
> +
> +# The elfutils package contains symlinks that trip up insane
> +INSANE_SKIP_elfutils = "1"

Task compile is (still) failing for me using `minimal` for `MACHINE =
"beagleboard"`.

        arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I.. -I. -I. -I../lib -I..   -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -fgnu89-inline -Wformat=2    -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT elf_getbase.o -MD -MP -MF .deps/elf_getbase.Tpo -c -o elf_getbase.o elf_getbase.c
        mv -f .deps/elf_end.Tpo .deps/elf_end.Po
        arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -D_GNU_SOURERROR: Function 'do_compile' failed (see /oe/build-minimal-eglibc/minimal-dev/work/armv7a-oe-linux-gnueabi/elfutils-0.148-r2/temp/log.do_compile.21604 for further information)
        CE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I.. -I. -I. -I../lib -I..   -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -fgnu89-inline -Wformat=2    -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT elf_getident.o -MD -MP -MF .deps/elf_getident.Tpo -c -o elf_getident.o elf_getident.c
        mv -f .deps/gelf_getclass.Tpo .deps/gelf_getclass.Po
        arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroot/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I.. -I. -I. -I../lib -I..   -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -fgnu89-inline -Wformat=2    -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT elf32_fsize.o -MD -MP -MF .deps/elf32_fsize.Tpo -c -o elf32_fsize.o elf32_fsize.c
        elf_getbase.c:62:1: error: conflicting types for 'elf_getbase'
        ./libelf.h:207:15: note: previous declaration of 'elf_getbase' was here
        make[2]: *** [elf_getbase.o] Error 1


Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110615/fc282280/attachment-0002.sig>


More information about the Openembedded-devel mailing list