diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-06-26 09:18:20 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-28 08:36:00 +0100 |
| commit | 22781f1a89de4681f5c2421156b095c024d67de7 (patch) | |
| tree | 9ab04dee2cb2a3748480338d34a7b07b2ac7842f /meta/recipes-devtools/elfutils/elfutils_0.180.bb | |
| parent | 658cde8788c2faf9532d332e37a6d98b14b070c5 (diff) | |
| download | poky-22781f1a89de4681f5c2421156b095c024d67de7.tar.gz | |
elfutils: upgrade 0.179 -> 0.180
Drop all the debian patches: they are very invasive, the use case is unclear,
and rebasing them is just too hard.
Refresh 0002-musl-libs.patch
Add a new musl fix: 0015-config-eu.am-do-not-use-Werror.patch
Add a reproducibility fix: 0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch
(From OE-Core rev: 79c290a0823ee996c69bb02a82dc6ded00fae629)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils_0.180.bb')
| -rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.180.bb | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.180.bb b/meta/recipes-devtools/elfutils/elfutils_0.180.bb new file mode 100644 index 0000000000..9f8bfc24f3 --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils_0.180.bb | |||
| @@ -0,0 +1,144 @@ | |||
| 1 | SUMMARY = "Utilities and libraries for handling compiled object files" | ||
| 2 | HOMEPAGE = "https://sourceware.org/elfutils" | ||
| 3 | SECTION = "base" | ||
| 4 | LICENSE = "GPLv2 & LGPLv3+ & GPLv3+" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
| 6 | DEPENDS = "zlib virtual/libintl" | ||
| 7 | DEPENDS_append_libc-musl = " argp-standalone fts musl-obstack " | ||
| 8 | # The Debian patches below are from: | ||
| 9 | # http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.176-1.debian.tar.xz | ||
| 10 | SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \ | ||
| 11 | file://0001-dso-link-change.patch \ | ||
| 12 | file://0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch \ | ||
| 13 | file://0003-fixheadercheck.patch \ | ||
| 14 | file://0004-Disable-the-test-to-convert-euc-jp.patch \ | ||
| 15 | file://0006-Fix-build-on-aarch64-musl.patch \ | ||
| 16 | file://0001-libasm-may-link-with-libbz2-if-found.patch \ | ||
| 17 | file://0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch \ | ||
| 18 | file://0001-skip-the-test-when-gcc-not-deployed.patch \ | ||
| 19 | file://0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch \ | ||
| 20 | file://run-ptest \ | ||
| 21 | file://ptest.patch \ | ||
| 22 | file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \ | ||
| 23 | " | ||
| 24 | SRC_URI_append_libc-musl = " \ | ||
| 25 | file://0001-musl-obstack-fts.patch \ | ||
| 26 | file://0002-musl-libs.patch \ | ||
| 27 | file://0003-musl-utils.patch \ | ||
| 28 | file://0004-Fix-error-on-musl.patch \ | ||
| 29 | file://0015-config-eu.am-do-not-use-Werror.patch \ | ||
| 30 | " | ||
| 31 | SRC_URI[sha256sum] = "b827b6e35c59d188ba97d7cf148fa8dc6f5c68eb6c5981888dfdbb758c0b569d" | ||
| 32 | |||
| 33 | inherit autotools gettext ptest pkgconfig | ||
| 34 | |||
| 35 | EXTRA_OECONF = "--program-prefix=eu- --disable-debuginfod" | ||
| 36 | |||
| 37 | DEPENDS_BZIP2 = "bzip2-replacement-native" | ||
| 38 | DEPENDS_BZIP2_class-target = "bzip2" | ||
| 39 | |||
| 40 | PACKAGECONFIG ??= "" | ||
| 41 | PACKAGECONFIG[bzip2] = "--with-bzlib,--without-bzlib,${DEPENDS_BZIP2}" | ||
| 42 | PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz" | ||
| 43 | |||
| 44 | RDEPENDS_${PN}-ptest += "libasm libelf bash make coreutils ${PN}-binutils" | ||
| 45 | |||
| 46 | EXTRA_OECONF_append_class-target = " --disable-tests-rpath" | ||
| 47 | |||
| 48 | RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-utils" | ||
| 49 | |||
| 50 | do_compile_ptest() { | ||
| 51 | cd ${B}/tests | ||
| 52 | oe_runmake buildtest-TESTS oecheck | ||
| 53 | } | ||
| 54 | |||
| 55 | do_install_ptest() { | ||
| 56 | if [ ${PTEST_ENABLED} = "1" ]; then | ||
| 57 | # copy the files which needed by the cases | ||
| 58 | TEST_FILES="strip strip.o addr2line elfcmp objdump readelf size.o nm.o nm elflint elfcompress elfclassify stack unstrip" | ||
| 59 | install -d -m 755 ${D}${PTEST_PATH}/src | ||
| 60 | install -d -m 755 ${D}${PTEST_PATH}/libelf | ||
| 61 | install -d -m 755 ${D}${PTEST_PATH}/libdw | ||
| 62 | install -d -m 755 ${D}${PTEST_PATH}/libasm | ||
| 63 | for test_file in ${TEST_FILES}; do | ||
| 64 | if [ -f ${B}/src/${test_file} ]; then | ||
| 65 | cp -r ${B}/src/${test_file} ${D}${PTEST_PATH}/src | ||
| 66 | fi | ||
| 67 | done | ||
| 68 | cp ${D}${libdir}/libelf-${PV}.so ${D}${PTEST_PATH}/libelf/libelf.so | ||
| 69 | cp ${D}${libdir}/libdw-${PV}.so ${D}${PTEST_PATH}/libdw/libdw.so | ||
| 70 | cp ${D}${libdir}/libasm-${PV}.so ${D}${PTEST_PATH}/libasm/libasm.so | ||
| 71 | cp -r ${S}/tests/ ${D}${PTEST_PATH} | ||
| 72 | cp -r ${B}/tests/* ${D}${PTEST_PATH}/tests | ||
| 73 | cp -r ${B}/config.h ${D}${PTEST_PATH} | ||
| 74 | cp -r ${B}/backends ${D}${PTEST_PATH} | ||
| 75 | sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile | ||
| 76 | find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {} | ||
| 77 | fi | ||
| 78 | } | ||
| 79 | |||
| 80 | EXTRA_OEMAKE_class-native = "" | ||
| 81 | EXTRA_OEMAKE_class-nativesdk = "" | ||
| 82 | |||
| 83 | BBCLASSEXTEND = "native nativesdk" | ||
| 84 | |||
| 85 | # Package utilities separately | ||
| 86 | PACKAGES =+ "${PN}-binutils libelf libasm libdw" | ||
| 87 | |||
| 88 | # shared libraries are licensed GPLv2 or GPLv3+, binaries GPLv3+ | ||
| 89 | # according to NEWS file: | ||
| 90 | # "The license is now GPLv2/LGPLv3+ for the libraries and GPLv3+ for stand-alone | ||
| 91 | # programs. There is now also a formal CONTRIBUTING document describing how to | ||
| 92 | # submit patches." | ||
| 93 | LICENSE_${PN}-binutils = "GPLv3+" | ||
| 94 | LICENSE_${PN} = "GPLv3+" | ||
| 95 | LICENSE_libelf = "GPLv2 | LGPLv3+" | ||
| 96 | LICENSE_libasm = "GPLv2 | LGPLv3+" | ||
| 97 | LICENSE_libdw = "GPLv2 | LGPLv3+" | ||
| 98 | |||
| 99 | FILES_${PN}-binutils = "\ | ||
| 100 | ${bindir}/eu-addr2line \ | ||
| 101 | ${bindir}/eu-ld \ | ||
| 102 | ${bindir}/eu-nm \ | ||
| 103 | ${bindir}/eu-readelf \ | ||
| 104 | ${bindir}/eu-size \ | ||
| 105 | ${bindir}/eu-strip" | ||
| 106 | |||
| 107 | FILES_libelf = "${libdir}/libelf-${PV}.so ${libdir}/libelf.so.*" | ||
| 108 | FILES_libasm = "${libdir}/libasm-${PV}.so ${libdir}/libasm.so.*" | ||
| 109 | FILES_libdw = "${libdir}/libdw-${PV}.so ${libdir}/libdw.so.* ${libdir}/elfutils/lib*" | ||
| 110 | # Some packages have the version preceeding the .so instead properly | ||
| 111 | # versioned .so.<version>, so we need to reorder and repackage. | ||
| 112 | #FILES_${PN} += "${libdir}/*-${PV}.so ${base_libdir}/*-${PV}.so" | ||
| 113 | #FILES_SOLIBSDEV = "${libdir}/libasm.so ${libdir}/libdw.so ${libdir}/libelf.so" | ||
| 114 | |||
| 115 | # The package contains symlinks that trip up insane | ||
| 116 | INSANE_SKIP_${MLPREFIX}libdw = "dev-so" | ||
| 117 | |||
| 118 | # avoid stripping some generated binaries otherwise some of the tests such as test-nlist, | ||
| 119 | # run-strip-reloc.sh, run-strip-strmerge.sh and so on will fail | ||
| 120 | INHIBIT_PACKAGE_STRIP_FILES = "\ | ||
| 121 | ${PKGD}${PTEST_PATH}/tests/test-nlist \ | ||
| 122 | ${PKGD}${PTEST_PATH}/tests/elfstrmerge \ | ||
| 123 | ${PKGD}${PTEST_PATH}/tests/backtrace-child \ | ||
| 124 | ${PKGD}${PTEST_PATH}/tests/backtrace-data \ | ||
| 125 | ${PKGD}${PTEST_PATH}/tests/backtrace-dwarf \ | ||
| 126 | ${PKGD}${PTEST_PATH}/tests/deleted \ | ||
| 127 | ${PKGD}${PTEST_PATH}/src/strip \ | ||
| 128 | ${PKGD}${PTEST_PATH}/src/addr2line \ | ||
| 129 | ${PKGD}${PTEST_PATH}/src/elfcmp \ | ||
| 130 | ${PKGD}${PTEST_PATH}/src/objdump \ | ||
| 131 | ${PKGD}${PTEST_PATH}/src/readelf \ | ||
| 132 | ${PKGD}${PTEST_PATH}/src/nm \ | ||
| 133 | ${PKGD}${PTEST_PATH}/src/elflint \ | ||
| 134 | ${PKGD}${PTEST_PATH}/src/elfclassify \ | ||
| 135 | ${PKGD}${PTEST_PATH}/src/stack \ | ||
| 136 | ${PKGD}${PTEST_PATH}/src/unstrip \ | ||
| 137 | ${PKGD}${PTEST_PATH}/libelf/libelf.so \ | ||
| 138 | ${PKGD}${PTEST_PATH}/libdw/libdw.so \ | ||
| 139 | ${PKGD}${PTEST_PATH}/libasm/libasm.so \ | ||
| 140 | ${PKGD}${PTEST_PATH}/backends/libebl_i386.so \ | ||
| 141 | ${PKGD}${PTEST_PATH}/backends/libebl_x86_64.so \ | ||
| 142 | " | ||
| 143 | |||
| 144 | PRIVATE_LIBS_${PN}-ptest = "libdw.so.1 libelf.so.1 libasm.so.1" | ||
