File sqlite3-no-DETERMINISTIC-compat.diff of Package owncloud-client
--- owncloudclient-2.6.0.11015-daily20181119/src/common/syncjournaldb.cpp.orig 2018-11-19 07:05:35.000000000 +0100
+++ owncloudclient-2.6.0.11015-daily20181119/src/common/syncjournaldb.cpp 2018-11-20 18:49:50.921713855 +0100
@@ -41,6 +41,15 @@
#define IS_PREFIX_PATH_OR_EQUAL(prefix, path) \
"(" path " == " prefix " OR " IS_PREFIX_PATH_OF(prefix, path) ")"
+#ifndef SQLITE_DETERMINISTIC
+// Symbol is missing in
+// * 3.6.20 (rhel-6, centos-6)
+// * 3.7.17 (rhel-7, centos-7)
+// * 3.8.2 (ubuntu-14.04)
+// FIXME: cmake checks for sqlite >= 3.8.0, but silently accepts older versions too.
+# define SQLITE_DETERMINISTIC 0
+#endif
+
namespace OCC {
Q_LOGGING_CATEGORY(lcDb, "sync.database", QtInfoMsg)