1 |
commit: 6bc01acb15af728e31eb158c23e1e03a0ba31c85 |
2 |
Author: Stefan Strogin <steils <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 30 01:26:50 2019 +0000 |
4 |
Commit: Stefan Strogin <steils <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 30 01:31:38 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bc01acb |
7 |
|
8 |
sys-kernel/kpatch: add patch to disable DWARF compression |
9 |
|
10 |
Fixes https://github.com/dynup/kpatch/issues/877 |
11 |
|
12 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
13 |
Signed-off-by: Stefan Strogin <steils <AT> gentoo.org> |
14 |
|
15 |
.../kpatch-0.7.1-disable-dwarf-compression.patch | 32 ++++++++++++++++++++++ |
16 |
sys-kernel/kpatch/kpatch-0.7.1.ebuild | 2 ++ |
17 |
2 files changed, 34 insertions(+) |
18 |
|
19 |
diff --git a/sys-kernel/kpatch/files/kpatch-0.7.1-disable-dwarf-compression.patch b/sys-kernel/kpatch/files/kpatch-0.7.1-disable-dwarf-compression.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..85f2862df54 |
22 |
--- /dev/null |
23 |
+++ b/sys-kernel/kpatch/files/kpatch-0.7.1-disable-dwarf-compression.patch |
24 |
@@ -0,0 +1,32 @@ |
25 |
+From fe6e3f51bfe17945205445904c1fc602008ac7dd Mon Sep 17 00:00:00 2001 |
26 |
+From: Stefan Strogin <steils@g.o> |
27 |
+Date: Mon, 29 Jul 2019 13:20:20 +0300 |
28 |
+Subject: [PATCH] create-diff-object: disable DWARF compression explicitly |
29 |
+ |
30 |
+On some systems the linker produces compressed debug sections by |
31 |
+default. It is not supported by create-diff-object for now. |
32 |
+ |
33 |
+Fixes: #877 |
34 |
+ |
35 |
+Upstream-Status: Submitted [https://github.com/dynup/kpatch/pull/1011] |
36 |
+Signed-off-by: Stefan Strogin <steils@g.o> |
37 |
+--- |
38 |
+ kpatch-build/kpatch-build | 2 +- |
39 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
40 |
+ |
41 |
+diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build |
42 |
+index 9ef3809..365655c 100755 |
43 |
+--- a/kpatch-build/kpatch-build |
44 |
++++ b/kpatch-build/kpatch-build |
45 |
+@@ -748,7 +748,7 @@ if [[ "$ARCH" = "ppc64le" ]]; then |
46 |
+ ARCH_KCFLAGS="-mcmodel=large -fplugin=$PLUGINDIR/ppc64le-plugin.so" |
47 |
+ fi |
48 |
+ |
49 |
+-export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections $ARCH_KCFLAGS" |
50 |
++export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections -gz=none $ARCH_KCFLAGS" |
51 |
+ |
52 |
+ echo "Reading special section data" |
53 |
+ find_special_section_data |
54 |
+-- |
55 |
+2.22.0 |
56 |
+ |
57 |
|
58 |
diff --git a/sys-kernel/kpatch/kpatch-0.7.1.ebuild b/sys-kernel/kpatch/kpatch-0.7.1.ebuild |
59 |
index dd2b30d0b35..9aa8f4e44e1 100644 |
60 |
--- a/sys-kernel/kpatch/kpatch-0.7.1.ebuild |
61 |
+++ b/sys-kernel/kpatch/kpatch-0.7.1.ebuild |
62 |
@@ -33,6 +33,8 @@ DEPEND=" |
63 |
test? ( dev-util/shellcheck-bin ) |
64 |
" |
65 |
|
66 |
+PATCHES=( "${FILESDIR}"/${P}-disable-dwarf-compression.patch ) |
67 |
+ |
68 |
pkg_setup() { |
69 |
if use kmod; then |
70 |
if kernel_is gt 3 9 0; then |