From f586210c4cd0d10dac2ee271f724c0ed67904ebc Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 16 Aug 2014 12:58:57 +0200 Subject: [PATCH] 0.159-10 Add elfutils-0.159-ko_xz.patch --- elfutils-0.159-ko_xz.patch | 24 ++++++++++++++++++++++++ elfutils.spec | 7 ++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 elfutils-0.159-ko_xz.patch diff --git a/elfutils-0.159-ko_xz.patch b/elfutils-0.159-ko_xz.patch new file mode 100644 index 0000000..f5795f2 --- /dev/null +++ b/elfutils-0.159-ko_xz.patch @@ -0,0 +1,24 @@ +Subject: [PATCH] libdwfl: Handle LZMA .ko.xz compressed kernel modules. + +Linux kernel modules can not just be compressed with gz and bz2, but also +with xz. + +Signed-off-by: Mark Wielaard + +diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c +index 1ad7d2f..e4065d8 100644 +--- a/libdwfl/linux-kernel-modules.c ++++ b/libdwfl/linux-kernel-modules.c +@@ -302,6 +302,9 @@ check_suffix (const FTSENT *f, size_t namelen) + #if USE_BZLIB + TRY (".ko.bz2"); + #endif ++#if USE_LZMA ++ TRY (".ko.xz"); ++#endif + + return 0; + +-- +1.8.3.1 + diff --git a/elfutils.spec b/elfutils.spec index a0e73a9..750c9dd 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,7 +1,7 @@ Name: elfutils Summary: A collection of utilities and DSOs to handle compiled objects Version: 0.159 -%global baserelease 9 +%global baserelease 10 URL: https://fedorahosted.org/elfutils/ %global source_url http://fedorahosted.org/releases/e/l/elfutils/%{version}/ License: GPLv3+ and (GPLv2+ or LGPLv3+) @@ -51,6 +51,7 @@ Patch4: elfutils-0.159-aarch64-bool-ret.patch Patch5: elfutils-0.159-elf-h.patch Patch6: elfutils-0.159-ppc64le-elfv2-abi.patch Patch7: elfutils-0.159-report_r_debug.patch +Patch8: elfutils-0.159-ko_xz.patch %if !%{compat} Release: %{baserelease}%{?dist} @@ -219,6 +220,7 @@ sed -i.scanf-m -e 's/%m/%a/g' src/addr2line.c tests/line2addr.c %patch5 -p1 -b .elf-h %patch6 -p1 -b .ppc64le-elfv2-abi %patch7 -p1 -b .report_r_debug +%patch8 -p1 -b .ko_xz find . -name \*.sh ! -perm -0100 -print | xargs chmod +x @@ -347,6 +349,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/libelf.a %changelog +* Sat Aug 16 2014 Mark Wielaard - 0.159-10 +- Add elfutils-0.159-ko_xz.patch + * Sat Aug 16 2014 Fedora Release Engineering - 0.159-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild