summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2018-12-03 15:12:33 -0500
committerIan Stakenvicius <axs@gentoo.org>2018-12-03 15:13:18 -0500
commit9159b311064b20d1b0b3f8aa5723b9a8d7506cd8 (patch)
tree00ba04e0bf4979b014c966686f387034d58af94a /mail-client/thunderbird/files
parentdev-tcltk/bwidget: amd64 stable (diff)
downloadgentoo-9159b311064b20d1b0b3f8aa5723b9a8d7506cd8.tar.gz
gentoo-9159b311064b20d1b0b3f8aa5723b9a8d7506cd8.tar.bz2
gentoo-9159b311064b20d1b0b3f8aa5723b9a8d7506cd8.zip
mail-client/thunderbird: drop 60.3.2
Cleaned up the sqlite3 patch for upstream and removed old patch and v60.3.2 ebuild in favour of -r1 Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.11
Diffstat (limited to 'mail-client/thunderbird/files')
-rw-r--r--mail-client/thunderbird/files/sqlite3-fts3-tokenizer.patch87
-rw-r--r--mail-client/thunderbird/files/thunderbird-60-sqlite3-fts3-tokenizer.patch53
2 files changed, 33 insertions, 107 deletions
diff --git a/mail-client/thunderbird/files/sqlite3-fts3-tokenizer.patch b/mail-client/thunderbird/files/sqlite3-fts3-tokenizer.patch
deleted file mode 100644
index 4e45b139268b..000000000000
--- a/mail-client/thunderbird/files/sqlite3-fts3-tokenizer.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-# HG changeset patch
-# User Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
-# Date 1543532530 0
-# Thu Nov 29 23:02:10 2018 +0000
-# Node ID 1c480085935783bd1d240860bb44f410e2d36322
-# Parent 6453222232be364fb8ce3fd29b6cbcd480e5f2e3
-Bug 1270882 - Enable support for SQLite custom FTS3 tokenizers at run time.
-
-Do not require that SQLite has been built with support for custom FTS3
-tokenizers enabled by default. This allows to use system SQLite in
-distributions which provide SQLite configured in this way (which is SQLite
-upstream's default configuration due to security concerns).
-
-Disable no longer needed setting of SQLITE_ENABLE_FTS3_TOKENIZER macro in
-bundled SQLite build.
-
---- a/db/sqlite3/src/moz.build Thu Nov 29 19:08:28 2018 +0000
-+++ b/db/sqlite3/src/moz.build Thu Nov 29 23:02:10 2018 +0000
-@@ -58,10 +58,6 @@
- if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'uikit':
- DEFINES['SQLITE_ENABLE_LOCKING_STYLE'] = 0
-
--# Thunderbird needs the 2-argument version of fts3_tokenizer()
--if CONFIG['MOZ_THUNDERBIRD'] or CONFIG['MOZ_SUITE']:
-- DEFINES['SQLITE_ENABLE_FTS3_TOKENIZER'] = 1
--
- # Turn on SQLite's assertions in debug builds.
- if CONFIG['MOZ_DEBUG']:
- DEFINES['SQLITE_DEBUG'] = 1
---- a/storage/mozStorageConnection.cpp Thu Nov 29 19:08:28 2018 +0000
-+++ b/storage/mozStorageConnection.cpp Thu Nov 29 23:02:10 2018 +0000
-@@ -679,6 +679,10 @@
- return convertResultCode(srv);
- }
-
-+#ifdef INIT_SQLITE_FTS3_TOKENIZER
-+ ::sqlite3_db_config(mDBConn, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, 0);
-+#endif
-+
- // Do not set mDatabaseFile or mFileURL here since this is a "memory"
- // database.
-
-@@ -715,6 +719,10 @@
- return convertResultCode(srv);
- }
-
-+#ifdef INIT_SQLITE_FTS3_TOKENIZER
-+ ::sqlite3_db_config(mDBConn, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, 0);
-+#endif
-+
- // Do not set mFileURL here since this is database does not have an associated
- // URL.
- mDatabaseFile = aDatabaseFile;
-@@ -746,6 +754,10 @@
- return convertResultCode(srv);
- }
-
-+#ifdef INIT_SQLITE_FTS3_TOKENIZER
-+ ::sqlite3_db_config(mDBConn, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, 0);
-+#endif
-+
- // Set both mDatabaseFile and mFileURL here.
- mFileURL = aFileURL;
- mDatabaseFile = databaseFile;
---- a/storage/moz.build 2018-11-14 10:14:14.000000000 -0500
-+++ b/storage/moz.build 2018-11-29 17:05:42.106058951 -0500
-@@ -101,16 +101,20 @@
- #
- # Note: On Windows our sqlite build assumes we use jemalloc. If you disable
- # MOZ_STORAGE_MEMORY on Windows, you will also need to change the "ifdef
- # MOZ_MEMORY" options in db/sqlite3/src/Makefile.in.
- if CONFIG['MOZ_MEMORY'] and not CONFIG['MOZ_SYSTEM_SQLITE']:
- if CONFIG['OS_TARGET'] != 'Android':
- DEFINES['MOZ_STORAGE_MEMORY'] = True
-
-+# Thunderbird needs the 2-argument version of fts3_tokenizer()
-+if CONFIG['MOZ_THUNDERBIRD'] or CONFIG['MOZ_SUITE']:
-+ DEFINES['INIT_SQLITE_FTS3_TOKENIZER'] = 1
-+
- # This is the default value. If we ever change it when compiling sqlite, we
- # will need to change it here as well.
- DEFINES['SQLITE_MAX_LIKE_PATTERN_LENGTH'] = 50000
-
- # See Sqlite moz.build for reasoning about TEMP_STORE.
- # For system sqlite we cannot use the compile time option, so we use a pragma.
- if CONFIG['MOZ_SYSTEM_SQLITE'] and (CONFIG['OS_TARGET'] == 'Android'
- or CONFIG['HAVE_64BIT_BUILD']):
diff --git a/mail-client/thunderbird/files/thunderbird-60-sqlite3-fts3-tokenizer.patch b/mail-client/thunderbird/files/thunderbird-60-sqlite3-fts3-tokenizer.patch
index 2909c6cf4763..48ebbf154a3f 100644
--- a/mail-client/thunderbird/files/thunderbird-60-sqlite3-fts3-tokenizer.patch
+++ b/mail-client/thunderbird/files/thunderbird-60-sqlite3-fts3-tokenizer.patch
@@ -11,10 +11,11 @@ tokenizers enabled by default. This allows to use system SQLite in
distributions which provide SQLite configured in this way (which is SQLite
upstream's default configuration due to security concerns).
+Requires exposing the sqlite3_db_config symbol in bundled SQLite.
+
Disable no longer needed setting of SQLITE_ENABLE_FTS3_TOKENIZER macro in
bundled SQLite build.
-diff -r 6453222232be -r 1c4800859357 db/sqlite3/src/moz.build
--- a/db/sqlite3/src/moz.build Thu Nov 29 19:08:28 2018 +0000
+++ b/db/sqlite3/src/moz.build Thu Nov 29 23:02:10 2018 +0000
@@ -58,10 +58,6 @@
@@ -28,9 +29,8 @@ diff -r 6453222232be -r 1c4800859357 db/sqlite3/src/moz.build
# Turn on SQLite's assertions in debug builds.
if CONFIG['MOZ_DEBUG']:
DEFINES['SQLITE_DEBUG'] = 1
-diff -r 6453222232be -r 1c4800859357 db/sqlite3/src/sqlite.symbols
---- a/db/sqlite3/src/sqlite.symbols Thu Nov 29 19:08:28 2018 +0000
-+++ b/db/sqlite3/src/sqlite.symbols Thu Nov 29 23:02:10 2018 +0000
+--- a/db/sqlite3/src/sqlite.symbols Thu Nov 29 19:08:28 2018 +0000
++++ b/db/sqlite3/src/sqlite.symbols Thu Nov 29 23:02:10 2018 +0000
@@ -45,6 +45,7 @@
sqlite3_create_function16
sqlite3_create_module
@@ -39,48 +39,61 @@ diff -r 6453222232be -r 1c4800859357 db/sqlite3/src/sqlite.symbols
sqlite3_db_filename
sqlite3_db_handle
sqlite3_db_mutex
-diff -r 6453222232be -r 1c4800859357 storage/mozStorageConnection.cpp
--- a/storage/mozStorageConnection.cpp Thu Nov 29 19:08:28 2018 +0000
+++ b/storage/mozStorageConnection.cpp Thu Nov 29 23:02:10 2018 +0000
-@@ -679,6 +679,13 @@
+@@ -679,6 +679,10 @@
return convertResultCode(srv);
}
-+#if defined(MOZ_THUNDERBIRD) || defined(MOZ_SUITE)
-+ // Thunderbird needs support for custom FTS3 tokenizers
-+ // (used by the 2-argument version of fts3_tokenizer() function).
-+ // https://sqlite.org/fts3.html#custom_application_defined_tokenizers
++#ifdef INIT_SQLITE_FTS3_TOKENIZER
+ ::sqlite3_db_config(mDBConn, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, 0);
+#endif
+
// Do not set mDatabaseFile or mFileURL here since this is a "memory"
// database.
-@@ -715,6 +722,13 @@
+@@ -715,6 +719,10 @@
return convertResultCode(srv);
}
-+#if defined(MOZ_THUNDERBIRD) || defined(MOZ_SUITE)
-+ // Thunderbird needs support for custom FTS3 tokenizers
-+ // (used by the 2-argument version of fts3_tokenizer() function).
-+ // https://sqlite.org/fts3.html#custom_application_defined_tokenizers
++#ifdef INIT_SQLITE_FTS3_TOKENIZER
+ ::sqlite3_db_config(mDBConn, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, 0);
+#endif
+
// Do not set mFileURL here since this is database does not have an associated
// URL.
mDatabaseFile = aDatabaseFile;
-@@ -746,6 +760,13 @@
+@@ -746,6 +754,10 @@
return convertResultCode(srv);
}
-+#if defined(MOZ_THUNDERBIRD) || defined(MOZ_SUITE)
-+ // Thunderbird needs support for custom FTS3 tokenizers
-+ // (used by the 2-argument version of fts3_tokenizer() function).
-+ // https://sqlite.org/fts3.html#custom_application_defined_tokenizers
++#ifdef INIT_SQLITE_FTS3_TOKENIZER
+ ::sqlite3_db_config(mDBConn, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, 0);
+#endif
+
// Set both mDatabaseFile and mFileURL here.
mFileURL = aFileURL;
mDatabaseFile = databaseFile;
+--- a/storage/moz.build 2018-11-14 10:14:14.000000000 -0500
++++ b/storage/moz.build 2018-11-29 17:05:42.106058951 -0500
+@@ -101,16 +101,20 @@
+ #
+ # Note: On Windows our sqlite build assumes we use jemalloc. If you disable
+ # MOZ_STORAGE_MEMORY on Windows, you will also need to change the "ifdef
+ # MOZ_MEMORY" options in db/sqlite3/src/Makefile.in.
+ if CONFIG['MOZ_MEMORY'] and not CONFIG['MOZ_SYSTEM_SQLITE']:
+ if CONFIG['OS_TARGET'] != 'Android':
+ DEFINES['MOZ_STORAGE_MEMORY'] = True
+
++# Thunderbird needs the 2-argument version of fts3_tokenizer()
++if CONFIG['MOZ_THUNDERBIRD'] or CONFIG['MOZ_SUITE']:
++ DEFINES['INIT_SQLITE_FTS3_TOKENIZER'] = 1
++
+ # This is the default value. If we ever change it when compiling sqlite, we
+ # will need to change it here as well.
+ DEFINES['SQLITE_MAX_LIKE_PATTERN_LENGTH'] = 50000
+
+ # See Sqlite moz.build for reasoning about TEMP_STORE.
+ # For system sqlite we cannot use the compile time option, so we use a pragma.
+ if CONFIG['MOZ_SYSTEM_SQLITE'] and (CONFIG['OS_TARGET'] == 'Android'
+ or CONFIG['HAVE_64BIT_BUILD']):