File crash-patch-gdb.patch of Package crash.1433
From: Petr Tesarik <ptesarik@suse.cz>
Subject: Apply custom patches to gdb
Patch-mainline: never
Enhance the crash specfile to allow applying custom patches.
Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
---
Makefile | 5 +++++
1 file changed, 5 insertions(+)
--- a/Makefile
+++ b/Makefile
@@ -247,6 +247,11 @@ gdb_unzip:
gdb_patch:
if [ -f ${GDB}.patch ] && [ -s ${GDB}.patch ]; then \
patch -p0 < ${GDB}.patch; 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}