public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/, sys-kernel/kpatch/files/
@ 2019-07-30  1:32 Stefan Strogin
  0 siblings, 0 replies; only message in thread
From: Stefan Strogin @ 2019-07-30  1:32 UTC (permalink / raw
  To: gentoo-commits

commit:     6bc01acb15af728e31eb158c23e1e03a0ba31c85
Author:     Stefan Strogin <steils <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 30 01:26:50 2019 +0000
Commit:     Stefan Strogin <steils <AT> gentoo <DOT> org>
CommitDate: Tue Jul 30 01:31:38 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bc01acb

sys-kernel/kpatch: add patch to disable DWARF compression

Fixes https://github.com/dynup/kpatch/issues/877

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>

 .../kpatch-0.7.1-disable-dwarf-compression.patch   | 32 ++++++++++++++++++++++
 sys-kernel/kpatch/kpatch-0.7.1.ebuild              |  2 ++
 2 files changed, 34 insertions(+)

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
new file mode 100644
index 00000000000..85f2862df54
--- /dev/null
+++ b/sys-kernel/kpatch/files/kpatch-0.7.1-disable-dwarf-compression.patch
@@ -0,0 +1,32 @@
+From fe6e3f51bfe17945205445904c1fc602008ac7dd Mon Sep 17 00:00:00 2001
+From: Stefan Strogin <steils@gentoo.org>
+Date: Mon, 29 Jul 2019 13:20:20 +0300
+Subject: [PATCH] create-diff-object: disable DWARF compression explicitly
+
+On some systems the linker produces compressed debug sections by
+default. It is not supported by create-diff-object for now.
+
+Fixes: #877
+
+Upstream-Status: Submitted [https://github.com/dynup/kpatch/pull/1011]
+Signed-off-by: Stefan Strogin <steils@gentoo.org>
+---
+ kpatch-build/kpatch-build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build
+index 9ef3809..365655c 100755
+--- a/kpatch-build/kpatch-build
++++ b/kpatch-build/kpatch-build
+@@ -748,7 +748,7 @@ if [[ "$ARCH" = "ppc64le" ]]; then
+ 	ARCH_KCFLAGS="-mcmodel=large -fplugin=$PLUGINDIR/ppc64le-plugin.so"
+ fi
+ 
+-export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections $ARCH_KCFLAGS"
++export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections -gz=none $ARCH_KCFLAGS"
+ 
+ echo "Reading special section data"
+ find_special_section_data
+-- 
+2.22.0
+

diff --git a/sys-kernel/kpatch/kpatch-0.7.1.ebuild b/sys-kernel/kpatch/kpatch-0.7.1.ebuild
index dd2b30d0b35..9aa8f4e44e1 100644
--- a/sys-kernel/kpatch/kpatch-0.7.1.ebuild
+++ b/sys-kernel/kpatch/kpatch-0.7.1.ebuild
@@ -33,6 +33,8 @@ DEPEND="
 	test? ( dev-util/shellcheck-bin )
 "
 
+PATCHES=( "${FILESDIR}"/${P}-disable-dwarf-compression.patch )
+
 pkg_setup() {
 	if use kmod; then
 		if kernel_is gt 3 9 0; then


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-30  1:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-30  1:32 [gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/, sys-kernel/kpatch/files/ Stefan Strogin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox