Files
packages/libs
Sebastian Kemper d13f831ba8 sqlite3: fix arm endian issue
Forum user portuquesa raised a topic (see [1]) about being unable to use
Asterisk on his armeb xscale device. We narrowed it down to sqlite3.
Asterisk was unable to insert a simple table into its db.

In short, sqlite3 assumes little endian for every ARM device. This worked OK
for 4 Byte (unaligned) access. But once upstream (back in 2015) added a
function which accesses 2 Bytes (see [2]) this failed for some (if not all) ARM
big endian devices. ARM CPUs are bi-endian for 4 Byte reads but not for 2 Byte
reads.

This patch fixes the problem by setting the endianness adequately for
ARM targets, for both 32 bit and 64 bit varieties. The patch was applied
upstream (see [3]).

[1] https://forum.openwrt.org/t/solved-asterisk13-or-15-sqlite3-database-problem/36856
[2] https://github.com/sqlite/sqlite/commit/329428e2088aabb1db2dc6e48108b76551405a8e
[3] https://www.sqlite.org/src/info/b7aad929619f7043

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-23 20:37:27 +02:00
..
2018-04-29 18:27:55 +02:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2018-02-19 11:29:16 +00:00
2017-10-22 20:00:06 +02:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-12-28 09:10:32 +00:00
2017-12-04 19:27:57 +01:00
2018-03-15 10:17:40 -04:00
2017-08-29 21:41:14 -07:00
2017-09-20 11:00:05 +02:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2019-05-11 10:27:56 +01:00
2017-08-29 21:41:14 -07:00
2018-10-28 16:56:11 +01:00
2017-11-07 01:30:02 +01:00
2018-09-29 10:13:58 +02:00
2017-07-24 23:23:00 +02:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-04-22 14:10:54 +02:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-07-20 07:53:14 +02:00
2017-08-29 21:41:14 -07:00
2018-03-10 11:40:49 +01:00
2017-09-18 10:38:11 +02:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2018-01-08 16:34:00 +01:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-12-31 18:45:26 +01:00
2019-03-07 03:21:21 +01:00
2017-12-04 19:32:29 +01:00
2018-01-07 20:53:09 -05:00
2017-09-24 00:14:42 -07:00
2018-04-18 21:35:04 +02:00
2018-05-14 11:22:42 +01:00
2018-04-11 09:11:37 +08:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2018-01-25 18:54:28 -08:00
2017-12-20 17:32:57 +08:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-06-19 01:33:32 +02:00
2017-08-29 21:41:14 -07:00
2019-03-07 01:39:24 +01:00
2017-12-04 19:40:45 +01:00
2017-09-18 11:59:52 +02:00
2019-04-23 20:07:55 -07:00
2017-08-29 21:41:14 -07:00
2018-02-12 21:38:32 -05:00
2018-03-07 13:33:59 -05:00
2019-03-19 08:48:58 +01:00
2019-04-27 19:53:33 +02:00
2018-03-18 11:03:19 +08:00
2017-08-29 21:41:14 -07:00
2018-01-08 16:32:12 +01:00
2018-03-10 13:40:52 +08:00
2017-08-29 21:41:14 -07:00
2018-05-15 00:04:37 +08:00
2017-08-29 21:41:14 -07:00
2018-02-13 00:30:33 -02:00
2017-12-31 18:45:40 +01:00
2018-04-27 13:19:04 +02:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-07-12 22:54:54 +02:00
2018-02-24 15:41:36 +08:00
2018-03-19 15:44:20 +01:00
2017-09-22 21:53:33 -07:00
2019-04-23 14:48:55 -07:00
2017-08-29 21:41:14 -07:00
2017-10-16 12:08:10 -05:00
2017-08-29 21:41:14 -07:00
2019-05-23 20:37:27 +02:00
2018-09-24 08:46:29 +02:00
2018-12-02 11:31:19 +01:00
2017-08-29 21:41:14 -07:00
2018-03-10 18:40:57 +02:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00