elfutils: split libdebuginfod into its own package
PATCH v3 1/3 elfutils: split libdebuginfod into its own package
Added package options for libdebuginfod.
Added GPLv2+ | LGPLv3+ license for libdebuginfod with reference to https://sourceware.org/git/?p=elfutils.git;a=blob;f=debuginfod/debuginfod-client.c;h=de26af5bb26e187b51d9ea00d5826e199a96d01a;hb=HEAD
[YOCTO #13807]
---
v3:
added YOCTO bug tag
added LICENSE header
changed upstream status
edited typo error of recipe version from 0.181 to 0.182
meta/recipes-devtools/elfutils/elfutils_0.182.bb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
meta/recipes-devtools/elfutils/elfutils_0.182.bb +7 -3
@@ -1,8 +1,10 @@ SUMMARY = "Utilities and libraries for handling compiled object files" HOMEPAGE = "https://sourceware.org/elfutils" SECTION = "base" -LICENSE = "GPLv2 & LGPLv3+ & GPLv3+" -LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" +LICENSE = "GPLv2 & GPLv2+ & LGPLv3+ & GPLv3+" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ + file://${WORKDIR}/elfutils-0.182/debuginfod/debuginfod-client.c;beginline=4;endline=29;md5=f758740623cdf457eb76957eb50f0422 \ + " DEPENDS = "zlib virtual/libintl" DEPENDS_append_libc-musl = " argp-standalone fts musl-obstack " # The Debian patches below are from:
@@ -91,7 +93,7 @@ EXTRA_OEMAKE_class-nativesdk = "" BBCLASSEXTEND = "native nativesdk" # Package utilities separately -PACKAGES =+ "${PN}-binutils libelf libasm libdw" +PACKAGES =+ "${PN}-binutils libelf libasm libdw libdebuginfod" # shared libraries are licensed GPLv2 or GPLv3+, binaries GPLv3+ # according to NEWS file:
@@ -103,6 +105,7 @@ LICENSE_${PN} = "GPLv3+" LICENSE_libelf = "GPLv2 | LGPLv3+" LICENSE_libasm = "GPLv2 | LGPLv3+" LICENSE_libdw = "GPLv2 | LGPLv3+" +LICENSE_libdebuginfod = "GPLv2+ | LGPLv3+" FILES_${PN}-binutils = "\ ${bindir}/eu-addr2line \
@@ -115,6 +118,7 @@ FILES_${PN}-binutils = "\ FILES_libelf = "${libdir}/libelf-${PV}.so ${libdir}/libelf.so.*" FILES_libasm = "${libdir}/libasm-${PV}.so ${libdir}/libasm.so.*" FILES_libdw = "${libdir}/libdw-${PV}.so ${libdir}/libdw.so.* ${libdir}/elfutils/lib*" +FILES_libdebuginfod = "${libdir}/libdebuginfod-${PV}.so ${libdir}/libdebuginfod.so.*" # Some packages have the version preceeding the .so instead properly # versioned .so.<version>, so we need to reorder and repackage. #FILES_${PN} += "${libdir}/*-${PV}.so ${base_libdir}/*-${PV}.so"
Signature · 1 line
2.17.1
PATCH v3 2/3 elfutils: add PACKAGECONFIG for debuginfod
removed the config option that disabled debuginfod and enabled it with PACKAGECONFIG
[YOCTO #13807]
--- meta/recipes-devtools/elfutils/elfutils_0.182.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/elfutils/elfutils_0.182.bb +2 -1
@@ -34,7 +34,7 @@ SRC_URI[sha256sum] = "ecc406914edf335f0b7fc084ebe6c460c4d6d5175bfdd6688c1c78d914 inherit autotools gettext ptest pkgconfig -EXTRA_OECONF = "--program-prefix=eu- --disable-debuginfod" +EXTRA_OECONF = "--program-prefix=eu-" DEPENDS_BZIP2 = "bzip2-replacement-native" DEPENDS_BZIP2_class-target = "bzip2"
@@ -43,6 +43,7 @@ PACKAGECONFIG ??= "" PACKAGECONFIG[bzip2] = "--with-bzlib,--without-bzlib,${DEPENDS_BZIP2}" PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz" PACKAGECONFIG[libdebuginfod] = "--enable-libdebuginfod,--disable-libdebuginfod,curl" +PACKAGECONFIG[debuginfod] = "--enable-debuginfod,--disable-debuginfod,libarchive sqlite3 libmicrohttpd" RDEPENDS_${PN}-ptest += "libasm libelf bash make coreutils ${PN}-binutils"
Signature · 1 line
2.17.1
PATCH v3 3/3 elfutils: add support for ipkg
In reply to Dorindadebuginfod scanner 0.182 could only support RPM and scan .debs, it can now scan .ipk
[YOCTO #13807]
--- .../elfutils/elfutils_0.182.bb | 1 + ...d-support-for-ipkg-to-debuginfod.cxx.patch | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 meta/recipes-devtools/elfutils/files/0001-add-support-for-ipkg-to-debuginfod.cxx.patch
meta/recipes-devtools/elfutils/elfutils_0.182.bb +1 -0
@@ -22,6 +22,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \ file://run-ptest \ file://ptest.patch \ file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \ + file://0001-add-support-for-ipkg-to-debuginfod.cxx.patch \ " SRC_URI_append_libc-musl = " \ file://0001-musl-obstack-fts.patch \
meta/recipes-devtools/elfutils/files/0001-add-support-for-ipkg-to-debuginfod.cxx.patch new file +32 -0
@@ -0,0 +1,32 @@ +From b647d1df55c20772a9cc7ce96fcf323c500481bf Mon Sep 17 00:00:00 2001 +From: dorindabassey <[email protected]> +Date: Sat, 19 Dec 2020 01:11:46 +0100 +Subject: [PATCH] add support for ipkg to debuginfod.cxx + +added support for ipkg to the debuginfod scanner. 0.182 only supports RPM and scan .debs, with this patch, debuginfod scanner would be able to scan .ipk + +Upstream-status: Submitted [https://sourceware.org/pipermail/elfutils-devel/2020q4/003357.html] + +Signed-off-by: dorindabassey <[email protected]> +--- + debuginfod/debuginfod.cxx | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx +index 5621030..cc78c93 100644 +--- a/debuginfod/debuginfod.cxx ++++ b/debuginfod/debuginfod.cxx +@@ -442,11 +442,13 @@ parse_opt (int key, char *arg, + { + scan_archives[".deb"]="dpkg-deb --fsys-tarfile"; + scan_archives[".ddeb"]="dpkg-deb --fsys-tarfile"; ++ scan_archives[".ipk"]="dpkg-deb --fsys-tarfile"; + } + else + { + scan_archives[".deb"]="(bsdtar -O -x -f - data.tar.xz)<"; + scan_archives[".ddeb"]="(bsdtar -O -x -f - data.tar.xz)<"; ++ scan_archives[".ipk"]="(bsdtar -O -x -f - data.tar.xz)<"; + } + // .udeb too? + break;
Signature · 1 line
2.17.1
Quoted 24 lines · Dorinda
Added package options for libdebuginfod.
Added GPLv2+ | LGPLv3+ license for libdebuginfod with reference to https://sourceware.org/git/?p=elfutils.git;a=blob;f=debuginfod/debuginfod-client.c;h=de26af5bb26e187b51d9ea00d5826e199a96d01a;hb=HEAD[YOCTO #13807]
Signed-off-by Dorinda Bassey <[email protected]>---
v3:
added YOCTO bug tag
added LICENSE header
changed upstream status
edited typo error of recipe version from 0.181 to 0.182meta/recipes-devtools/elfutils/elfutils_0.182.bb | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)meta/recipes-devtools/elfutils/elfutils_0.182.bb +0
-0@@ -1,8 +1,10 @@SUMMARY = "Utilities and libraries for handling compiled object files" HOMEPAGE = "https://sourceware.org/elfutils"
SECTION = "base"
meta/recipes-devtools/elfutils/elfutils_0.182.bb line 7
Quoted 6 lines
meta/recipes-devtools/elfutils/elfutils_0.182.bb +4
-2-LICENSE = "GPLv2 & LGPLv3+ & GPLv3+" -LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" +LICENSE = "GPLv2 & GPLv2+ & LGPLv3+ & GPLv3+" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ + file://${WORKDIR}/elfutils-0.182/debuginfod/debuginfod-client.c;beginline=4;endline=29;md5=f758740623cdf457eb76957eb50f0422 \ + "
I think the above might just be able to be:
file://debuginfod/debuginfod-client.c
since the files are relative to ${S} if I remember correctly?
Cheers,
Richard