[gfal2] Patch to use lseek64 instead of lseek in the http plugin

Alejandro Alvarez aalvarez at fedoraproject.org
Mon Sep 8 08:35:57 UTC 2014


commit bdfa7267878f6727e2ee6d6d3742e7fb2e8282ba
Author: Alejandro Alvarez Ayllon <aalvarez at cern.ch>
Date:   Mon Sep 8 10:35:45 2014 +0200

    Patch to use lseek64 instead of lseek in the http plugin

 gfal2-davix-lseek64.patch |   12 ++++++++++++
 gfal2.spec                |    9 ++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/gfal2-davix-lseek64.patch b/gfal2-davix-lseek64.patch
new file mode 100644
index 0000000..fb41bbd
--- /dev/null
+++ b/gfal2-davix-lseek64.patch
@@ -0,0 +1,12 @@
+--- a/src/plugins/http/gfal_http_plugin_io.cpp	2014-09-08 10:14:49.306445469 +0200
++++ b/src/plugins/http/gfal_http_plugin_io.cpp	2014-09-08 10:14:56.813689967 +0200
+@@ -79,7 +79,7 @@
+   Davix::DavixError* daverr = NULL;
+   DAVIX_FD* dfd = (DAVIX_FD*)gfal_file_handle_get_fdesc(fd);
+ 
+-  off_t newOffset = davix->posix.lseek(dfd, offset, whence, &daverr);
++  off_t newOffset = davix->posix.lseek64(dfd, offset, whence, &daverr);
+   if (newOffset < 0) {
+     davix2gliberr(daverr, err);
+     Davix::DavixError::clearError(&daverr);
+
diff --git a/gfal2.spec b/gfal2.spec
index ad706fb..8a96369 100644
--- a/gfal2.spec
+++ b/gfal2.spec
@@ -4,7 +4,7 @@
 Name:		gfal2
 Version:	2.6.8
 # https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Release_Tag
-Release:	5%{?dist}
+Release:	6%{?dist}
 Summary:	Grid file access library 2.0
 Group:		Applications/Internet
 License:	ASL 2.0
@@ -21,6 +21,9 @@ Patch1:		gfal2-davix-httpcode.patch
 # Disable GridFTP session reuse
 # https://its.cern.ch/jira/browse/LCGUTIL-448
 Patch2:		gfal2-gsiftp-session-reuse.patch
+# Use lseek64
+# https://svnweb.cern.ch/trac/lcgutil/changeset/6920/gfal2/trunk/src/plugins/http/gfal_http_plugin_io.cpp
+Patch3:		gfal2-davix-lseek64.patch
 
 #main lib dependencies
 BuildRequires:		cmake
@@ -192,6 +195,7 @@ make clean
 %patch0 -p1
 %patch1 -p1
 %patch2 -p0
+%patch3 -p1
 
 %build
 %cmake \
@@ -289,6 +293,9 @@ make DESTDIR=%{buildroot} install
 
 
 %changelog
+* Mon Sep 08 2014 Alejandro Alvarez Ayllon <aalvarez at cern.ch> - 2.6.8-6
+- Patch to use lseek64 instead of lseek in the http plugin
+
 * Thu Sep 04 2014 Orion Poplawski <orion at cora.nwra.com> - 2.6.8-5
 - Rebuild for pugixml 1.4
 


More information about the scm-commits mailing list