From 7c086093701af18d65cef4d55f7f116654e79c264195db6c847386e0d9bdd34b Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Tue, 17 May 2011 13:25:00 +0000 Subject: [PATCH 1/2] Updating link to change in openSUSE:Factory/kexec-tools revision 81.0 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=39d937e42a7778c563361aa188ad33e9 --- kexec-tools.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kexec-tools.spec b/kexec-tools.spec index 8c375c7..434c4cb 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -1,7 +1,7 @@ # -# spec file for package kexec-tools (Version 2.0.2) +# spec file for package kexec-tools # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,7 +29,7 @@ PreReq: %insserv_prereq %fillup_prereq AutoReqProv: on Summary: Tools for fast kernel loading Version: 2.0.2 -Release: 1 +Release: 5 Source: %{name}-%{version}.tar.bz2 Source1: kexec-bootloader Source2: kexec-bootloader.8.txt From 6877fb06ae47d27b29876170353d7a90819b42b22edf7a2f0fd2fbf10a938579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Tesa=C5=99=C3=ADk?= Date: Mon, 11 Jul 2011 06:32:40 +0000 Subject: [PATCH 2/2] Accepting request 76008 from home:msmeissn:branches:Kernel:kdump fix build on ppc OBS-URL: https://build.opensuse.org/request/show/76008 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=15 --- kexec-fix-strncat.patch | 24 ++++++++++++++++++++++++ kexec-tools.changes | 5 +++++ kexec-tools.spec | 2 ++ 3 files changed, 31 insertions(+) create mode 100644 kexec-fix-strncat.patch diff --git a/kexec-fix-strncat.patch b/kexec-fix-strncat.patch new file mode 100644 index 0000000..73de80e --- /dev/null +++ b/kexec-fix-strncat.patch @@ -0,0 +1,24 @@ +Index: kexec-tools-2.0.2/kexec/arch/ppc64/fs2dt.c +=================================================================== +--- kexec-tools-2.0.2.orig/kexec/arch/ppc64/fs2dt.c ++++ kexec-tools-2.0.2/kexec/arch/ppc64/fs2dt.c +@@ -594,7 +594,7 @@ static void putnode(void) + * pseries/hvcterminal is supported. + */ + strcpy(filename, pathname); +- strncat(filename, "linux,stdout-path", MAXPATH); ++ strncat(filename, "linux,stdout-path", MAXPATH-strlen(filename)-1); + fd = open(filename, O_RDONLY); + if (fd == -1) { + printf("Unable to find %s, printing from purgatory is diabled\n", +@@ -618,8 +618,8 @@ static void putnode(void) + read(fd, buff, statbuf.st_size); + close(fd); + strncpy(filename, "/proc/device-tree/", MAXPATH); +- strncat(filename, buff, MAXPATH); +- strncat(filename, "/compatible", MAXPATH); ++ strncat(filename, buff, MAXPATH-strlen(filename)-1); ++ strncat(filename, "/compatible", MAXPATH-strlen(filename)-1); + fd = open(filename, O_RDONLY); + if (fd == -1) { + printf("Unable to find %s printing from purgatory is diabled\n", diff --git a/kexec-tools.changes b/kexec-tools.changes index 5b3eb22..925e3f8 100644 --- a/kexec-tools.changes +++ b/kexec-tools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jul 10 23:48:14 CEST 2011 - meissner@suse.de + +- fixed strncat sizse argument on ppc + ------------------------------------------------------------------- Tue May 17 11:12:54 CEST 2011 - jslaby@suse.de diff --git a/kexec-tools.spec b/kexec-tools.spec index 434c4cb..b90ca1a 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -38,6 +38,7 @@ Source4: %{name}-%{version}-rpmlintrc Patch0: %{name}-no-vga-output.diff Patch1: %{name}-xen-static.diff Patch2: gcc-no-undefined-flag-fix.patch +Patch3: kexec-fix-strncat.patch Url: ftp://kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build #!BuildIgnore: fop @@ -72,6 +73,7 @@ Authors: %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build # disable as-needed