From f54d49fc04f1d86a22528fc0f25eb77345c839bd Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Ayllon Date: Mar 08 2016 12:44:51 +0000 Subject: Patch for opendir/open --- diff --git a/gfal2-python-register_ptr_to_python.patch b/gfal2-python-register_ptr_to_python.patch new file mode 100644 index 0000000..3402d65 --- /dev/null +++ b/gfal2-python-register_ptr_to_python.patch @@ -0,0 +1,20 @@ +*** src/gfal2.cpp 2016-03-08 12:24:52.957009313 +0100 +--- src/gfal2.cpp.patched 2016-03-08 12:22:35.305009836 +0100 +*************** BOOST_PYTHON_MODULE(gfal2) +*** 344,349 **** +--- 344,350 ---- + .def("pwrite", &PyGfal2::File::pwrite) + .def("lseek", &PyGfal2::File::lseek) + ; ++ boost::python::register_ptr_to_python >(); + + boost::python::class_, boost::noncopyable > + ("DirectoryType", "Directory descriptor", boost::python::init()) +*************** BOOST_PYTHON_MODULE(gfal2) +*** 352,355 **** +--- 353,357 ---- + .def("readpp", &PyGfal2::Directory::readpp, + "Reads a directory entry and its stat information") + ; ++ boost::python::register_ptr_to_python >(); + } diff --git a/gfal2-python.spec b/gfal2-python.spec index 26f68a1..eb9a261 100644 --- a/gfal2-python.spec +++ b/gfal2-python.spec @@ -23,7 +23,7 @@ Name: gfal2-python Version: 1.8.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python bindings for gfal 2 Group: Applications/Internet License: ASL 2.0 @@ -35,6 +35,8 @@ URL: http://dmc.web.cern.ch/ # tar czf gfal2-python-1.8.4.tar.gz --exclude-vcs gfal2-python-1.8.4 Source0: %{name}-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +# https://its.cern.ch/jira/browse/DMC-814 +Patch0: %{name}-register_ptr_to_python.patch BuildRequires: cmake BuildRequires: gfal2-devel >= 2.9.1 @@ -69,6 +71,7 @@ make clean %prep %setup -q +%patch0 -p0 %build %cmake \ @@ -102,6 +105,9 @@ make DESTDIR=%{buildroot} install %{_pkgdocdir}/examples/* %changelog +* Tue Mar 08 2016 Alejandro Alvarez - 1.8.4-4 +- Add patch to work with newer versions of Boost + * Wed Feb 03 2016 Fedora Release Engineering - 1.8.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild