diff --git a/condor.spec b/condor.spec index 47e0c76..1e833b5 100644 --- a/condor.spec +++ b/condor.spec @@ -41,6 +41,8 @@ Patch2: Werror_replace.patch Patch3: condor_aviary_sock_bind.patch Patch4: condor_aviary_schedulerobject.patch Patch5: condor_aviary_sock_assign.patch +# Backport an upstream fix for an interface change in globus-gsi-credential +Patch6: https://github.com/htcondor/htcondor/commit/d10e85eada71599caebb56fde50dd42bbbf6b65d.patch ####################### BuildRequires: cmake @@ -327,6 +329,7 @@ exit 0 %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 cp %{SOURCE1} %{name}-tmpfiles.conf cp %{SOURCE2} %{name}.service cp %{SOURCE3} . @@ -991,7 +994,10 @@ echo "*********** Verify NMI status is all GREEN ***********" /sbin/ldconfig %changelog -* Wed Jul 22 2015 David Tardon - 8.3.6-2 +* Tue Jul 28 2015 Adam Williamson - 8.3.6-2 +- backport fix for compile error caused by change in globus-gsi-credential 7.9 + +* Wed Jul 22 2015 David Tardon - rebuild for Boost 1.58 * Thu Jun 25 2015 Ben Cotton - 8.3.6-1 diff --git a/d10e85eada71599caebb56fde50dd42bbbf6b65d.patch b/d10e85eada71599caebb56fde50dd42bbbf6b65d.patch new file mode 100644 index 0000000..f0ab9a6 --- /dev/null +++ b/d10e85eada71599caebb56fde50dd42bbbf6b65d.patch @@ -0,0 +1,37 @@ +From d10e85eada71599caebb56fde50dd42bbbf6b65d Mon Sep 17 00:00:00 2001 +From: Brian Bockelman +Date: Tue, 28 Jul 2015 21:24:36 -0500 +Subject: [PATCH] Allow compilation with both old and new Globus version. #5180 + +The signature of globus_gsi_cred_write_proxy changed from + +globus_result_t +globus_gsi_cred_write_proxy(globus_l_gsi_cred_handle_s*, char*) + +to + +globus_result_t +globus_gsi_cred_write_proxy(globus_l_gsi_cred_handle_s*, const char*) + +This causes a function pointer assignment to fail. Since we want to support +both the old and new interface, simply reinterpret_cast the pointer to the +correct type. + +Tested compilation against both globus-gsi-credential 7.7 and 7.9. +--- + src/condor_utils/globus_utils.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/condor_utils/globus_utils.cpp b/src/condor_utils/globus_utils.cpp +index 2027e3e..1810b74 100644 +--- a/src/condor_utils/globus_utils.cpp ++++ b/src/condor_utils/globus_utils.cpp +@@ -354,7 +354,7 @@ activate_globus_gsi( void ) + globus_gsi_cred_handle_destroy_ptr = globus_gsi_cred_handle_destroy; + globus_gsi_cred_handle_init_ptr = globus_gsi_cred_handle_init; + globus_gsi_cred_read_proxy_ptr = globus_gsi_cred_read_proxy; +- globus_gsi_cred_write_proxy_ptr = globus_gsi_cred_write_proxy; ++ globus_gsi_cred_write_proxy_ptr = reinterpret_cast(globus_gsi_cred_write_proxy); + globus_gsi_proxy_assemble_cred_ptr = globus_gsi_proxy_assemble_cred; + globus_gsi_proxy_create_req_ptr = globus_gsi_proxy_create_req; + globus_gsi_proxy_handle_attrs_destroy_ptr = globus_gsi_proxy_handle_attrs_destroy;