OBS User unknown 2007-10-16 16:21:08 +00:00 committed by Git OBS Bridge
parent 265c7b514a
commit 375a85e880
5 changed files with 339 additions and 14 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eecbad56e94905f52b09fb869972e2a06d99e73d8b73290b58ee5e477fe5fe21
size 3299227

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d6b38f9b6c75252c2b4e73593007b1178f03eae0036f125488539ee46b6d27e6
size 3447619

297
libsmbios-fix-includes.diff Normal file
View File

@ -0,0 +1,297 @@
--- libsmbios-0.13.10/libraries/smbios/SmbiosStrategy.cpp 2007-08-21 08:16:20.000000000 +0200
+++ libsmbios-0.13.10/libraries/smbios/SmbiosStrategy.cpp 2007-10-12 14:21:03.000000000 +0200
@@ -21,6 +21,7 @@
#include "smbios/compat.h"
#include <sstream>
+#include <string.h>
#include "smbios/IMemory.h"
#include "SmbiosImpl.h"
--- libsmbios-0.13.10/libraries/smbios/SmbiosTable.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/smbios/SmbiosTable.cpp 2007-10-12 14:20:35.000000000 +0200
@@ -21,6 +21,7 @@
#include "smbios/compat.h"
#include <sstream>
+#include <string.h>
#include "SmbiosImpl.h"
--- libsmbios-0.13.10/libraries/memory/Memory_Linux.cpp 2007-08-21 08:16:20.000000000 +0200
+++ libsmbios-0.13.10/libraries/memory/Memory_Linux.cpp 2007-10-12 14:22:52.000000000 +0200
@@ -23,6 +23,7 @@
#include <errno.h>
#include <sys/mman.h> /* mmap */
#include <unistd.h> /* getpagesize */
+#include <string.h> /* memcpy etc. */
#include "MemoryImpl.h"
--- libsmbios-0.13.10/libraries/smbios/SmbiosWorkaround.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/smbios/SmbiosWorkaround.cpp 2007-10-12 14:24:48.000000000 +0200
@@ -26,6 +26,8 @@
// message.h should be included last.
#include "smbios/message.h"
+#include <string.h>
+
using namespace std;
// convenience function.
--- libsmbios-0.13.10/libraries/smbios/SmbiosStrategy_Linux.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/smbios/SmbiosStrategy_Linux.cpp 2007-10-12 14:25:44.000000000 +0200
@@ -21,6 +21,7 @@
#include "smbios/compat.h"
#include <sstream>
+#include <string.h>
#include "smbios/IMemory.h"
#include "SmbiosImpl.h"
--- libsmbios-0.13.10/libraries/smbios/SmbiosItem.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/smbios/SmbiosItem.cpp 2007-10-12 14:26:27.000000000 +0200
@@ -21,6 +21,7 @@
#include "smbios/compat.h"
#include <iomanip>
+#include <string.h>
#include "SmbiosImpl.h"
// message.h should be included last.
--- libsmbios-0.13.10/libraries/smi/Smi.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/smi/Smi.cpp 2007-10-12 14:27:07.000000000 +0200
@@ -21,6 +21,7 @@
#include "smbios/compat.h"
//#include <iostream>
+#include <string.h>
#include "SmiImpl.h"
#include "smbios/ISmbios.h"
--- libsmbios-0.13.10/libraries/memory/Memory.cpp 2007-08-21 08:16:20.000000000 +0200
+++ libsmbios-0.13.10/libraries/memory/Memory.cpp 2007-10-12 14:36:43.000000000 +0200
@@ -22,6 +22,7 @@
#include <errno.h>
#include <stdio.h>
+#include <string.h>
#include "MemoryImpl.h"
--- libsmbios-0.13.10/libraries/smi/Smi_Linux.cpp 2007-08-23 04:44:40.000000000 +0200
+++ libsmbios-0.13.10/libraries/smi/Smi_Linux.cpp 2007-10-12 15:16:02.000000000 +0200
@@ -21,6 +21,7 @@
#include "smbios/compat.h"
#include <sys/file.h>
+#include <string.h>
#include "SmiImpl.h"
--- libsmbios-0.13.10/libraries/systeminfo/IdByte.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/systeminfo/IdByte.cpp 2007-10-12 15:55:06.000000000 +0200
@@ -28,6 +28,8 @@
#include "SystemDetect.h"
#include "DellMagic.h"
+#include <string.h>
+
// should always be included last.
#include "smbios/message.h"
--- libsmbios-0.13.10/libraries/systeminfo/System.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/systeminfo/System.cpp 2007-10-12 16:15:15.000000000 +0200
@@ -31,6 +31,8 @@
#include "smbios/version.h"
+#include <string.h>
+
// this always should be included last
#include "smbios/message.h"
--- libsmbios-0.13.10/libraries/systeminfo/SystemDetect.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/systeminfo/SystemDetect.cpp 2007-10-12 16:16:32.000000000 +0200
@@ -30,6 +30,8 @@
// all our magic numbers
#include "DellMagic.h"
+#include <string.h>
+
// include this last.
#include "smbios/message.h"
--- libsmbios-0.13.10/libraries/token/TokenDA.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/token/TokenDA.cpp 2007-10-12 16:27:56.000000000 +0200
@@ -21,6 +21,7 @@
#include "smbios/compat.h"
#include <iomanip>
+#include <string.h>
#include "TokenImpl.h"
--- libsmbios-0.13.10/libraries/token/TokenD6.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/token/TokenD6.cpp 2007-10-12 16:28:41.000000000 +0200
@@ -22,6 +22,7 @@
#include <sstream>
#include <iomanip>
+#include <string.h>
#include "TokenImpl.h"
--- libsmbios-0.13.10/libraries/token/TokenD5.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/token/TokenD5.cpp 2007-10-12 16:29:31.000000000 +0200
@@ -22,6 +22,7 @@
#include <sstream>
#include <iomanip>
+#include <string.h>
#include "TokenImpl.h"
--- libsmbios-0.13.10/libraries/token/TokenD4.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/token/TokenD4.cpp 2007-10-12 16:30:10.000000000 +0200
@@ -21,6 +21,7 @@
#include "smbios/compat.h"
#include <iomanip>
+#include <string.h>
#include "TokenImpl.h"
--- libsmbios-0.13.10/libraries/xml_libxml2/SmbiosXml.cpp 2007-05-24 17:46:25.000000000 +0200
+++ libsmbios-0.13.10/libraries/xml_libxml2/SmbiosXml.cpp 2007-10-12 16:44:59.000000000 +0200
@@ -22,6 +22,7 @@
#include <sstream>
#include <iomanip>
+#include <string.h>
#include "SmbiosXmlImpl.h"
#include "StdSmbiosXml.h"
--- libsmbios-0.13.10/bin-supported/assetTag.cpp 2007-05-24 17:46:23.000000000 +0200
+++ libsmbios-0.13.10/bin-supported/assetTag.cpp 2007-10-12 16:46:11.000000000 +0200
@@ -23,6 +23,7 @@
#include <iostream>
#include <iomanip>
#include <stdlib.h>
+#include <string.h>
#include "smbios/IMemory.h" // only needed if you want to use fake input (memdump.dat)
#include "smbios/ICmosRW.h" // only needed if you want to use fake input (cmos.dat)
--- libsmbios-0.13.10/bin-supported/propertyTag.cpp 2007-05-24 17:46:23.000000000 +0200
+++ libsmbios-0.13.10/bin-supported/propertyTag.cpp 2007-10-12 17:51:17.000000000 +0200
@@ -22,7 +22,9 @@
#include <string>
#include <iostream>
#include <iomanip>
+
#include <stdlib.h>
+#include <string.h>
#include "smbios/ISmi.h" // only needed if you want to use fake input (memdump.dat)
#include "smbios/SystemInfo.h" // this is the main header to include to use the C interface
--- libsmbios-0.13.10/bin-supported/serviceTag.cpp 2007-05-24 17:46:23.000000000 +0200
+++ libsmbios-0.13.10/bin-supported/serviceTag.cpp 2007-10-12 17:52:30.000000000 +0200
@@ -22,7 +22,9 @@
#include <string>
#include <iostream>
#include <iomanip>
+
#include <stdlib.h>
+#include <string.h>
#include "smbios/IMemory.h" // only needed if you want to use fake input (memdump.dat)
#include "smbios/ICmosRW.h" // only needed if you want to use fake input (cmos.dat)
--- libsmbios-0.13.10/bin-supported/verifySmiPassword.cpp 2007-05-24 17:46:23.000000000 +0200
+++ libsmbios-0.13.10/bin-supported/verifySmiPassword.cpp 2007-10-12 19:22:43.000000000 +0200
@@ -20,6 +20,7 @@
#include "smbios/compat.h"
#include <iostream>
+#include <string.h>
#include "smbios/ISmi.h"
#include "smbios/SystemInfo.h"
--- libsmbios-0.13.10/bin-supported/dellLcdBrightness.cpp 2007-05-24 17:46:23.000000000 +0200
+++ libsmbios-0.13.10/bin-supported/dellLcdBrightness.cpp 2007-10-12 20:20:26.000000000 +0200
@@ -22,7 +22,9 @@
#include <string>
#include <iostream>
#include <iomanip>
+
#include <stdlib.h>
+#include <string.h>
#include "smbios/ISmi.h"
#include "smbios/IToken.h"
--- libsmbios-0.13.10/bin-supported/tokenCtl.cpp 2007-05-24 17:46:23.000000000 +0200
+++ libsmbios-0.13.10/bin-supported/tokenCtl.cpp 2007-10-12 20:21:33.000000000 +0200
@@ -35,7 +35,9 @@
#include <string>
#include <iostream>
#include <iomanip>
+
#include <stdlib.h>
+#include <string.h>
#include "smbios/IToken.h"
#include "smbios/IMemory.h"
--- libsmbios-0.13.10/bin-supported/dellBiosUpdate.cpp 2007-07-21 01:36:29.000000000 +0200
+++ libsmbios-0.13.10/bin-supported/dellBiosUpdate.cpp 2007-10-12 20:22:32.000000000 +0200
@@ -20,6 +20,7 @@
#include "smbios/compat.h"
#include <iostream>
+#include <string.h>
#include "smbios/DellRbu.h"
#include "smbios/SystemInfo.h"
--- libsmbios-0.13.10/bin-supported/dellWirelessCtl.cpp 2007-05-24 17:46:23.000000000 +0200
+++ libsmbios-0.13.10/bin-supported/dellWirelessCtl.cpp 2007-10-12 20:45:55.000000000 +0200
@@ -22,7 +22,9 @@
#include <string>
#include <iostream>
#include <iomanip>
+
#include <stdlib.h>
+#include <string.h>
#include "smbios/ISmi.h"
#include "smbios/IToken.h"
--- libsmbios-0.13.10/bin-unsupported/ascii2enUS_scancode.cpp 2007-05-24 17:46:23.000000000 +0200
+++ libsmbios-0.13.10/bin-unsupported/ascii2enUS_scancode.cpp 2007-10-12 22:12:51.000000000 +0200
@@ -21,6 +21,8 @@
#include <iostream>
+#include <string.h>
+
#include "smbios/ISmi.h"
#include "smbios/version.h"
#include "getopts.h"
--- libsmbios-0.13.10/bin-unsupported/dellLEDCtl.cpp 2007-05-24 17:46:23.000000000 +0200
+++ libsmbios-0.13.10/bin-unsupported/dellLEDCtl.cpp 2007-10-12 22:14:47.000000000 +0200
@@ -30,6 +30,7 @@
#include <sys/time.h>
#endif
#include <time.h>
+#include <string.h>
#include "smbios/ISmi.h"
#include "smbios/IToken.h"
--- libsmbios-0.13.10/bin-unsupported/smitest.cpp 2007-05-24 17:46:23.000000000 +0200
+++ libsmbios-0.13.10/bin-unsupported/smitest.cpp 2007-10-12 22:55:38.000000000 +0200
@@ -22,7 +22,9 @@
#include <string>
#include <iostream>
#include <iomanip>
+
#include <stdlib.h>
+#include <string.h>
#include "smbios/ISmi.h" // only needed if you want to use fake input (memdump.dat)
#include "getopts.h"

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue Oct 16 14:08:56 CEST 2007 - dkukawka@suse.de
- updated to new version 0.13.10:
- Fix a couple of failure-to-check-return on fopen. most were
unit-test code only, but two or three were in regular code.
- Add hinting to the memory class, so that it can intelligently
close /dev/mem file handle when it is not needed (which is
most of the time). it only leaves it open when it is scanning,
so speed is not impacted.
- new upstream
- added patches:
- libsmbios-fix-includes.diff: fix missing includes (needed to
build in beta tree)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed May 2 13:55:51 CEST 2007 - dkukawka@suse.de Wed May 2 13:55:51 CEST 2007 - dkukawka@suse.de

View File

@ -1,5 +1,5 @@
# #
# spec file for package libsmbios (Version 0.13.6) # spec file for package libsmbios (Version 0.13.10)
# #
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
@ -11,7 +11,7 @@
Name: libsmbios Name: libsmbios
BuildRequires: Xerces-c-devel cppunit-devel gcc-c++ glibc-devel libxml libxml2-devel tree BuildRequires: Xerces-c-devel cppunit-devel gcc-c++ glibc-devel libxml libxml2-devel tree
URL: http://linux.dell.com/libsmbios/main/index.html Url: http://linux.dell.com/libsmbios/main/index.html
%define _unpackaged_files_terminate_build 0 %define _unpackaged_files_terminate_build 0
%define build_static 0 %define build_static 0
# automatically determine if we should build xml # automatically determine if we should build xml
@ -29,10 +29,11 @@ URL: http://linux.dell.com/libsmbios/main/index.html
%define extralevel %{nil} %define extralevel %{nil}
%define release_name libsmbios %define release_name libsmbios
%define release_version %{major}.%{minor}.%{sub}%{extralevel} %define release_version %{major}.%{minor}.%{sub}%{extralevel}
Version: 0.13.6 Version: 0.13.10
Release: 1 Release: 1
License: BSD License and BSD-like, GNU General Public License (GPL) License: BSD 3-Clause; GPL v2 or later; Other uncritical OpenSource License
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Patch0: libsmbios-fix-includes.diff
Summary: Open BIOS parsing libs Summary: Open BIOS parsing libs
Group: System/Management Group: System/Management
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -52,21 +53,27 @@ Authors:
Summary: Libsmbios shared libraries. Summary: Libsmbios shared libraries.
Group: System/Management Group: System/Management
Provides: %name = %version Provides: %name = %version
%package -n libsmbiosxml-libs %package -n libsmbiosxml-libs
Summary: Libsmbiosxml shared libraries. Summary: Libsmbiosxml shared libraries.
Group: System/Management Group: System/Management
%package bin %package bin
Summary: The "supported" sample binaries that use libsmbios Summary: The "supported" sample binaries that use libsmbios
Group: System/Management Group: System/Management
%package unsupported-bin %package unsupported-bin
Summary: Unsupported sample binaries using libsmbios Summary: Unsupported sample binaries using libsmbios
Group: System/Management Group: System/Management
%package -n libsmbiosxml-bin %package -n libsmbiosxml-bin
Summary: sample binaries that use libsmbiosxml Summary: sample binaries that use libsmbiosxml
Group: System/Management Group: System/Management
%package devel %package devel
Summary: development headers and archives Summary: development headers and archives
Group: System/Management Group: System/Management
%package static %package static
Summary: Open BIOS parsing libs Summary: Open BIOS parsing libs
Group: System/Management Group: System/Management
@ -81,7 +88,6 @@ Authors:
-------- --------
Michael Brown Michael Brown
%description -n libsmbiosxml-libs %description -n libsmbiosxml-libs
Libsmbios is a library and utilites that can be used by client programs Libsmbios is a library and utilites that can be used by client programs
to get information from standard BIOS tables, such as the SMBIOS table. to get information from standard BIOS tables, such as the SMBIOS table.
@ -92,7 +98,6 @@ Authors:
-------- --------
Michael Brown Michael Brown
%description devel %description devel
Libsmbios is a library and utilites that can be used by client programs Libsmbios is a library and utilites that can be used by client programs
to get information from standard BIOS tables, such as the SMBIOS table. to get information from standard BIOS tables, such as the SMBIOS table.
@ -106,7 +111,6 @@ Authors:
-------- --------
Michael Brown Michael Brown
%description bin %description bin
Libsmbios is a library and utilites that can be used by client programs Libsmbios is a library and utilites that can be used by client programs
to get information from standard BIOS tables, such as the SMBIOS table. to get information from standard BIOS tables, such as the SMBIOS table.
@ -119,7 +123,6 @@ Authors:
-------- --------
Michael Brown Michael Brown
%description unsupported-bin %description unsupported-bin
Libsmbios is a library and utilites that can be used by client programs Libsmbios is a library and utilites that can be used by client programs
to get information from standard BIOS tables, such as the SMBIOS table. to get information from standard BIOS tables, such as the SMBIOS table.
@ -132,7 +135,6 @@ Authors:
-------- --------
Michael Brown Michael Brown
%description -n libsmbiosxml-bin %description -n libsmbiosxml-bin
Libsmbios is a library and utilites that can be used by client programs Libsmbios is a library and utilites that can be used by client programs
to get information from standard BIOS tables, such as the SMBIOS table. to get information from standard BIOS tables, such as the SMBIOS table.
@ -145,7 +147,6 @@ Authors:
-------- --------
Michael Brown Michael Brown
%description static %description static
Libsmbios is a library and utilites that can be used by client programs Libsmbios is a library and utilites that can be used by client programs
to get information from standard BIOS tables, such as the SMBIOS table. to get information from standard BIOS tables, such as the SMBIOS table.
@ -158,6 +159,7 @@ Authors:
%prep %prep
%setup %setup
%patch0 -p1
find . -type d -exec chmod -f 755 {} \; find . -type d -exec chmod -f 755 {} \;
find doc include libraries bin-supported bin-unsupported build cppunit -type f -exec chmod -f 644 {} \; find doc include libraries bin-supported bin-unsupported build cppunit -type f -exec chmod -f 644 {} \;
@ -251,8 +253,19 @@ ldconfig
%defattr(555,root,root) %defattr(555,root,root)
%{_bindir}/*S %{_bindir}/*S
%endif %endif
%changelog %changelog
* Tue Oct 16 2007 - dkukawka@suse.de
- updated to new version 0.13.10:
- Fix a couple of failure-to-check-return on fopen. most were
unit-test code only, but two or three were in regular code.
- Add hinting to the memory class, so that it can intelligently
close /dev/mem file handle when it is not needed (which is
most of the time). it only leaves it open when it is scanning,
so speed is not impacted.
- new upstream
- added patches:
- libsmbios-fix-includes.diff: fix missing includes (needed to
build in beta tree)
* Wed May 02 2007 - dkukawka@suse.de * Wed May 02 2007 - dkukawka@suse.de
- updated to new version 0.13.6: - updated to new version 0.13.6:
- critical bugfix to dellBiosUpdate utility to fix packet mode - critical bugfix to dellBiosUpdate utility to fix packet mode