File Apply-custom-patches-to-gdb.patch of Package crash
From: Petr Tesarik <ptesarik@suse.cz>
Date: Tue, 26 Mar 2019 08:32:12 +0100
Subject: Apply custom patches to gdb
Patch-mainline: 0001-make-emacs-mode-default.patch
References: none
Enhance the crash specfile to allow applying custom patches.
Update jeffm 17 Sep 2014: What used to be in the series file is now in
gdb-7.6-ppc64le-support.patch. We used to apply it unconditionally so
we'll continue to do so.
Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
---
Makefile | 5 +++++
1 file changed, 5 insertions(+)
--- a/Makefile
+++ b/Makefile
@@ -269,6 +269,11 @@ gdb_unzip:
gdb_patch:
if [ -f ${GDB}.patch ] && [ -s ${GDB}.patch ]; then \
patch -p0 < ${GDB}.patch; cp ${GDB}.patch ${GDB}; fi
+ if [ -f ${GDB}.series ]; then \
+ while read p; do \
+ patch -d ${GDB} -p1 -F0 < "$$p" ; \
+ done < ${GDB}.series ; \
+ fi
library: make_build_data ${OBJECT_FILES}
ar -rs ${PROGRAM}lib.a ${OBJECT_FILES}