[libvpd] fix for gcc-4.7

Jiri Skala jskala at fedoraproject.org
Wed Jan 18 11:23:16 UTC 2012


commit ea856728941e42af112a0f62824c78986e618d74
Author: Jiri Skala <jskala at redhat.com>
Date:   Wed Jan 18 12:23:11 2012 +0100

    fix for gcc-4.7

 libvpd-2.1.3-gcc47.patch |   11 +++++++++++
 libvpd.spec              |   10 +++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/libvpd-2.1.3-gcc47.patch b/libvpd-2.1.3-gcc47.patch
new file mode 100644
index 0000000..e04e56f
--- /dev/null
+++ b/libvpd-2.1.3-gcc47.patch
@@ -0,0 +1,11 @@
+diff -up libvpd-2.1.3/src/helper_functions.cpp.gcc47 libvpd-2.1.3/src/helper_functions.cpp
+--- libvpd-2.1.3/src/helper_functions.cpp.gcc47	2012-01-18 10:50:11.367639050 +0100
++++ libvpd-2.1.3/src/helper_functions.cpp	2012-01-18 10:52:22.453423299 +0100
+@@ -24,6 +24,7 @@
+ #include <libvpd-2/helper_functions.hpp>
+ #include <cstdio>
+ #include <fcntl.h>
++#include <unistd.h>
+ #include <cstdlib>
+ #include <cstring>
+ #include <fstream>
diff --git a/libvpd.spec b/libvpd.spec
index 2b6895a..b423b71 100644
--- a/libvpd.spec
+++ b/libvpd.spec
@@ -3,13 +3,16 @@
 
 Name:		%{name}
 Version:	%{version}
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	VPD Database access library for lsvpd
 
 Group:		System Environment/Libraries
 License:	LGPLv2+
 URL:		http://linux-diag.sf.net/Lsvpd.html
 Source:		http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
+
+Patch1: libvpd-2.1.3-gcc47.patch
+
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	sqlite-devel zlib-devel libstdc++-devel libtool
@@ -30,6 +33,8 @@ Contains header files for building with libvpd.
 %prep
 %setup -q
 
+%patch1 -p1 -b .gcc47
+
 %build
 ./bootstrap.sh
 %configure --disable-static
@@ -63,6 +68,9 @@ Contains header files for building with libvpd.
 %{_libdir}/pkgconfig/libvpd_cxx-2.pc
 
 %changelog
+* Wed Jan 18 2012 Jiri Skala <jskala at redhat.com> 2.1.3-4
+- fix for gcc-4.7
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list