0.159-10 Add elfutils-0.159-ko_xz.patch

This commit is contained in:
Mark Wielaard 2014-08-16 12:58:57 +02:00
parent 22078585e9
commit f586210c4c
2 changed files with 30 additions and 1 deletions

View File

@ -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 <mjw@redhat.com>
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

View File

@ -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 <mjw@redhat.com> - 0.159-10
- Add elfutils-0.159-ko_xz.patch
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.159-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild