From 0961b1bce8ec98806404c0746350a3d3b2b92849 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Thu, 10 Mar 2011 11:42:25 -0500 Subject: [PATCH] Fixing build break with purgatory --- kexec-tools-2.0.0-purgatory-makefile.patch | 20 ++++++++++++++++++++ kexec-tools.spec | 7 ++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 kexec-tools-2.0.0-purgatory-makefile.patch diff --git a/kexec-tools-2.0.0-purgatory-makefile.patch b/kexec-tools-2.0.0-purgatory-makefile.patch new file mode 100644 index 0000000..0c029c8 --- /dev/null +++ b/kexec-tools-2.0.0-purgatory-makefile.patch @@ -0,0 +1,20 @@ +diff -up kexec-tools-2.0.0/purgatory/Makefile.orig kexec-tools-2.0.0/purgatory/Makefile +--- kexec-tools-2.0.0/purgatory/Makefile.orig 2011-03-10 11:39:22.100799291 -0500 ++++ kexec-tools-2.0.0/purgatory/Makefile 2011-03-10 11:39:36.422736886 -0500 +@@ -55,14 +55,14 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATO + -I$(srcdir)/util_lib/include \ + -I$(shell $(CC) -print-file-name=include) + $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\ +- --no-undefined -nostartfiles -nostdlib -nodefaultlibs \ ++ -nostartfiles -nostdlib -nodefaultlibs \ + -e purgatory_start -r + + $(PURGATORY): $(PURGATORY_OBJS) + $(MKDIR) -p $(@D) + $(CC) $(LDFLAGS) -o $@ $^ + +-# $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) --no-undefined -e purgatory_start -r -o $@ $(PURGATORY_OBJS) $(UTIL_LIB) ++# $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) -e purgatory_start -r -o $@ $(PURGATORY_OBJS) $(UTIL_LIB) + + echo:: + @echo "PURGATORY_SRCS $(PURGATORY_SRCS)" diff --git a/kexec-tools.spec b/kexec-tools.spec index 3c9f205..9dfdecb 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -1,6 +1,6 @@ Name: kexec-tools Version: 2.0.0 -Release: 43%{?dist} +Release: 44%{?dist} License: GPLv2 Group: Applications/System Summary: The kexec/kdump userspace component. @@ -74,6 +74,7 @@ Patch602: kexec-tools-2.0.0-makedumpfile-dynamic-build.patch Patch603: kexec-tools-2.0.0-makedumpfile-2.6.32-utsname.patch Patch604: kexec-tools-2.0.0-makedumpfile-boption.patch Patch605: kexec-tools-2.0.0-makedumpfile-2.6.32-sparsemem.patch +Patch606: kexec-tools-2.0.0-purgatory-makefile.patch %description kexec-tools provides /sbin/kexec binary that facilitates a new @@ -96,6 +97,7 @@ tar -z -x -v -f %{SOURCE9} %patch603 -p1 %patch604 -p1 %patch605 -p1 +%patch606 -p1 tar -z -x -v -f %{SOURCE13} @@ -280,6 +282,9 @@ done %changelog +* Thu Mar 10 2011 Neil Horman - 2.0.0-44 +- Fix build break in purgatory makefile + * Thu Mar 10 2011 Neil Horman - 2.0.0-43 - Remove vestigual emitdms code and call from mkdumprd