Hello community,
here is the log from the commit of package libsmbios for openSUSE:Factory
checked in at Mon Mar 2 17:51:46 CET 2009.
--------
--- libsmbios/libsmbios.changes 2008-11-07 11:46:31.000000000 +0100
+++ /mounts/work_src_done/STABLE/libsmbios/libsmbios.changes 2009-03-02 17:15:24.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Mar 2 17:15:14 CET 2009 - crrodriguez@suse.de
+
+- fix build with GCC 4.4
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
New:
----
libsmbios-2.0.2-gcc44.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libsmbios.spec ++++++
--- /var/tmp/diff_new_pack.z13623/_old 2009-03-02 17:51:32.000000000 +0100
+++ /var/tmp/diff_new_pack.z13623/_new 2009-03-02 17:51:32.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package libsmbios (Version MACRO)
#
-# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2009 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
@@ -37,10 +37,11 @@
%define release_version %{major}.%{minor}.%{sub}%{extralevel}
%define LIBNAME libsmbios2
Version: %{major}.%{minor}.%{sub}
-Release: 10
+Release: 12
License: BSD 3-Clause; GPL v2 or later; Other uncritical OpenSource License
Source: %{name}-%{version}.tar.bz2
Patch0: libsmbios-fix-compiler_warning_cgcc.diff
+Patch1: libsmbios-2.0.2-gcc44.patch
Summary: Open BIOS parsing libs
Group: System/Management
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -165,13 +166,14 @@
Michael Brown
%prep
-%setup
+%setup -q
%patch0
+%patch1
find . -type d -exec chmod -f 755 {} \;
find doc include libraries bin-supported bin-unsupported build cppunit -type f -exec chmod -f 644 {} \;
%build
-%configure
+%configure --disable-static --with-pic
make %{?_smp_mflags} EXTRA_CXXFLAGS="%{optflags}" EXTRA_CFLAGS="%{optflags}" -e RELEASE_MAJOR=%{major} RELEASE_MINOR=%{minor} RELEASE_SUBLEVEL=%{sub} RELEASE_EXTRALEVEL=%{extralevel}
%if %{build_docs}
make -e RELEASE_MAJOR=%{major} RELEASE_MINOR=%{minor} RELEASE_SUBLEVEL=%{sub} RELEASE_EXTRALEVEL=%{extralevel} doxygen
@@ -181,15 +183,14 @@
%endif
%install
-[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}/usr/include
cp -a include/smbios %{buildroot}/usr/include/
-rm -f %{buildroot}/%{_libdir}/lib*.la
-rm -f %{buildroot}/%{_libdir}/lib*.a
+rm -vf %{buildroot}/%{_libdir}/lib*.la
+rm -fv %{buildroot}/%{_libdir}/lib*.a
%clean
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
+rm -rf ${RPM_BUILD_ROOT}
%if 0%{?suse_version} < 1100
%post libs -p /sbin/ldconfig
@@ -263,6 +264,8 @@
%endif
%changelog
+* Mon Mar 02 2009 crrodriguez@suse.de
+- fix build with GCC 4.4
* Fri Nov 07 2008 dkukawka@suse.de
- fixed spec:
- added Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*) for
++++++ libsmbios-2.0.2-gcc44.patch ++++++
Index: libraries/cmos/CmosRW.cpp
===================================================================
--- libraries/cmos/CmosRW.cpp.orig 2008-02-13 20:12:43.000000000 +0100
+++ libraries/cmos/CmosRW.cpp 2009-03-02 17:10:07.000000000 +0100
@@ -19,6 +19,7 @@
// compat header should always be first header if including system headers
#define LIBSMBIOS_SOURCE
#include "smbios/compat.h"
+#include