From 1401a1f5f10109e117fd8db68f46cb06728011ec6bdff0fe412677bbd5c450d0 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 10 Feb 2010 11:24:02 +0000 Subject: [PATCH] - Fix uninitialized variable. OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=8 --- elfutils-uninitialized.diff | 13 +++++++++++++ elfutils.changes | 11 +++++++++++ elfutils.spec | 25 ++++++++++++++----------- 3 files changed, 38 insertions(+), 11 deletions(-) create mode 100644 elfutils-uninitialized.diff diff --git a/elfutils-uninitialized.diff b/elfutils-uninitialized.diff new file mode 100644 index 0000000..4271c15 --- /dev/null +++ b/elfutils-uninitialized.diff @@ -0,0 +1,13 @@ +--- ./libdwfl/linux-kernel-modules.c.orig 2010-02-10 12:12:03.000000000 +0100 ++++ ./libdwfl/linux-kernel-modules.c 2010-02-10 12:14:58.000000000 +0100 +@@ -577,8 +577,8 @@ + int + dwfl_linux_kernel_report_kernel (Dwfl *dwfl) + { +- Dwarf_Addr start; +- Dwarf_Addr end; ++ Dwarf_Addr start = 0; ++ Dwarf_Addr end = 0; + inline Dwfl_Module *report (void) + { + return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME, start, end); diff --git a/elfutils.changes b/elfutils.changes index 42b1f1a..f7d392a 100644 --- a/elfutils.changes +++ b/elfutils.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Feb 10 12:21:51 CET 2010 - rguenther@suse.de + +- Fix uninitialized variable. + +------------------------------------------------------------------- +Sat Dec 12 18:13:13 CET 2009 - jengelh@medozas.de + +- Enable parallel building +- add baselibs.conf as a source + ------------------------------------------------------------------- Thu Aug 20 13:13:21 CEST 2009 - rguenther@suse.de diff --git a/elfutils.spec b/elfutils.spec index 669da11..58842b0 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -19,13 +19,14 @@ Name: elfutils -License: GPL v2 or later +License: GPLv2+ Version: 0.142 -Release: 2 +Release: 3 Summary: Higher-level library to access ELF Group: System/Libraries Url: http://elfutils.fedorahosted.org Source: elfutils-%{version}-no-osl.tar.bz2 +Source2: baselibs.conf Patch: elfutils-portability.patch Patch1: elfutils-robustify.patch Patch3: elfutils-no-po-test-build.diff @@ -37,6 +38,7 @@ Patch11: build.diff Patch12: elfutils-old-scanf-fix.diff Patch13: elfutils-suse-10.3-fixes.diff Patch20: elfutils-0.137-dwarf-header-check-fix.diff +Patch21: elfutils-uninitialized.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -52,7 +54,7 @@ Authors: %package -n libasm1 Summary: A collection of utilities and DSOs to handle compiled objects Group: Development/Tools/Other -License: GPL v2 only ; GPL v2 or later ; LGPL v2.1 or later +License: GPLv2 ; GPLv2+ ; LGPLv2.1+ %description -n libasm1 Elfutils is a collection of utilities, including ld (a linker), nm (for @@ -73,7 +75,7 @@ Authors: %package -n libasm-devel Summary: A collection of utilities and DSOs to handle compiled objects Group: Development/Tools/Other -License: GPL v2 or later +License: GPLv2+ Requires: glibc-devel, libasm1 = %{version} %description -n libasm-devel @@ -95,7 +97,7 @@ Authors: %package -n libebl1 Summary: A collection of utilities and DSOs to handle compiled objects Group: Development/Tools/Other -License: GPL v2 or later +License: GPLv2+ Provides: libebl = %{version} Obsoletes: libebl < %{version} @@ -118,7 +120,7 @@ Authors: %package -n libebl-devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ -License: GPL v2 or later +License: GPLv2+ Requires: glibc-devel, libebl1 = %{version}, libdw-devel = %{version} %description -n libebl-devel @@ -134,7 +136,7 @@ Authors: %package -n libelf1 Summary: Library to read and write ELF files Group: System/Libraries -License: GPL v2 or later +License: GPLv2+ %description -n libelf1 This package provide a high-level library to read and write ELF files. @@ -149,7 +151,7 @@ Authors: %package -n libelf-devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ -License: GPL v2 or later +License: GPLv2+ Requires: glibc-devel, libelf1 = %{version} Conflicts: libelf0-devel @@ -162,7 +164,7 @@ to develop applications that require these. %package -n libdw1 Summary: Library to access DWARF debugging information Group: System/Libraries -License: GPL v2 or later +License: GPLv2+ %description -n libdw1 This package provide a high-level library to access the DWARF debugging @@ -177,7 +179,7 @@ Authors: %package -n libdw-devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ -License: GPL v2 or later +License: GPLv2+ Requires: glibc-devel, libdw1 = %{version} Requires: libelf-devel = %{version} @@ -209,11 +211,12 @@ Authors: %patch13 %endif %patch20 -p1 +%patch21 %build autoreconf -fi %configure --program-prefix=eu- -make +make %{?jobs:-j%jobs}; %install make DESTDIR=$RPM_BUILD_ROOT install