rpms/bes/devel bes-3.6.2-includes.patch, NONE, 1.1 bes.spec, 1.12, 1.13

Caolan McNamara caolanm at fedoraproject.org
Wed Mar 4 09:26:21 UTC 2009


Author: caolanm

Update of /cvs/pkgs/rpms/bes/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28231

Modified Files:
	bes.spec 
Added Files:
	bes-3.6.2-includes.patch 
Log Message:
include cstdio for std::snprintf, etc.

bes-3.6.2-includes.patch:

--- NEW FILE bes-3.6.2-includes.patch ---
Only in bes-3.6.2: bes-3.6.2-includes.patch
diff -ru bes-3.6.2.orig/dispatch/BESUncompressGZ.cc bes-3.6.2/dispatch/BESUncompressGZ.cc
--- bes-3.6.2.orig/dispatch/BESUncompressGZ.cc	2009-03-03 22:51:45.000000000 +0000
+++ bes-3.6.2/dispatch/BESUncompressGZ.cc	2009-03-03 23:08:14.000000000 +0000
@@ -34,9 +34,11 @@
 
 #include <cstring>
 #include <cerrno>
+#include <cstdio>
 #include <sstream>
 
 using std::ostringstream ;
+using std::fopen ;
 
 #include "BESUncompressGZ.h"
 #include "BESInternalError.h"
diff -ru bes-3.6.2.orig/dispatch/BESUncompressZ.cc bes-3.6.2/dispatch/BESUncompressZ.cc
--- bes-3.6.2.orig/dispatch/BESUncompressZ.cc	2009-03-03 22:51:45.000000000 +0000
+++ bes-3.6.2/dispatch/BESUncompressZ.cc	2009-03-03 23:22:50.000000000 +0000
@@ -37,6 +37,7 @@
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#include <stdio.h>
 
 #include <cstring>
 #include <cerrno>
diff -ru bes-3.6.2.orig/dispatch/BESUtil.cc bes-3.6.2/dispatch/BESUtil.cc
--- bes-3.6.2.orig/dispatch/BESUtil.cc	2009-03-03 22:51:44.000000000 +0000
+++ bes-3.6.2/dispatch/BESUtil.cc	2009-03-04 08:30:15.000000000 +0000
@@ -42,12 +42,14 @@
 #include <cerrno>
 #include <cstring>
 #include <cstdlib>
+#include <cstdio>
 #include <sstream>
 #include <iostream>
 
 using std::istringstream ;
 using std::cout ;
 using std::endl ;
+using std::snprintf ;
 
 #include "BESUtil.h"
 #include "BESForbiddenError.h"
diff -ru bes-3.6.2.orig/ppt/PPTStreamBuf.cc bes-3.6.2/ppt/PPTStreamBuf.cc
--- bes-3.6.2.orig/ppt/PPTStreamBuf.cc	2009-03-03 22:51:45.000000000 +0000
+++ bes-3.6.2/ppt/PPTStreamBuf.cc	2009-03-04 09:08:05.000000000 +0000
@@ -33,6 +33,7 @@
 #include <sys/types.h>
 //#include <sys/uio.h>
 #include <unistd.h> // for sync
+#include <stdio.h> // for EOF
 #include <sstream>
 #include <iomanip>
 #include <iostream>
diff -ru bes-3.6.2.orig/ppt/Socket.cc bes-3.6.2/ppt/Socket.cc
--- bes-3.6.2.orig/ppt/Socket.cc	2009-03-03 22:51:45.000000000 +0000
+++ bes-3.6.2/ppt/Socket.cc	2009-03-04 08:50:15.000000000 +0000
@@ -45,6 +45,7 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#include <stdio.h>
 
 #include "Socket.h"
 #include "BESInternalError.h"
diff -ru bes-3.6.2.orig/ppt/UnixSocket.cc bes-3.6.2/ppt/UnixSocket.cc
--- bes-3.6.2.orig/ppt/UnixSocket.cc	2009-03-03 22:51:45.000000000 +0000
+++ bes-3.6.2/ppt/UnixSocket.cc	2009-03-04 08:57:25.000000000 +0000
@@ -32,6 +32,7 @@
 //      szednik     Stephan Zednik <zednik at ucar.edu>
 
 #include <unistd.h>   // for unlink
+#include <stdio.h>   // for remove
 #include <sys/un.h>
 #include <sys/socket.h>
 #include <sys/types.h>


Index: bes.spec
===================================================================
RCS file: /cvs/pkgs/rpms/bes/devel/bes.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- bes.spec	24 Feb 2009 04:31:24 -0000	1.12
+++ bes.spec	4 Mar 2009 09:25:49 -0000	1.13
@@ -6,7 +6,7 @@
 
 Name:           bes
 Version:        3.6.2
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Back-end server software framework for OPeNDAP
 
 Group:          System Environment/Libraries
@@ -14,6 +14,7 @@
 URL:            http://www.opendap.org/download/BES.html
 Source0:        http://www.opendap.org/pub/source/bes-%{version}.tar.gz
 Patch0:         bes-3.6.2-gcc43.patch
+Patch1:         bes-3.6.2-includes.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -64,6 +65,7 @@
 %prep
 %setup -q
 %patch0 -p1 -b .gcc43
+%patch1 -p1 -b .includes
 chmod a-x dispatch/BESStreamResponseHandler*
 
 %build
@@ -155,6 +157,9 @@
 %doc __distribution_docs/api-html/
 
 %changelog
+* Wed Mar 04 2009 Caolán McNamara <caolanm at redhat.com> - 3.6.2-4
+- include cstdio for std::snprintf
+
 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.6.2-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list