Source: abiword
Version: 3.0.8+ds-2
Severity: important
Tags: ftbfs patch

Dear maintainer,

abiword currently FTBFS with evolution-data-server 3.62.x
(available in experimental):

pd_DocumentRDF.cpp: In member function 'virtual void 
PD_RDFContact::exportToFile(const std::string&) const':
pd_DocumentRDF.cpp:2037:46: error: 'EVC_FORMAT_VCARD_30' was not declared in 
this scope
 2037 |         gchar* data =  e_vcard_to_string( c, EVC_FORMAT_VCARD_30 );
      |                                              ^~~~~~~~~~~~~~~~~~~

The fix for this is really small, see the patch in attachement.

Cheers,
Sébastien
--- a/src/text/ptbl/xp/pd_DocumentRDF.cpp
+++ b/src/text/ptbl/xp/pd_DocumentRDF.cpp
@@ -2034,7 +2034,13 @@
         set( c, EVC_TEL,      m_phone );
         set( c, EVC_X_JABBER, m_jabberID );
 
-        gchar* data =  e_vcard_to_string( c, EVC_FORMAT_VCARD_30 );
+        gchar* data = 
+#if EDS_CHECK_VERSION(3, 59, 1)
+            e_vcard_convert_to_string(c, E_VCARD_VERSION_30);
+#else
+            e_vcard_to_string( c, EVC_FORMAT_VCARD_30 );
+#endif
+
         UT_DEBUGMSG(( "saving vcard to file:%s vcard.len:%ld\n", filename.c_str(), strlen(data) ));
         std::ofstream oss( filename.c_str() );
         oss.write( data, strlen(data) );

Reply via email to