diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2017-11-22 15:31:33 +0800 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2017-11-30 09:27:27 +0800 |
commit | 917550ac335cd0af547d301f41605d8de6678d19 (patch) | |
tree | 55587c8154fb33857d1491d935395281bc31d238 /meta/recipes-support/sqlite/files | |
parent | f8f2799d5b4c51969c904a7a09b75caae1020b31 (diff) | |
download | openembedded-core-contrib-rbt/long.tar.gz |
sqlite3: use 1024 for MAX_PATHNAMrbt/long
The 512 is a little small when len(TMPDIR) == 410, it would be failed when
do_rootfs, use 1024 to fix problem:
Fixed when len(TMPDIR) == 410:
$ bitbake core-image-minimal
[snip]
"tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/dnf/yum/history.py", line 799, in _get_cursor
self._conn = sqlite.connect(self._db_file)
sqlite3.OperationalError: unable to open database file
[YOCTO #12374]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'meta/recipes-support/sqlite/files')
-rw-r--r-- | meta/recipes-support/sqlite/files/0001-sqlite3.c-use-1024-MAX_PATHNAME.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-support/sqlite/files/0001-sqlite3.c-use-1024-MAX_PATHNAME.patch b/meta/recipes-support/sqlite/files/0001-sqlite3.c-use-1024-MAX_PATHNAME.patch new file mode 100644 index 0000000000..f00047705d --- /dev/null +++ b/meta/recipes-support/sqlite/files/0001-sqlite3.c-use-1024-MAX_PATHNAME.patch @@ -0,0 +1,37 @@ +From 9f63bdd623a851c6f4af6d1259161d5d47d94bb3 Mon Sep 17 00:00:00 2001 +From: Robert Yang <liezhi.yang@windriver.com> +Date: Wed, 22 Nov 2017 15:23:24 +0800 +Subject: [PATCH] sqlite3.c: use 1024 for MAX_PATHNAME + +The 512 is a little small when build in deep directory, e.g., it would be +failed to run when oe-core's TMPDIR == 410, use 1024 to fix problem. + +Fixed: +[snip] +"/usr/lib/python3.5/site-packages/dnf/yum/history.py", line 799, in _get_cursor + self._conn = sqlite.connect(self._db_file) +sqlite3.OperationalError: unable to open database file + +Upstream-Status: Pending + +Signed-off-by: Robert Yang <liezhi.yang@windriver.com> +--- + sqlite3.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 4ec1271..31edaf8 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -30379,7 +30379,7 @@ SQLITE_PRIVATE const char *sqlite3OpcodeName(int i){ + /* + ** Maximum supported path-length. + */ +-#define MAX_PATHNAME 512 ++#define MAX_PATHNAME 1024 + + /* + ** Maximum supported symbolic links +-- +2.7.4 + |