summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/elfutils_0.187.bb
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-11-20 14:31:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-22 12:26:46 +0000
commit43d68bd00f94d492fd00964b95a657515088d1de (patch)
tree653b73bc433a76126cacaecd2353e02ad07c304d /meta/recipes-devtools/elfutils/elfutils_0.187.bb
parent8c5b1122554451290410df36e61ee3811c70e841 (diff)
downloadpoky-43d68bd00f94d492fd00964b95a657515088d1de.tar.gz
elfutils: update 0.187 -> 0.188
Drop upstreamed patch. (From OE-Core rev: bd6a55512db6b9c50a8d86eab7a4727e800d5391) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils_0.187.bb')
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.187.bb172
1 files changed, 0 insertions, 172 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.187.bb b/meta/recipes-devtools/elfutils/elfutils_0.187.bb
deleted file mode 100644
index 40c51c8814..0000000000
--- a/meta/recipes-devtools/elfutils/elfutils_0.187.bb
+++ /dev/null
@@ -1,172 +0,0 @@
1SUMMARY = "Utilities and libraries for handling compiled object files"
2HOMEPAGE = "https://sourceware.org/elfutils"
3DESCRIPTION = "elfutils is a collection of utilities and libraries to read, create and modify ELF binary files, find and handle DWARF debug data, symbols, thread state and stacktraces for processes and core files on GNU/Linux."
4SECTION = "base"
5LICENSE = "GPL-2.0-only & GPL-2.0-or-later & LGPL-3.0-or-later & GPL-3.0-or-later"
6LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
7 file://debuginfod/debuginfod-client.c;endline=28;md5=f0a7c3170776866ee94e8f9225a6ad79 \
8 "
9DEPENDS = "zlib virtual/libintl"
10DEPENDS:append:libc-musl = " argp-standalone fts musl-obstack "
11# The Debian patches below are from:
12# http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.176-1.debian.tar.xz
13SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
14 file://0001-dso-link-change.patch \
15 file://0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch \
16 file://0003-fixheadercheck.patch \
17 file://0006-Fix-build-on-aarch64-musl.patch \
18 file://0001-libasm-may-link-with-libbz2-if-found.patch \
19 file://0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch \
20 file://0001-skip-the-test-when-gcc-not-deployed.patch \
21 file://run-ptest \
22 file://ptest.patch \
23 file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \
24 file://0001-tests-Add-libeu-to-tests-needing-error-API.patch \
25 "
26SRC_URI:append:libc-musl = " \
27 file://0003-musl-utils.patch \
28 file://0015-config-eu.am-do-not-use-Werror.patch \
29 "
30SRC_URI[sha256sum] = "e70b0dfbe610f90c4d1fe0d71af142a4e25c3c4ef9ebab8d2d72b65159d454c8"
31
32inherit autotools gettext ptest pkgconfig
33
34EXTRA_OECONF = "--program-prefix=eu-"
35
36BUILD_CFLAGS += "-Wno-error=stringop-overflow"
37
38DEPENDS_BZIP2 = "bzip2-replacement-native"
39DEPENDS_BZIP2:class-target = "bzip2"
40
41PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'debuginfod', 'debuginfod libdebuginfod', '', d)}"
42PACKAGECONFIG[bzip2] = "--with-bzlib,--without-bzlib,${DEPENDS_BZIP2}"
43PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz"
44PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd"
45PACKAGECONFIG[libdebuginfod] = "--enable-libdebuginfod,--disable-libdebuginfod,curl"
46PACKAGECONFIG[debuginfod] = "--enable-debuginfod,--disable-debuginfod,libarchive sqlite3 libmicrohttpd"
47
48RDEPENDS:${PN}-ptest += "libasm libelf bash make coreutils ${PN}-binutils iproute2-ss bsdtar gcc-symlinks binutils-symlinks libgcc-dev"
49
50EXTRA_OECONF:append:class-target = " --disable-tests-rpath"
51
52# symver functions not currently supported on microblaze
53EXTRA_OECONF:append:class-target:microblaze = " --disable-symbol-versioning"
54
55RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-utils glibc-dbg glibc-dev"
56INSANE_SKIP:${PN}-ptest = "debug-deps dev-deps"
57
58do_compile_ptest() {
59 cd ${B}/tests
60 oe_runmake buildtest-TESTS oecheck
61}
62PTEST_PARALLEL_MAKE = ""
63
64do_install_ptest() {
65 if [ ${PTEST_ENABLED} = "1" ]; then
66 # copy the files which needed by the cases
67 TEST_FILES="strip strip.o addr2line elfcmp objdump readelf size.o nm.o nm elflint elfcompress elfclassify stack unstrip"
68 install -d -m 755 ${D}${PTEST_PATH}/src
69 install -d -m 755 ${D}${PTEST_PATH}/lib
70 install -d -m 755 ${D}${PTEST_PATH}/libelf
71 install -d -m 755 ${D}${PTEST_PATH}/libdw
72 install -d -m 755 ${D}${PTEST_PATH}/libdwfl
73 install -d -m 755 ${D}${PTEST_PATH}/libdwelf
74 install -d -m 755 ${D}${PTEST_PATH}/libasm
75 install -d -m 755 ${D}${PTEST_PATH}/libcpu
76 install -d -m 755 ${D}${PTEST_PATH}/libebl
77 for test_file in ${TEST_FILES}; do
78 if [ -f ${B}/src/${test_file} ]; then
79 cp -r ${B}/src/${test_file} ${D}${PTEST_PATH}/src
80 fi
81 done
82 cp ${D}${libdir}/libelf-${PV}.so ${D}${PTEST_PATH}/libelf/libelf.so
83 cp ${D}${libdir}/libdw-${PV}.so ${D}${PTEST_PATH}/libdw/libdw.so
84 cp ${D}${libdir}/libasm-${PV}.so ${D}${PTEST_PATH}/libasm/libasm.so
85 cp ${B}/libcpu/libcpu.a ${D}${PTEST_PATH}/libcpu/
86 cp ${B}/libebl/libebl.a ${D}${PTEST_PATH}/libebl/
87 cp ${B}/lib/libeu.a ${D}${PTEST_PATH}/lib/
88 cp ${S}/libelf/*.h ${D}${PTEST_PATH}/libelf/
89 cp ${S}/libdw/*.h ${D}${PTEST_PATH}/libdw/
90 cp ${S}/libdwfl/*.h ${D}${PTEST_PATH}/libdwfl/
91 cp ${S}/libdwelf/*.h ${D}${PTEST_PATH}/libdwelf/
92 cp ${S}/libasm/*.h ${D}${PTEST_PATH}/libasm/
93 cp -r ${S}/tests/ ${D}${PTEST_PATH}
94 cp -r ${B}/tests/* ${D}${PTEST_PATH}/tests
95 cp -r ${B}/config.h ${D}${PTEST_PATH}
96 cp -r ${B}/backends ${D}${PTEST_PATH}
97 cp -r ${B}/debuginfod ${D}${PTEST_PATH}
98 sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile
99 find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {}
100 fi
101}
102
103EXTRA_OEMAKE:class-native = ""
104EXTRA_OEMAKE:class-nativesdk = ""
105
106BBCLASSEXTEND = "native nativesdk"
107
108# Package utilities separately
109PACKAGES =+ "${PN}-binutils libelf libasm libdw libdebuginfod"
110
111# Shared libraries are licensed GPL-2.0-only or GPL-3.0-or-later, binaries
112# GPL-3.0-or-later. According to NEWS file:
113# "The license is now GPLv2/LGPLv3+ for the libraries and GPLv3+ for stand-alone
114# programs. There is now also a formal CONTRIBUTING document describing how to
115# submit patches."
116LICENSE:${PN}-binutils = "GPL-3.0-or-later"
117LICENSE:${PN} = "GPL-3.0-or-later"
118LICENSE:libelf = "GPL-2.0-only | LGPL-3.0-or-later"
119LICENSE:libasm = "GPL-2.0-only | LGPL-3.0-or-later"
120LICENSE:libdw = "GPL-2.0-only | LGPL-3.0-or-later"
121LICENSE:libdebuginfod = "GPL-2.0-or-later | LGPL-3.0-or-later"
122
123FILES:${PN}-binutils = "\
124 ${bindir}/eu-addr2line \
125 ${bindir}/eu-ld \
126 ${bindir}/eu-nm \
127 ${bindir}/eu-readelf \
128 ${bindir}/eu-size \
129 ${bindir}/eu-strip"
130
131FILES:libelf = "${libdir}/libelf-${PV}.so ${libdir}/libelf.so.*"
132FILES:libasm = "${libdir}/libasm-${PV}.so ${libdir}/libasm.so.*"
133FILES:libdw = "${libdir}/libdw-${PV}.so ${libdir}/libdw.so.* ${libdir}/elfutils/lib*"
134FILES:libdebuginfod = "${libdir}/libdebuginfod-${PV}.so ${libdir}/libdebuginfod.so.*"
135# Some packages have the version preceeding the .so instead properly
136# versioned .so.<version>, so we need to reorder and repackage.
137#FILES:${PN} += "${libdir}/*-${PV}.so ${base_libdir}/*-${PV}.so"
138#FILES_SOLIBSDEV = "${libdir}/libasm.so ${libdir}/libdw.so ${libdir}/libelf.so"
139
140# The package contains symlinks that trip up insane
141INSANE_SKIP:${MLPREFIX}libdw = "dev-so"
142# The nlist binary in the tests uses explicitly minimal compiler flags
143INSANE_SKIP:${PN}-ptest += "ldflags"
144
145# avoid stripping some generated binaries otherwise some of the tests such as test-nlist,
146# run-strip-reloc.sh, run-strip-strmerge.sh and so on will fail
147INHIBIT_PACKAGE_STRIP_FILES = "\
148 ${PKGD}${PTEST_PATH}/tests/test-nlist \
149 ${PKGD}${PTEST_PATH}/tests/elfstrmerge \
150 ${PKGD}${PTEST_PATH}/tests/backtrace-child \
151 ${PKGD}${PTEST_PATH}/tests/backtrace-data \
152 ${PKGD}${PTEST_PATH}/tests/backtrace-dwarf \
153 ${PKGD}${PTEST_PATH}/tests/deleted \
154 ${PKGD}${PTEST_PATH}/tests/dwfllines \
155 ${PKGD}${PTEST_PATH}/src/strip \
156 ${PKGD}${PTEST_PATH}/src/addr2line \
157 ${PKGD}${PTEST_PATH}/src/elfcmp \
158 ${PKGD}${PTEST_PATH}/src/objdump \
159 ${PKGD}${PTEST_PATH}/src/readelf \
160 ${PKGD}${PTEST_PATH}/src/nm \
161 ${PKGD}${PTEST_PATH}/src/elflint \
162 ${PKGD}${PTEST_PATH}/src/elfclassify \
163 ${PKGD}${PTEST_PATH}/src/stack \
164 ${PKGD}${PTEST_PATH}/src/unstrip \
165 ${PKGD}${PTEST_PATH}/libelf/libelf.so \
166 ${PKGD}${PTEST_PATH}/libdw/libdw.so \
167 ${PKGD}${PTEST_PATH}/libasm/libasm.so \
168 ${PKGD}${PTEST_PATH}/backends/libebl_i386.so \
169 ${PKGD}${PTEST_PATH}/backends/libebl_x86_64.so \
170"
171
172PRIVATE_LIBS:${PN}-ptest = "libdw.so.1 libelf.so.1 libasm.so.1 libdebuginfod.so.1"