[packages/kernel-tools] - added binutils2.35 patch (adjust Makefile for nm output change); release 3

qboosh qboosh at pld-linux.org
Mon Jul 27 17:13:08 CEST 2020


commit c66e687fb4ac86cf61c4574bf5aba6b7006dcfa7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jul 27 17:14:55 2020 +0200

    - added binutils2.35 patch (adjust Makefile for nm output change); release 3

 kernel-tools-binutils2.35.patch | 11 +++++++++++
 kernel-tools.spec               |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/kernel-tools.spec b/kernel-tools.spec
index 88dea12..7a9a041 100644
--- a/kernel-tools.spec
+++ b/kernel-tools.spec
@@ -25,7 +25,7 @@ Summary:	Assortment of tools for the Linux kernel
 Summary(pl.UTF-8):	Zestaw narzędzi dla jądra Linuksa
 Name:		kernel-tools
 Version:	%{basever}%{postver}
-Release:	2
+Release:	3
 License:	GPL v2
 Group:		Applications/System
 Source0:	https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{basever}.tar.xz
@@ -43,6 +43,7 @@ Patch4:		%{name}-perf-gtk2.patch
 Patch5:		%{name}-bpf-hashmap-upstream.patch
 Patch6:		%{name}-bpf-hashmap.patch
 Patch7:		%{name}-usbip-nocommon.patch
+Patch8:		%{name}-binutils2.35.patch
 URL:		https://www.kernel.org/
 BuildRequires:	bison
 BuildRequires:	docutils
@@ -410,6 +411,7 @@ cd linux-%{basever}
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 %{__sed} -i -e '/^CFLAGS = /s/ -g / $(OPTFLAGS) /' tools/hv/Makefile
 %{__sed} -i -e '/^CFLAGS+=/s/ -O1 / $(OPTFLAGS) /' tools/thermal/tmon/Makefile
diff --git a/kernel-tools-binutils2.35.patch b/kernel-tools-binutils2.35.patch
new file mode 100644
index 0000000..a225bf3
--- /dev/null
+++ b/kernel-tools-binutils2.35.patch
@@ -0,0 +1,11 @@
+--- linux-5.7/tools/lib/traceevent/plugins/Makefile.orig	2020-06-01 01:49:15.000000000 +0200
++++ linux-5.7/tools/lib/traceevent/plugins/Makefile	2020-07-27 17:00:03.592989940 +0200
+@@ -197,7 +197,7 @@
+ 	xargs echo "U w W" | tr 'w ' 'W\n' | sort -u | xargs echo`;\
+ 	if [ "$$symbol_type" = "U W" ];then				\
+ 		(echo '{';                                              \
+-		$(NM) -u -D $1 | awk 'NF>1 {print "\t"$$2";"}' | sort -u;\
++		$(NM) -u -D $1 | awk 'NF>1 {gsub("@.*", "", $$2); print "\t"$$2";"}' | sort -u;\
+ 		echo '};';                                              \
+ 		) > $2;                                                 \
+ 	else                                                            \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel-tools.git/commitdiff/c66e687fb4ac86cf61c4574bf5aba6b7006dcfa7



More information about the pld-cvs-commit mailing list