OLD | NEW |
1 Name: SQLite | 1 Name: SQLite |
2 License File: src/LICENSE | 2 License File: src/LICENSE |
3 URL: http://sqlite.org/ | 3 URL: http://sqlite.org/ |
4 | 4 |
5 Instructions for importing a new release of SQLite from sqlite.org. | 5 Instructions for importing a new release of SQLite from sqlite.org. |
6 | 6 |
7 Note: our current base version is 3.6.18. | 7 Note: our current base version is 3.7.3. |
8 | 8 |
9 First, you need to be on Linux. | 9 First, you need to be on Linux. |
10 | 10 |
11 # Determine the versions of the release you want and the release we currently | 11 # Determine the versions of the release you want and the release we currently |
12 # have. (See the VERSION file to determine which release we currently have.) | 12 # have. (See the VERSION file to determine which release we currently have.) |
13 # You may wish to consult http://www.sqlite.org/changes.html to find out what | 13 # You may wish to consult http://www.sqlite.org/changes.html to find out what |
14 # changes have been made in each release. | 14 # changes have been made in each release. |
15 # Note - this is just an example. Always refer to the version above for our | 15 # Note - this is just an example. Always refer to the version above for our |
16 # real current version. | 16 # real current version. |
17 # Set some variables to remember the versions, e.g.: | 17 # Set some variables to remember the versions, e.g.: |
18 BASE=3.6.18 | 18 BASE=3.7.3 |
19 LATEST=3.6.22 | 19 LATEST=3.7.4 |
20 | 20 |
21 # Get to the src/third_party directory in your Chromium client: | 21 # Get to the src/third_party directory in your Chromium client: |
22 cd src/third_party | 22 cd src/third_party |
23 | 23 |
24 # Download the .tar.gz files for the releases: | 24 # Download the .tar.gz files for the releases: |
25 # (If the URL changes you might need to find the new one.) | 25 # (If the URL changes you might need to find the new one.) |
26 wget http://www.sqlite.org/sqlite-$BASE.tar.gz | 26 wget http://www.sqlite.org/sqlite-$BASE.tar.gz |
27 wget http://www.sqlite.org/sqlite-$LATEST.tar.gz | 27 wget http://www.sqlite.org/sqlite-$LATEST.tar.gz |
28 | 28 |
29 # Extract the vanilla current and desired versions: | 29 # Extract the vanilla current and desired versions: |
(...skipping 27 matching lines...) Expand all Loading... |
57 sqlite directory. Here is a list of the patches, in the order they should be | 57 sqlite directory. Here is a list of the patches, in the order they should be |
58 applied to a vanilla SQLite (of the version we currently have) to get, in | 58 applied to a vanilla SQLite (of the version we currently have) to get, in |
59 principle, exactly what is checked in: | 59 principle, exactly what is checked in: |
60 | 60 |
61 misc.patch | 61 misc.patch |
62 preload-cache.patch | 62 preload-cache.patch |
63 safe-tolower.patch | 63 safe-tolower.patch |
64 sqlite-poison.patch | 64 sqlite-poison.patch |
65 fts2.patch | 65 fts2.patch |
66 fts3.patch | 66 fts3.patch |
67 icu-regexp.patch | |
68 attach-integer.patch | 67 attach-integer.patch |
69 | 68 |
70 So, e.g. you could do this to apply all our patches to vanilla SQLite: | 69 So, e.g. you could do this to apply all our patches to vanilla SQLite: |
71 | 70 |
72 cd sqlite-$LATEST | 71 cd sqlite-$LATEST |
73 patch -p0 < ../sqlite/misc.patch | 72 patch -p0 < ../sqlite/misc.patch |
74 patch -p0 < ../sqlite/preload-cache.patch | 73 patch -p0 < ../sqlite/preload-cache.patch |
75 patch -p0 < ../sqlite/safe-tolower.patch | 74 patch -p0 < ../sqlite/safe-tolower.patch |
76 patch -p0 < ../sqlite/sqlite-poison.patch | 75 patch -p0 < ../sqlite/sqlite-poison.patch |
77 patch -p0 < ../sqlite/fts2.patch | 76 patch -p0 < ../sqlite/fts2.patch |
78 patch -p0 < ../sqlite/fts3.patch | 77 patch -p0 < ../sqlite/fts3.patch |
79 patch -p0 < ../sqlite/icu-regexp.patch | |
80 patch -p0 < ../sqlite/attach-integer.patch | 78 patch -p0 < ../sqlite/attach-integer.patch |
81 | 79 |
82 This will only be the case if all changes we make also update the corresponding | 80 This will only be the case if all changes we make also update the corresponding |
83 patch files. Therefore please remember to do that whenever you make a change! | 81 patch files. Therefore please remember to do that whenever you make a change! |
84 | 82 |
85 Descriptions of the changes we've made can be found at the bottom of this file. | 83 Descriptions of the changes we've made can be found at the bottom of this file. |
86 | 84 |
87 -------------------------------------------- | 85 -------------------------------------------- |
88 | 86 |
89 How to run the SQLite tests for the Chromium version of SQLite on Linux. | 87 How to run the SQLite tests for the Chromium version of SQLite on Linux. |
(...skipping 17 matching lines...) Expand all Loading... |
107 # them out to check. | 105 # them out to check. |
108 | 106 |
109 Chris Evans <cevans@google.com>, Oct 1, 2009 | 107 Chris Evans <cevans@google.com>, Oct 1, 2009 |
110 | 108 |
111 -------------------------------------------- | 109 -------------------------------------------- |
112 | 110 |
113 As of May 07, 2010, these are our changes from sqlite_vendor: | 111 As of May 07, 2010, these are our changes from sqlite_vendor: |
114 | 112 |
115 - A fix for a crash passing an integer expression to ATTACH / DETACH. See | 113 - A fix for a crash passing an integer expression to ATTACH / DETACH. See |
116 attach-integer.patch | 114 attach-integer.patch |
117 - A fix for a crash mis-calling the REGEXP() function of the ICU extension. | |
118 See icu-regexp.patch | |
119 - A large number of fts2 robustness fixes against corrupt data in its metadata | 115 - A large number of fts2 robustness fixes against corrupt data in its metadata |
120 tables. | 116 tables. |
121 - fts2.c disables fts2_tokenizer(). | 117 - fts2.c disables fts2_tokenizer(). |
122 - fts3.c disables fts3_tokenizer(). | 118 - fts3.c disables fts3_tokenizer(). |
123 - sqlite3Poison() in src/btree.c. | 119 - sqlite3Poison() in src/btree.c. |
124 - Tweak to SQLITE_EXTENSION_INIT* in sqlite3ext.h. | 120 - Tweak to SQLITE_EXTENSION_INIT* in sqlite3ext.h. |
125 - That implied a change in src/test_autoext.c for testing. | 121 - That implied a change in src/test_autoext.c for testing. |
126 - Added fts.test and fts1.test in tests, modified quick.test. | 122 - Added fts.test and fts1.test in tests, modified quick.test. |
127 - src/os_symbian.cc. | 123 - src/os_symbian.cc. |
128 - Modifications to Makefile.linux-gcc and main.mk for compiling | 124 - Modifications to Makefile.linux-gcc and main.mk for compiling |
(...skipping 24 matching lines...) Expand all Loading... |
153 - fts2_icu.c and fts3_icu.c have a critical bug. U8_NEXT is used over | 149 - fts2_icu.c and fts3_icu.c have a critical bug. U8_NEXT is used over |
154 a UTF-16 string. It's rep$ by U16_NEXT (jungshik) | 150 a UTF-16 string. It's rep$ by U16_NEXT (jungshik) |
155 - Added a new function sqlite3Preload we use to prime the database cache. It | 151 - Added a new function sqlite3Preload we use to prime the database cache. It |
156 allows much faster performance by reading the file in one contiguous | 152 allows much faster performance by reading the file in one contiguous |
157 operation rather than bringing it in organically, which involves a lot of | 153 operation rather than bringing it in organically, which involves a lot of |
158 seeking. This change also required sqlite3PcacheGetCachesize to be compiled | 154 seeking. This change also required sqlite3PcacheGetCachesize to be compiled |
159 even outside SQLITE_TEST. | 155 even outside SQLITE_TEST. |
160 - Added a new function chromium_sqlite3_initialize_win_sqlite3_file() | 156 - Added a new function chromium_sqlite3_initialize_win_sqlite3_file() |
161 at the end of os_win.c. It allows the Windows-specific Chromium VFS | 157 at the end of os_win.c. It allows the Windows-specific Chromium VFS |
162 to reuse most of the win32 SQLite VFS. | 158 to reuse most of the win32 SQLite VFS. |
OLD | NEW |