summaryrefslogtreecommitdiff
path: root/libcmis
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-10 15:59:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-11 14:13:30 +0000
commit199fdd4ace5cdf03e466b43da3c34d5275805e18 (patch)
tree1b0534506fb9e5cada90c64f88edcec496267f9b /libcmis
parent06d3fb621f2cb1b5358d28542b8542019c6edcd2 (diff)
add a virtual dtor
Diffstat (limited to 'libcmis')
-rw-r--r--libcmis/ExternalLib_libcmis.mk1
-rw-r--r--libcmis/libcmis-0001-virtualdtor.patch22
-rw-r--r--libcmis/makefile.mk2
3 files changed, 25 insertions, 0 deletions
diff --git a/libcmis/ExternalLib_libcmis.mk b/libcmis/ExternalLib_libcmis.mk
index 77c5bde87548..eb0510d99ece 100644
--- a/libcmis/ExternalLib_libcmis.mk
+++ b/libcmis/ExternalLib_libcmis.mk
@@ -31,6 +31,7 @@ $(eval $(call gb_ExternalLib_ExternalLib,libcmis,autotools))
$(eval $(call gb_ExternalLib_set_src_package,libcmis,7c2549f6b0a8bb604e6c4c729ffdcfe6-libcmis-0.1.0.tar.gz))
$(eval $(call gb_ExternalLib_add_conf_arg,libcmis,--disable-client))
$(eval $(call gb_ExternalLib_add_patch,libcmis,libcmis/libcmis-0.1.0-autotools.patch))
+$(eval $(call gb_ExternalLib_add_patch,libcmis,libcmis/libcmis-0001-virtualdtor.patch))
$(eval $(call gb_ExternalLib_add_conf_arg,libcmis,--disable-tests))
$(eval $(call gb_ExternalLib_add_conf_arg,libcmis,--disable-static))
diff --git a/libcmis/libcmis-0001-virtualdtor.patch b/libcmis/libcmis-0001-virtualdtor.patch
new file mode 100644
index 000000000000..ac0e5a1c2e24
--- /dev/null
+++ b/libcmis/libcmis-0001-virtualdtor.patch
@@ -0,0 +1,22 @@
+--- misc/libcmis-0.1.0/src/libcmis/session-factory.cxx 2012-01-10 15:28:52.458706430 +0000
++++ misc/build/libcmis-0.1.0/src/libcmis/session-factory.cxx 2012-01-10 15:29:57.856419249 +0000
+@@ -60,4 +60,8 @@
+
+ return repos;
+ }
++
++ Session::~Session()
++ {
++ }
+ }
+--- misc/libcmis-0.1.0/src/libcmis/session.hxx 2012-01-10 15:28:52.458706430 +0000
++++ misc/build/libcmis-0.1.0/src/libcmis/session.hxx 2012-01-10 15:29:19.071996444 +0000
+@@ -44,6 +44,8 @@
+ /** Get a CMIS object from its ID.
+ */
+ virtual CmisObjectPtr getObject( std::string id ) = 0;
++
++ virtual ~Session();
+ };
+ }
+
diff --git a/libcmis/makefile.mk b/libcmis/makefile.mk
index df93424dc83f..4e20948e1f37 100644
--- a/libcmis/makefile.mk
+++ b/libcmis/makefile.mk
@@ -46,6 +46,8 @@ TARFILE_MD5=7c2549f6b0a8bb604e6c4c729ffdcfe6
ADDITIONAL_FILES=src$/libcmis$/makefile.mk
PATCH_FILES=$(TARFILE_NAME).patch
+#https://sourceforge.net/p/libcmis/tickets/1/
+PATCH_FILES+=libcmis-0001-virtualdtor.patch
BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)
BUILD_DIR=src$/libcmis